cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryan2k
Resolver I
Resolver I

Adddays not working as expected

Hello - I have this exact syntax working in another flow (though adjusted to the appropriate 'Apply to each' variable) but it's not working in a different Flow. The error says it's getting value NULL, but I don't see anything wrong with the expression. Can someone help me take a look?

 

Expression use:

expressionexpression

 

Expression usedExpression used

 

NOTE: The "Apply_to_each_27" is correct, it's from another value earlier in the flow.

 

Here's the error I receive:

 

Error receivedError received

3 REPLIES 3
RezaDorrani
Dual Super User II
Dual Super User II

Hi @ryan2k 

 

items('Apply_to_each_27')?[FirstDeliveryDatec'] - this is returning null

hence adddays will fail 

 

 

check value in 

 

items('Apply_to_each_27')?[FirstDeliveryDatec']

 

add a compose action before your vtam start2 action 

and for compose action set value as 

items('Apply_to_each_27')?[FirstDeliveryDatec']

 

you can see if it has data

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

v-alzhan-msft
Community Support
Community Support

Hi @ryan2k ,

 

I'm afraid that the expression"Apply_to_each_27" is wrong since it is under the Apply to each 28.

1.png 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Apply_to_each_28 is wrapped inside of Apply_to_each_27, so that shouldn't be the issue - it's pulling that value without a problem.

 

I'll try to test those compose actions to see the vaule of the adddays syntax as suggested.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,878)