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

Notifications

Announcements

No record found.

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."

(0) ShareShare
ReportReport
Posted on by 10

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!

I have the same question (1)
  • Suggested answer
    Dirk Profile Picture
    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
    5 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
    25 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...

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans