Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

#Error show on RDLC layout report SUM of some line value, on Shopify synchronize order

(0) ShareShare
ReportReport
Posted on by
I modified from the built-in RDLC 1306 sale invoice report layout, use a SUM in expression to calculate the total of the order line discount value. It work fine on the order I created manually. but showed #Error on order sync from Shopify. 
My expression involve 3 value from Dataset. I found for "LineDiscountPercent_Line" the Sum work fine on, but "UnitPrice" & "Quantity_Line" both can not get the Sum work in Shopify order. 
Could any one kindly help me locate the Error, and how to fix it.  
 
This is the expression:
Work fine on normal order:
Show error on Shopify order:
  • Suggested answer
    INY Profile Picture
    on at
    #Error show on RDLC layout report SUM of some line value, on Shopify synchronize order
    Thank you Khushbu Rajvi,
     
    I tried the code, it still only work on normal order I created manually, but showed #Error on Shopify order.
    I wonder are Shopify orders have different dataset structure. 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Super User 2025 Season 1 on at
    #Error show on RDLC layout report SUM of some line value, on Shopify synchronize order
     
    The #Error in the "Discount Total" field in your RDLC report could be caused by data type mismatches or handling of null values. Ensure that all fields like Unit Price, Quantity, and Line Discount are numeric, not text. To avoid errors, use an IIf condition in the expression to replace null values with 0.
    For example: =SUM(IIf(IsNothing(Fields!UnitPrice.Value) Or IsNothing(Fields!Quantity.Value), 0, Fields!UnitPrice.Value * Fields!Quantity.Value * Fields!LineDiscountPercent.Value)).
    Exporting the dataset can also help confirm the data integrity
     
     

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