0

I am getting below error and below are the flow steps and i got to increment the noofassignments field whenever the status is changed as Active,Kindly help

enter image description here

enter image description here

enter image description here

enter image description here

update item, I use the below expression to increment the counter for the Noofassignments field

enter image description here

1
  • Can you please go back to a failed run of your flow and click the "Update Item" step inside "Yes". That should provide more information about why that step is failing.
    – user79408
    Commented Dec 20, 2022 at 21:40

1 Answer 1

0

Referring to https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#empty, empty function can't be used on types other than String, Array, or Object. Though numbers are typed as Float, Integer or any number types which is also an object in dotnet, the term "Object" here refers to an entirely JSON object. So, that's probably the reason why it's error.

So you might need to change your expression to if(equals(items('Apply_to_each')?['Noofassignments'],null),1,add(items('Apply_to_each')?['Noofassignments'],1)).

Hope that helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.