Skip to main content

Notifications

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 4
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
    INY 4 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
    Khushbu Rajvi. 7,919 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans