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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Get recurring sales

(0) ShareShare
ReportReport
Posted on by 5

Can anyone tell me how to resolve this issue? I get this message when I attempt to create an invoice from the customer's card. I don't get it if I go directly to the create sales invoice link.

Message:

No. must have a value in Sales Header: Document Type=Invoice, No.=. It cannot be zero or empty.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Please check if you have this setup already

    pastedimage1684371784024v1.png

  • Suggested answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at

    Hi, Nitin, this is a bit strange, the error message is not the same if the setting you mentioned is not set.

    "Invoice Nos. must have a value in Sales & Receivables Setup: Primary Key=. It cannot be zero or empty."

    pastedimage1684372712545v1.png

    And he has no problem creating invoices directly. I think there is no problem with the No. Series setting.

    This operation only opens the creation mode of Sales Invoice page, and does not actually create Sales Invoice. I suspect that there is some code in OnOpenPage of Sales Invoice or other triggers that cause this problem.

    pastedimage1684373132987v2.png

    Hi, picard77

    Does this environment include customization? I think you can try to debug it.

    Hope this helps.

    Thanks.

    ZHU

  • picard77 Profile Picture
    5 on at

    Thanks for responding. Yes, the Sales & Receivables are set up like the screenshot you provided.

  • picard77 Profile Picture
    5 on at

    Hi ZHU, Yes the environment does have a customization.

  • Suggested answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at

    Try uninstalling it first and see if there is still a problem?

  • picard77 Profile Picture
    5 on at

    Hi Zhu, I uninstalled the customization, and the issue remains.

  • picard77 Profile Picture
    5 on at

    I think this might be a Microsoft bug.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Yes, Zhu, I tried to create in Docker with latest image, and its working for, He need to debug the problem, or may be other custom extension installed still not removed yet.

    picard77 Can you please verify again? Also Debug it first.

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 August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 570 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 291 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans