cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Issue for production using Add-on

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member233854
Active Contributor
0 Kudos

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

Answers (0)