Options

The Sales Header does not exist after posting invoice or CM

biant123biant123 Member Posts: 29
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.

Comments

  • Options
    tinoruijstinoruijs Member Posts: 1,226
    In the OnAfterGetRecord on the form, does there stand?:
    SETRANGE("No.");
    

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Options
    biant123biant123 Member Posts: 29
    tinoruijs wrote:
    In the OnAfterGetRecord on the form, does there stand?:
    SETRANGE("No.");
    

    Hi,

    it's just the standard code on the Sales Invoice form:

    Form - OnAfterGetRecord()
    SETRANGE("Document Type");
  • Options
    tinoruijstinoruijs Member Posts: 1,226
    So no SETRANGE("No."); in the standard form? :-k
    I think it should be there. Thought it used to be there.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Options
    slmaluwaslmaluwa Member Posts: 358
    In one of the NAV 2009 R2 classic installation, I also see only
    SETRANGE("Document Type");
    
    .
    "A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."
  • Options
    biant123biant123 Member Posts: 29
    tinoruijs wrote:
    So no SETRANGE("No."); in the standard form? :-k
    I think it should be there. Thought it used to be there.

    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?
Sign In or Register to comment.