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

deleting purchase order will cause a gap in no series

(8) ShareShare
ReportReport
Posted on by 793
i am deleting a purchase order of 2022 which is not received and invoiced yet but when deleting it gives me this error 
why it will create an empty invoice what will be in the empty invoice ? how can i solve this? please someone help
Thanks
I have the same question (0)
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,549 Super User 2026 Season 1 on at
    This is a known scenario in Dynamics 365 Business Central (and older NAV versions). Is the PO is linked to a Prepayment Invoice?
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • peter fun Profile Picture
    793 on at
    No, not linked to a any Prepayment Invoice.
    how to solve this please guide?
  • Suggested answer
    YUN ZHU Profile Picture
    100,214 Super User 2026 Season 1 on at
    This is standard behavior, hopefully the information below can give you some hints.
    Dynamics 365 Business Central: Empty Posted Sales Invoice with only one comment “Document created to avoid gap in No. Series”? Why?
     
    Thanks
    ZHU
  • Suggested answer
    Yi Yong Profile Picture
    2,704 Super User 2026 Season 1 on at
    Hello,
     
    Are you using the same No. Series for both Purchase Order and Posted Purchase Invoice?
    If yes, then this is standard system behaviour for audit reason. You can't have missing number for posted documents.
  • peter fun Profile Picture
    793 on at
    what steps should i perform now to not let this happen that should let me delete that invoice but not create any gap in no series.
    this issue is in production but in sandbox i create purchase order and then i can delete the purchase order with no error/Message like this. same settings as well means no series related
  • Suggested answer
    Yi Yong Profile Picture
    2,704 Super User 2026 Season 1 on at
    Hello,
     
    Can you go to the affected environment and show the screenshot of your Purchase & Payables Setup > Number Series section
    and
    Go to your purchase order > page inspection and show the fields with "No. Series" filter.
     
     
  • Gerardo Rentería García Profile Picture
    26,110 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Performance of Number Series and Number Sequence

    Dynamics 365 Business Central: the power of NumberSequence – Stefano Demiliani

    Best Regards
    Gerardo

  • Suggested answer
    Dhiren Nagar Profile Picture
    2,910 Super User 2026 Season 1 on at
    Hi,
     
    It is basically standard validation. This happens when you keep your no. Series for Purchase Order and Posted Purchase Invoice as same.
     
    This message comes to stop you from creating any gaps in no. series in order to help you during audit.
     
    So this is not an error and you better click on Yes and move on. This will do no harm in your database and will just create a blank Posted Purchase Invoice with 0 amount and a comment line.
     
    Also if you want to change this behaviour then there are two options.
     
    1 - Change the no. series for Posted Purchase Invoice to a different series.
    2 - For this series go to No. Series page and select "Allow Gaps in No." field. This will allow this gaps to happen. Not advisable though.
     

    Tick the checkbox below to mark the answer as verified, if it helped resolve your question.

    Regards,
    Dhiren.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,948 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 936 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 616 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans