I am getting this error when I'm posting a Sales Order:
"Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLArgumentOutOfRangeException"
I have a event subscribtion to Codeunit 80, "OnAfterPostSalesDoc" because it is then uploaded to a webservice.
The upload takes part in slices of the pdf, so we have to store the data in a List of Bytes
When debugging it shows that the error occurs around here:
UploadSlice(UploadId, FileBytes.GetRange(Pos, FileBytes.Count() - Pos), Pos);
Could it be that the Pdf is too large and exceeds the length of the List Data type or what else could be the reason?
Thank you in advance for your help!