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
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