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 :
Supply chain | Supply Chain Management, Commerce
Answered

Error while posting Inventory Adjustment

(4) ShareShare
ReportReport
Posted on by 666


Hello Team,
I got this issue while posting the inventory adjustment.
I have the same question (0)
  • Zain Mehmood Profile Picture
    4,187 Most Valuable Professional on at
    Hi Saalim,
     

    This error usually appears when there’s a background update to the inventory journal that needs to happen within a system transaction. It’s likely due to a customization or issue in the form’s logic.

     

     

    Please check with your technical/development team—they’ll need to review the logic behind the button or process you’re running and ensure any updates to the journal are handled correctly within a transaction block.


    Regards,
    Zain 
     
  • Suggested answer
    Zain Mehmood Profile Picture
    4,187 Most Valuable Professional on at
    Hi Saalim, 

    This error typically occurs when there's an attempt to update the InventJournalTable outside of a transaction.

    The message suggests that the logic behind the posting button (likely customized or extended — FormFunctionButtonControl::clicked) is trying to update or modify the journal header record without wrapping it in a proper transaction.
     

    If this is occurring in standard forms with no known customizations, there may be:

    • A faulty extension or event handler attached to the form
    • An issue with a customization on the journal posting logic

    You’ll need a developer to trace the method and review any modifications tied to the posting button.

    Hope this helps!,

    Zain

  • Zain Mehmood Profile Picture
    4,187 Most Valuable Professional on at
    Moving this to SCM Forum, 
  • Saalim Ansari Profile Picture
    666 on at

    Hi Zain,

    I'm still getting the same error!!

    Here is the attached call stack.

    I’ve already reviewed the complete call stack and even commented out any development/custom code that came up. The issue still persists, which makes me think it’s more likely related to standard X++ logic, or possibly tied to integration or existing transactions for the item.



  • Suggested answer
    Zain Mehmood Profile Picture
    4,187 Most Valuable Professional on at
    Hi Saalim, 
     
    Looking at the call stack and the highlighted code, it appears this is related to a custom piece of logic possibly a custom query or a customization trying to fetch or display a message using a label.
     
    Even though you've commented out visible custom code, this particular part still seems to be coming from a custom label reference or error handling, not standard D365 functionality.
     
    If you’re not seeing this in other environments or standard processes, that further supports that it's custom.
     
    You might want to have your technical team check what label or logic is trying to use — just to confirm if it's pointing to a missing or incorrect label.
     
    Regards,
    Zain
     
  • Verified answer
    Saalim Ansari Profile Picture
    666 on at

    Hi Zain,

    I found the issue — it was happening because the item requires a batch number to process.

    Some items have this requirement due to the tracking dimension setup.
    Once I provided the batch number, the posting worked fine.

    Also, just to confirm, there is no custom development involved in this part.
  • Zain Mehmood Profile Picture
    4,187 Most Valuable Professional on at
    Hi Saalim, 

    Great that it worked out for you 
     
    Just to add — when a batch number isn't provided, D365 F&O typically throws this standard error:
    "Inventory dimension Batch number is mandatory for item xxxxx]."

     
    In your case there is this custom error message generating, I still doubt there is something but anyways glad it got fixed. 
     
    Warm Regards,
    Zain 

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 179 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 121 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans