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

Error: "The deferral schedule falls outside the accounting periods that have been set up for the company."

(6) ShareShare
ReportReport
Posted on by 22

Not able to update Sales Invoice record when trying to set Posting Date as it gives the below error

 "The deferral schedule falls outside the accounting periods that have been set up for the company."

Please see the below code:

DateTime lastSalesInvoiceDate = DateTime.UtcNow.Date;

//Posting Date

string postingDate = lastSalesInvoiceDate.Month + "/" + lastSalesInvoiceDate.Day + "/" + lastSalesInvoiceDate.Year;

//Posting Date
salesInvoice_Ws.Posting_Date = Convert.ToDateTime(postingDate);

//Posting Date specified
salesInvoice_Ws.Posting_DateSpecified = true;


//Execute Update
_salesInvoiceService.Update(ref salesInvoice_Ws);

Any help will be appreciated

Thanks!

  • Suggested answer
    Dirk Profile Picture
    Microsoft Employee on at

    Did you check the Accounting Periods?
    Like ... the later deferral periods .. do they fall into a time for which no accounting periods exists yet?
    What is the "Start Date" in the Deferral Schedule?
    And the Posting Date for the last Deferral period?

  • Sneha Kalyani Profile Picture
    7 on at

    Hello,

    I am also facing same issue though my accounting period is open till 2025 and in Deferral template the no. of periods is only 1.

    But still it shows error while selecting the item code in PO.

    Please advise.

  • Suggested answer
    Harsha Kumara Profile Picture
    27 on at

    Please update the posting date on every quote in the NAV. then this will work fine...

    But they have not added this to the coding...

  • Suggested answer
    KS-09020027-0 Profile Picture
    11 on at
    The issue is "Posting Date" field is left blank, Select a posting date in the document.
  • Suggested answer
    Teagen Boll Profile Picture
    3,868 Super User 2026 Season 2 on at
    For any deferrals you will need to make sure that the dates in the deferral entries exist in the accounting periods page. If you have a deferral set for 12 months and it was posted say today on February 12th then you would need to make sure you have accounting periods for 2027. If you do not then you'll get this error.
     
    If that doesnt fix the issue, if you provide a screenshot of the document and the dates that information can be used to help further if needed.
  • Suggested answer
    YUN ZHU Profile Picture
    103,085 Super User 2026 Season 2 on at
    Hi, hope the following can give you some hints.
     
    Thanks.
    ZHU
  • Suggested answer
    OussamaSabbouh Profile Picture
    19,350 Super User 2026 Season 2 on at
    Hello,
     
    The error has nothing to do with your C# date conversion — it means the Posting Date you’re setting causes the deferral schedule to fall into accounting periods that don’t exist or aren’t allowed in Business Central. Fix it in BC by ensuring the fiscal year and accounting periods are created/open for that date (search Accounting Periods) and that the date is within the allowed range for deferrals (check Allow Deferral Posting From/To in General Ledger Setup or User Setup). Once the posting date falls inside valid accounting periods and allowed posting ranges, the update will work.
     
    Regards,
    Oussama Sabbouh

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 715 Super User 2026 Season 2

#2
AndrewThomas81 Profile Picture

AndrewThomas81 390 Super User 2026 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 386 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans