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

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Post Product Receipt fails for split Batch/Serial lines (X++) - D365fo

(0) ShareShare
ReportReport
Posted on by

Hi All,

I am encountering an issue posting a Product Receipt via code after successfully posting an Item Arrival Journal.

Scenario:

  • Item Arrival: A single PurchLine was split into multiple journal lines to accommodate different Batches and Serials.

  • Status: All lines are currently "Registered" in InventTrans with their respective InventDimId.

  • The Issue: PurchFormLetter fails to post. It seems the standard logic cannot handle multiple InventDimId registrations for a single PurchLine during the automated aggregation.

  • Example: PO Line 1 (Qty: 100) is split into 4 Arrival Lines:

    • Line 1.1: Qty 30, Batch A, Serial 001,002,003

    • Line 1.2: Qty 40, Batch B, Serial 004,005,006,007

    • Line 1.3: Qty 30, Batch C, Serial 008,009,010

I would really appreciate any code snippets or guidance on this, as I've been stuck on this issue for a few days now.

Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    302,698 Super User 2026 Season 1 on at
    Hi,
     
    I do assume you get an error message when posting? Can you share the exact error message?

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 662 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 280 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 201 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans