Inbound service error while testing in visual studio - sales order should fulfilled

hi ,

i followed these step from Msdn blog , but getting error that salesorder should be fulfilled,

in the query i had taken sales-update query (aot query).

i am using only create service in the inbound(document service).

please guide me

/ Instantiate an instance of the service client class.
            SalesOrderServiceClient proxy = new SalesOrderServiceClient();

            // Create an instance of the document class.
            AxdSalesOrder salesOrder = new AxdSalesOrder();

            // Create instances of the entities that are used in the service and
            // set the needed fields on those entities.
            AxdEntity_SalesTable salesTable = new AxdEntity_SalesTable();
            salesTable.CurrencyCode = "USD";
            salesTable.CustAccount = "1101";
            salesTable.DeliveryDate = Convert.ToDateTime("2/14/2010");
            salesTable.Payment = "N060";
            salesTable.PurchOrderFormNum = "PO";

            AxdEntity_SalesLine salesLine = new AxdEntity_SalesLine();
            salesLine.ItemId = "1001";
            salesLine.SalesQty = 88;
            salesLine.SalesUnit = "ea";

            AxdEntity_InventDim inventDim = new AxdEntity_InventDim();
            inventDim.configId = "HD";
            inventDim.InventColorId = "01";
            inventDim.InventSizeId = "42";

            // Add the sub-entity instances to their parent entities as an array
            // of the sub-entity type.
            salesLine.InventDim = new AxdEntity_InventDim[1] { inventDim };
            salesTable.SalesLine = new AxdEntity_SalesLine[1] { salesLine };
            salesOrder.SalesTable = new AxdEntity_SalesTable[1] { salesTable };

                // Call the create method on the service passing in the document.
                EntityKey[] returnedSalesOrderEntityKey = proxy.create(salesOrder);

                // The create method returns an EntityKey which contains the ID of the sales order.
                EntityKey returnedSalesOrder = (EntityKey)returnedSalesOrderEntityKey.GetValue(0);
                Console.WriteLine("The sales order created has a Sales ID of " + returnedSalesOrder.KeyData[0].Value);
            catch (Exception e)

What’s the exact wording of the error? When do you get it? When calling proxy.create()?

HI Martin,

when i calling the proxy.create(callcontext,salesorder);

exact error is : Sales order filled should be fullfilled.

I think it means the SalesID field should be filled in.
Even if your intention is to generate Sales ID from a number sequence, try setting the value of salesTable.SalesId. It will make clear whether this is the problem or not.

i am trying to create a sales order from visual studio , means i need to provide the sales order - sales id number also ?
it should create automatically by number sequence right?

Hello Srikanth,

this issue was discussed here before, may be it can help you…/problem-creating-sales-order-throught-aif