Skip to main content

Notifications

Announcements

No record found.

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

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

(1) 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
    INY 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. Moderator 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans