web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

The Sales Header does not exist. Identification fields and values: Document Type='Invoice',No.=''

(0) ShareShare
ReportReport
Posted on by 485

Weirdest thing. I get this error when I hit "New" Sales Invoice. But I don't get the error when I open an existing Sales Invoice (unposted). This seems to be a contradiction because both open the same page right?
I believe error stems from my code here (page extension on Sales Invoice page):
29.PNG

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    You should use the OnAfterGetRecord trigger instead.

    When you are in the OnOpenPage trigger no data is loaded from the database yet.

  • jdrco Profile Picture
    485 on at

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 595 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 364 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 331 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans