on 2019 Aug 21 2:29 PM
Hello,
I create production orders vi DI API. It worked well, but since we've migrate to SAP B1 9.3 PL09, we encouter a random issue.
Sometimes, when we do the creation of the Production Order object, we have the -5002 error with this text : Invalid node index; object: %s, node: %s [OWOR.ItemCode][line: 1]
If a I retry to create the same Production Order, it is well created...
This probleme occurs more often and often when we do a big generation of production orders.
There is SDK upgrades in 9.3 which impose limits ?
Can you help me with this error message please ?
Thank you by advance for your help !
Please find below my code :
(...)
SAPbobsCOM.ProductionOrders oWOR = (SAPbobsCOM.ProductionOrders) company.GetBusinessObject(BoObjectTypes.oProductionOrders);
oWOR.DueDate = StartDate;
oWOR.ProductionOrderOrigin = (BoProductionOrderOriginEnum) 0;
oWOR.ItemNo = ItemCode;
oWOR.PlannedQuantity = QteOf ;
oWOR.ProductionOrderStatus = 0;
oWOR.ProductionOrderOriginEntry = Docentry;
oWOR.UserFields.Fields.Item("U_NumLancement").Value =sNomLct;
if (oWOR.Add() != 0) {
company.GetLastError(out iErrCode, out sErrMsg);
application.StatusBar.SetSystemMessage ("SOS:impossible de creer OF pour " + ItemCode + "/" + iErrCode.ToString() + ":" + sErrMsg ,BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
++iNbErr; }
else { ++iNbOFCrees ; }
Request clarification before answering.
Excuse me, were you able to resolve this error? Can you share your solution with me because I have the same problem but I can't find documentation about it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Disculpa, pudiste resolver este error? , me puedes compartir tu solución porque tengo el mismo problema pero no encuentro documentación al respecto.
Saludos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
59 | |
8 | |
8 | |
5 | |
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.