Skip to main content

Notifications

Community site session details

Community site session details

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

Post Inventory Cost to G/L Error

(2) ShareShare
ReportReport
Posted on by 34
Hi there,
 
When getting an error after a job queue Post Inventory Cost to G/L run, what is the best way to identify which entry is causing it?
In this specific case I'm getting: Posting Date is not within your range of allowed posting dates in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='0'.

The "Allow Posting" is correctly set up on User and G/L level, Inventory Period May 2025 is open. If there is an entry outside of this period, what is the best way to find it?
 
Thank you!  
  • Durito Profile Picture
    34 on at
    Post Inventory Cost to G/L Error
    Thanks for the suggestions,
     
    @YUN ZHU I presume you can only debug in AL?
     
    @Mansi Soni  Cost Posted to G/L is a decimal field, not boolean, so the filter you suggest doesn't work.
    When looking at  Cost Posted to G/L and Aount expected often they don't match for a closed period, is this normal?


    I noticed this in other companies as well, however, the job queue is not failing there.
     
  • Suggested answer
    YUN ZHU Profile Picture
    84,278 Super User 2025 Season 1 on at
    Post Inventory Cost to G/L Error
    I personally think debugging is the fastest way to find out which line is stuck 
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    19,674 Most Valuable Professional on at
  • Suggested answer
    Mansi Soni Profile Picture
    3,391 on at
    Post Inventory Cost to G/L Error
    Hello, To identify this go to the Value Entries page in Business Central, filter for entries where Cost Posted to G/L = No, and check if any Posting Dates fall outside the user's or G/L's allowed posting range.

    Hope this will help you to resolve it!

    Regards,
    Mansi Soni
  • Suggested answer
    Sagar Dangar, MCP Profile Picture
    538 on at
    Post Inventory Cost to G/L Error
    Hi,
     
    Open Value entry and apply filter on Posting Date, and check if any outside of may 2025 period entry cost adjustment is pending!
     

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans