Skip to main content

Notifications

Community site session details

Community site session details

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

Report print Posted Sales Credit Memos - Error on orderlines

(1) ShareShare
ReportReport
Posted on by 12
Hi,
We experience that when printing Posted Sales Credit Memos, the report also includes lines from other Sales Credit Memos.  And it also summarises the line amounts from the other orders as well.

In the Word-report we have tried 3 different scenarios to solve the problem:
  • Edit the original line-table by delete the table contents and then put in the XML-lines in the table again.
  • Copying in Table from another company report. (that we know is working in the other company)
  • Delete the table and create new table from scratch.
Is there anyone who have experienced this or know how to solve it?
It must be fixed in the Report Dataset and not in the Report Layout.
But we don't know what to edit in the Report Dataset.
 
 
This is from the Posted Sales Credit Memo: 2 lines.
 
And this is from report print:
 

  


 
  • Community member Profile Picture
    12 on at
    Report print Posted Sales Credit Memos - Error on orderlines
    Here is what in the code:
     
  • Suggested answer
    YUN ZHU Profile Picture
    84,682 Super User 2025 Season 1 on at
    Report print Posted Sales Credit Memos - Error on orderlines
    This is obviously a customization problem, please contact your developer or partner to check the code.
    And it looks like the DataItemLink property of Line's DataItem is incorrect. Normally this problem would not occur. . .
     
    Hope this helps.
    Thanks.
    ZHU
  • Community member Profile Picture
    12 on at
    Report print Posted Sales Credit Memos - Error on orderlines
    additional info:
    - It is a custom report
    - the client has 3 different environments and the same problem happens for all of them now.
    - The reports were fine a few weeks ago, and we haven't been editing them. So we suspect that our client has done something.
     
    in the report print:
    - The first two lines is correct and belongs to Sales Credit Memo A (K10023) 
    - Line 3 and 4 belongs to the next Sales Credit Memo B (K10024)
    - Line 5 belong to the Sales Credit Meno C (K10025), and this was the last created one when I printed K10023 
                   - Now there has been created a new Sales Credit Memo K10026, and the line from this one also occur as the 6.line when printing K10023 now.  
  • Suggested answer
    YUN ZHU Profile Picture
    84,682 Super User 2025 Season 1 on at
    Report print Posted Sales Credit Memos - Error on orderlines
    Do you mean that when printing A Sales Credit Memo, the row of B or C Sales Credit Memo will be printed? But Header is A?
    This looks like an issue with customized reports, please contact your partner.
     
     
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    28,279 Super User 2025 Season 1 on at
    Report print Posted Sales Credit Memos - Error on orderlines
    Is this a custom report, or a report you customized? Its hard to say what's wrong with it without seeing the changes you've made to the report. The easiest fix would be to take the out of the box credit memo report and customize the layout from scratch to match your changes.
     
     
     
     
  • Community member Profile Picture
    12 on at
    Report print Posted Sales Credit Memos - Error on orderlines
    This link has no answer to the error 
  • Gerardo Rentería García Profile Picture
    19,937 Most Valuable Professional on at
    Report print Posted Sales Credit Memos - Error on orderlines
    hi
    I hope this can help you or give you some hints
    BR
    GR

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 > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans