Hi all! Within a 'Create Record' action, I'm getting errors whenever my dynamics content doesn't have a value:
The runtime value '""' to be converted doesn't have the expected format 'Integer/int32
I've tried to solve for this by using if statements (examples below), but I'm still getting the errors. Any ideas?
if(equals(items('Apply_to_each')['Revenue'], null), null, items('Apply_to_each')['Revenue'])
i've also tried '' to see if the check for null value wasnt working:
if(equals(items('Apply_to_each')['Revenue'], ''), null, items('Apply_to_each')['Revenue'])
Hi @Connor551,
Try and use the empty function to check if it is empty. Here is an example, let me know if it works:
if(empty(items('Apply_to_each')?['Revenue']), null, items('Apply_to_each')?['Revenue'])
Looking at the function you use the word revenue. Revenue indicates to me currency value which is not an integer. Are you sure it is a null value problem.
Put a compose action in the process before the failure. Run the flow and look at what value teh compose returns. This might help to analyze your problem
Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.
User | Count |
---|---|
57 | |
44 | |
44 | |
35 | |
34 |
User | Count |
---|---|
75 | |
69 | |
59 | |
58 | |
52 |