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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The runtime value "" t...
Power Automate
Unanswered

The runtime value "" to be converted doesn't have the expected format 'Number/double'.

(0) ShareShare
ReportReport
Posted on by 1

ricardoperezdxc_0-1654527902630.png

 

Good morning, 

We have an app in PowerApps that you click on a Save button and it calls a Flow where we insert a collection into a Dataverse table.

The problem is that if we do not send a value in most of the fields, it is going to fail and raise the error required to be "Number/double". 

I am not sure if this is the expected way to handle this, I don't think we should avoid empty values in number columns.

 

Regards.

 

Categories:
  • m_richards Profile Picture
    13 on at

    You need to pass a null value, I think "''" is a blank string (which is different from null). I'm actually running into the same issue, so will just post my stream of thoughts here as I solve for this.

     

    I have this code to solve for a similar issue for my DateTime columns. The if statement looks at the value, and if it equals '' (a blank string, I think?), it will pass a "null" value instead.

     

    if(equals(items('Apply_to_each_row')?['Date Column'], ''), null, addDays('1899-12-30', int(items('Apply_to_each_row')?['Date Column']), 'MM-dd-yyyy'))

     

    m_richards_1-1660227045496.png

     

    One thing to note is I'm running these expressions in a compose step, and then passing that output along. I don't know if this is necessary, or if you can run the expression directly on the output. (In this use-case, I'm bringing data from an Excel table into a Sharepoint List, to give some context).

     

    This fixes the issues for datetime. Let's see if we can change it to work for a number field.

     

    First attempt:

     

    if(equals(items('Apply_to_each_row')?['Number Column'], ''), null, items('Apply_to_each_row')?['Number Column'])

     

    This should see if the value is equal to '', and if it is, changes the value to null, otherwise it will use the number from the column. I'll also skip using the compose action and write this expression directly into the step I need it in.

     

    m_richards_2-1660227297658.png

    Here, you can see the above expression being used in the Ticket Count column (which is a number column in my Sharepoint List). This mapping was passing the error you pasted in previous flows, so will test and see if this now passes.

     

    The test passed and the previously unimported rows (that gave the same error as above) have now been imported/updated correctly.

     

    TL;DR

     

    if(equals(items('Apply_to_each_row')?['Number Column'], ''), null, items('Apply_to_each_row')?['Number Column'])

    Using the above function should work.  Just be sure to select the column correctly and then test it against the '' output. This will pass a null value if it finds an empty cell passing a '' string.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard