on 09-19-2017 12:01 PM
Hello experts ,
I received the error "production order no 0 line 1 not found" when i am adding a issue for production.The code i use is the following for the lines:
oPruduction.Lines.SetCurrentLine(counter);
oPruduction.Lines.BaseEntry = rsLines.Fields.Item("DocEntry").Value;
oPruduction.Lines.BaseType = 202;
oPruduction.Lines.BaseLine = rsVisOrder.Fields.Item("VisOrder").Value;
oPruduction.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
oPruduction.Lines.Add();
counter++;
I think that the values is not correct or something missing.Please advice
Kind Regards ,
Ifigeneia Koumbarda
Hi,
Please check the values coming on the recordsets and double check the query filling the recordset, it doesn`t seem to be correct, probably DocEntry = ZERO and VisOrder = 1, I am sure there is no production order with DocEntry 0 and you must use the LineNum instead of VisOrder
rsLines.Fields.Item("DocEntry").Value
rsVisOrder.Fields.Item("VisOrder").Value
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.