Copy document error

HI everyone, I'm trying to copy a document (sales shipment document) but I'm always the error "The sales shipment line does not exist. Document no x, line no 10000"

After a little debug I found that in Item Ledger Entry table, this document have the document type "Sales Shipment". if i change this to "Sales Invoice" the error don't appear.
With the debugger the error occurs in this line:
Codeunit CopyDocument

function GetAsmDataFromSalesInvLine , line   SalesShipmentLine.GET(ItemLedgerEntry."Document No.",ItemLedgerEntry."Document Line No.");

Answers

  • txerifftxeriff Member Posts: 500
    Seems like it is trying to do a get using ILE (item ledger entry), document number and line and those, are not found in the Shipment. Double check the ILE.
    I don´t know how you happened in that but a simple way would be to modify (run a process in a CU, give table permissions to Sales shipment lines table) to match the ILE.

    Hope this helps
  • catiamatos1991catiamatos1991 Member Posts: 158
    I understand what you said but how to do it in nav 2016?
Sign In or Register to comment.