Skip to main content

Notifications

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 352


Hello Team,
I got this issue while posting the inventory adjustment.
  • Zain Mehmood Profile Picture
    3,963 Moderator on at
    Error while posting Inventory Adjustment
    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 
  • Verified answer
    Saalim Ansari Profile Picture
    352 on at
    Error while posting Inventory Adjustment

    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.
  • Suggested answer
    Zain Mehmood Profile Picture
    3,963 Moderator on at
    Error while posting Inventory Adjustment
    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
     
  • Saalim Ansari Profile Picture
    352 on at
    Error while posting Inventory Adjustment

    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.



  • Zain Mehmood Profile Picture
    3,963 Moderator on at
    Error while posting Inventory Adjustment
    Moving this to SCM Forum, 
  • Suggested answer
    Zain Mehmood Profile Picture
    3,963 Moderator on at
    Error while posting Inventory Adjustment
    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
    3,963 Moderator on at
    Error while posting Inventory Adjustment
    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 
     

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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 273 Moderator

#2
Siv Sagar Profile Picture

Siv Sagar 111 Super User 2025 Season 1

#3
Danny Bilodeau Profile Picture

Danny Bilodeau 106 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans