Skip to Content
0

Error in Issue for production using Add-on

Sep 19, 2017 at 11:01 AM

23

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Danilo Kasparian Sep 19, 2017 at 01:29 PM
0

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
Share
10 |10000 characters needed characters left characters exceeded