on 04-14-2016 2:40 PM
Hi Specialists,
When i m trying to update sales order through B1 Object getting DI Error: (-1029) Field cannot be updated.
DI method is UpdateDocWithSubDeletion. Dont know which field i missed in object template please help me out.
Hi Atul,
The error message is indicating the xml contains field that can not be updated.
Can you post the final xml content ?
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Edy,
Here is my final payload :-
<Payload Role="X" id="atom2">
<Documents xmlns="">
<row>
<DocEntry>50</DocEntry>
<CardCode>C8139</CardCode>
<DocDate>20160414</DocDate>
<DocDueDate>20160414</DocDueDate>
<SalesPersonCode>9</SalesPersonCode>
<NumAtCard/>
<Comments>Test</Comments>
<U_PAYSTAT>B</U_PAYSTAT>
<U_PYMMOD/>
<U_PYMRMK/>
<U_OrderID>26022</U_OrderID>
</row>
</Documents>
<Document_Lines xmlns="">
<row>
<DocEntry>50</DocEntry>
<ItemCode>PKG0005</ItemCode>
<Quantity>1</Quantity>
<InventoryQuantity>1</InventoryQuantity>
<Factor1>1.000000</Factor1>
<Factor2>1.000000</Factor2>
<Factor3>1.000000</Factor3>
<Factor4>1.000000</Factor4>
<UnitPrice>0</UnitPrice>
<ShipDate>20160414</ShipDate>
<TaxCode>Zero</TaxCode>
<U_Rmrks>5</U_Rmrks>
<U_IGrPrice>1500</U_IGrPrice>
<U_PKGSDT/>
<U_PKGEDT/>
<U_ORDTYP>N</U_ORDTYP>
<U_DiscPercnt>0</U_DiscPercnt>
<FreeText/>
<U_PckgQty>1</U_PckgQty>
<CostingCode3/>
<CostingCode5>MU</CostingCode5>
<U_SubOrderID>21233</U_SubOrderID>
</row>
<row>
<DocEntry>50</DocEntry>
<ItemCode>FG0009</ItemCode>
<Quantity>1</Quantity>
<InventoryQuantity>1</InventoryQuantity>
<Factor1>1.000000</Factor1>
<Factor2>1.000000</Factor2>
<Factor3>1.000000</Factor3>
<Factor4>1.000000</Factor4>
<UnitPrice>238.0952380952381</UnitPrice>
<ShipDate>20160414</ShipDate>
<TaxCode>VAT@5</TaxCode>
<U_Rmrks>PKG0005</U_Rmrks>
<U_IGrPrice>250</U_IGrPrice>
<U_PKGSDT/>
<U_PKGEDT/>
<U_ORDTYP>N</U_ORDTYP>
<U_DiscPercnt>0</U_DiscPercnt>
<FreeText/>
<U_PckgQty>1</U_PckgQty>
<CostingCode3/>
<CostingCode5>MU</CostingCode5>
<U_SubOrderID>21233</U_SubOrderID>
</row>
</Document_Lines>
</Payload>
Please let me know which field cannot be updated or missed anything in template.
Regards,
Atul
Hi Teun,
tried to update given fields with payload as below :-
<AddSalesOrder xmlns="http://www.w3.org/UPSO">\r\n
<DocEntry>50</DocEntry>\r\n
<Document_Lines>\r\n
<row>\r\n
<ItemCode>PKG0005</ItemCode>\r\n
<LineNum>0</LineNum>\r\n
</row>\r\n
<row>\r\n
<ItemCode>FG0009</ItemCode>\r\n
<LineNum>1</LineNum>\r\n
</row>\r\n
</Document_Lines>\r\n
</AddSalesOrder>
Getting same error as field cannot be updated (ODBC -1029).
Please let me know if any workaround to handle this and get document updated.
Regards,
Atul G.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.