web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / CSV data import to CDS...
Power Automate
Answered

CSV data import to CDS as Decimal Number

(0) ShareShare
ReportReport
Posted on by 27

I am creating a flow where I parse CSV data.  I have setup my CDS table with text fields, Date fields and Decimal fields.  In testing I am able to load text and date fields without issue.  For the number fields I'm using the float expression to convert the number from text to a number format. In CDS I have tried both Decimal and Floating as the format but they will not load using the float expression.  If I test load the field to a text formatted column and remove the expression they load fine.  Any thoughts on resolving the issue are appreciated.  If necessary I will re-format my fields to text but would prefer to bring them in if the correct format.

 

float(items('Apply_to_each')?['txtLoadHrsBucket1'])
 
 

Unable to process template language expressions in action 'Create_a_new_record' inputs at line '1' and column '21744': 'The template language function 'float' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

 
 
 

 

Shippen70_0-1609434647950.png

Shippen70_1-1609434722026.png

 
Categories:
I have the same question (0)
  • Verified answer
    MJain Profile Picture
    2,450 on at

    Hi @Shippen70 ,

     

    Could it be possible that your input string is empty or null , if so then you have to use condition to bypass null or empty string and set it to 0 if found .

     

    Thanks

  • Shippen70 Profile Picture
    27 on at

    You are correct, the issues was the blank records.  I modified my expression to add an if condition.  If the record is Empty write '0'.  Once I did that I was able to eliminate the errors.  Thanks.

     

    if(empty(items('Apply_to_each')?['txtCapacityBucket1']),'0',formatnumber(float(items('Apply_to_each')?['txtCapacityBucket1']),'f'))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard