Hi,
My customer is using NAV 2009 SP1 Classic Client via Citrix.
On the Sales Invoice, after running Post & Print, it prompts error:
The Sales Header does not exist.
Identification fields and values:
Document Type='Invoice',No.='SI0001'
Document Type: Invoice, No.: SI0001
SI0001 is the invoice that just got posted and printed.
Click OK after this error message, the following message prompted:
Do you want to rename the record?
After selecting No, it will prompt the first error message again.
I have tried to use debug mode but it did not stop at any code and prompted the error.
And there is no customized code that relates to calling the sales header after posting or printing the report.
The error only prompted sometimes (but quite often) and it also happen when running Post & Print on Sales Credit Memo.
And I cannot simulate the same problem on my Citrix.
I have searched on the forums but cannot find any clue. Will really appreciate if someone can give me some advice. Thank you.
0
Comments
Tino Ruijs
Microsoft Dynamics NAV specialist
Hi,
it's just the standard code on the Sales Invoice form:
Form - OnAfterGetRecord()
SETRANGE("Document Type");
I think it should be there. Thought it used to be there.
Tino Ruijs
Microsoft Dynamics NAV specialist
Hi Tino,
All other standard form e.g. Sales Order, Sales Quote and etc. also only have SETRANGE("Document Type");
and not having SETRANGE("No.");
Should it be there?