Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Cannot convert the literal to the expected type 'Edm.Decimal through OData

(1) ShareShare
ReportReport
Posted on by 9
Hi everyone,
 
Can you help me with the issue where I can't put an amount more than 10 million with decimals in the Unit Price field through OData?
 
Error message I receive from the OData : Cannot convert the literal '13657080.28' to the expected type 'Edm.Decimal
 
If I send the same amount without decimals it is working, but once I add decimals for an amount greater than 10 million it fails.
 
If it put it manually in the front-end it's working fine.
 
13657080.28 -> Not working
13657080 -> Working
65708.02 -> working
 
 
 
Thank you in advance.
Talha
  • Vasilena Bacheva Profile Picture
    19 on at
    Cannot convert the literal to the expected type 'Edm.Decimal through OData
    Hi Talha, 
     
    Did you resolve this issue? I'm facing the same one and would appreciate if you can share a relevant solution. 
     
    Thanks 
  • Guido Preite Profile Picture
    54,077 Moderator on at
    Cannot convert the literal to the expected type 'Edm.Decimal through OData
    did you check the range for that field? first thing I will check if the value you want to insert is outside the range
    Also if you can write the exact OData query you are trying to run it will be useful

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans