Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Get recurring sales

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
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Get recurring sales

    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.

  • picard77 Profile Picture
    picard77 5 on at
    RE: Get recurring sales

    I think this might be a Microsoft bug.

  • picard77 Profile Picture
    picard77 5 on at
    RE: Get recurring sales

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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,296 Super User 2024 Season 2 on at
    RE: Get recurring sales

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

  • picard77 Profile Picture
    picard77 5 on at
    RE: Get recurring sales

    Hi ZHU, Yes the environment does have a customization.

  • picard77 Profile Picture
    picard77 5 on at
    RE: Get recurring sales

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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,296 Super User 2024 Season 2 on at
    RE: Get recurring sales

    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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Get recurring sales

    Please check if you have this setup already

    pastedimage1684371784024v1.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans