Skip to main content

Notifications

Community site session details

Community site session details

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

Purchase Requisition Report Issue -Repeated Item IDs Showing Incorrect Descriptions

(2) ShareShare
ReportReport
Posted on by 41
Dear Dynamics Community,
I am working with the Procurement and Sourcing module in Dynamics AX 2012 R3 . I am facing an error in the Procurement and Sourcing module related to the Purchase Requisition Report.

Issue:
When running a report for a specific Purchase Requisition ID (PurchID), if the same Item ID is repeated in the Purchase Requisition Line table but with different descriptions/details, the report incorrectly displays the same description for both entries. However, in the table, each Item ID has a different description/detail.

How can I resolve this issue?
 
Troubleshooting: I have verified that the data in the Purchase Requisition Line table is correct. I also reviewed the report desgin and Dataset but couldn't find any obvious filtering or grouping logic that might be causing this.
What could be causing this issue in the report's data processing, and how can I ensure that each line correctly reflects its respective description?
 
Any help would be greatly appreciated.
Thanks in advance!.
Categories:
  • Verified answer
    Basit Profile Picture
    41 on at
    Purchase Requisition Report Issue -Repeated Item IDs Showing Incorrect Descriptions

    Issue resolved, thank you!

     How i Fix the Issue....

    I analyzed the flow of the report to understand how the data was being printed. Actually, the header line was being inserted into the second table, and the lines records were being inserted into the LineHistory table.

    From there, the data was being passed to a TempTable and then printed on the report. I checked to see if there was anything unique in the line tables, and I found the SequenceNumber field to be unique.

    This field was present in the LineHistory table, but it was not being shown in the report’s TempTable.

    So,I passed the SequenceNumber from LineHistory to my method, where I was already passing the PurchId and ItemId — I added SequenceNumber as well.

     

    Like: 
     tempbuffer.Description = this.getDescription(PurchId ,ItemId,SequenceNumber );
     

    As a result, I got the exact description against the ItemId.

  • Vahid Ghafarpour Profile Picture
    9,688 Super User 2025 Season 1 on at
    Purchase Requisition Report Issue -Repeated Item IDs Showing Incorrect Descriptions
    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊
  • Jonas "Jones" Melgaard Profile Picture
    3,435 Super User 2025 Season 1 on at
    Purchase Requisition Report Issue -Repeated Item IDs Showing Incorrect Descriptions
    Hi, I just had a play in my AX2012 R3 out of curiosity (I don't remember a report with that design)
    I'm not seeing the report in the menus, and it's not looking like the one that's printed from the purchase requisition itself.
     
    Is this a custom report?

     
  • Verified answer
    Ramesh Kumar Profile Picture
    3,280 on at
    Purchase Requisition Report Issue -Repeated Item IDs Showing Incorrect Descriptions
    Hi,
     
    Can you please check if issue with grouping logic . Adjust the grouping logic to consider both ItemID and Description or another unique field.
     
    Please also let me know who you fixed the issue
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Verified answer
    CU28030750-0 Profile Picture
    16 on at
    Purchase Requisition Report Issue -Repeated Item IDs Showing Incorrect Descriptions

    This issue is likely happening because the report is grouping data based on the Item ID, which causes it to show the same description for all occurrences of that Item ID. Even though the Purchase Requisition Line table has different descriptions for the same Item ID, the report might be pulling only the first occurrence due to grouping or join conditions.

     

    Here are a few things you can check to fix this:

     

    1.  

      Review Grouping in the Report – In the report designer (SSRS), check if the report groups data by Item ID. If so, try modifying it to include the unique line identifier (like Line Num) to ensure each entry is displayed separately.


    2.  

      Check the Dataset Query – Look at the SQL query or data source feeding the report. Ensure it retrieves all distinct descriptions instead of summarizing or merging them.


    3.  

      Verify Joins in the Report Dataset – If the report is pulling data from multiple tables, check if the joins (inner or outer) are affecting how descriptions are displayed.



    4.  
     

    Try these steps and see if they resolve the issue. Let me know if you need further help!

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans