Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Electronic reporting import xml with empty amount node

(1) ShareShare
ReportReport
Posted on by 2
Hi 
I need to import an xml with electronic reporting,
but it looks like it cant handel empty.
Error: parsing error in the format component 'File/XXXX/CrossRateUSD/CrossRateUSD': Input string was not in a correct format..
 
<Currency>
    <Unit>1</Unit>
    <Isim>ABD DOLARI</Isim>
    <CurrencyName>US DOLLAR</CurrencyName>
    <exch>33.12244</exch>
    <CrossRateUSD/>
    <CrossRateOther/>
</Currency>
but it is not mandatory
 
 
  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,131 Super User 2024 Season 2 on at
    Electronic reporting import xml with empty amount node
    Is the issue is resolved?
    It is correct to you String type for CrossRateUSD.
    Ref to the used formular, you use the value of @.CrossRateUSD.CrossRateUSD if it is not empty.
    As it is mentioned, you can change the format of node by transformation field:
  • Suggested answer
    CU31070722-0 Profile Picture
    CU31070722-0 2 on at
    Electronic reporting import xml with empty amount node
    it took me to match time, i changed the field to string and on the mapping i used this
    if( @.CrossRateUSD.CrossRateUSD = "", value("0"),VALUE (@.CrossRateUSD.CrossRateUSD))
     
  • Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    Electronic reporting import xml with empty amount node
    Hi,
    There have been discussions about similar issues on the forums before, and you can refer to this old thread: https://community.dynamics.com/forums/thread/details/?threadid=9befa387-8b6e-ee11-8df0-6045bdeb8873Do you have anything in Visibility expression?
    Best regards,
    Kevin
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,131 Super User 2024 Season 2 on at
    Electronic reporting import xml with empty amount node
    Hi Dick,
    You can create a string node and then if it is required, use NUMBERFORMAT formular to have the numeric format that you want.
     
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Electronic reporting import xml with empty amount node
    Hi,
    You can check the following link about number and currency formats:
    Format a number or currency field - Microsoft Support
    Best Regards,
    Hana

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... 291,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans