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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans