I have a trigger condition as per below:
It is supposed to prevent an infinite loop occurring, if date modified (+ 2 minutes) is not less than or equal to the flow run time then don't trigger however I am receiving this error when I run a test:
Thanks - any help is greatly appreciated!
Solved! Go to Solution.
@Blurryface Yeah for using Trigger condition you need "@" .
The error tells me, "Paramater to be string that contains time".
Can you create a new two action Power Automate(I do not want to start an Infinite Loop)
It should help you debug the problem.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
I done that and found that my field was incorrectly named:
@not(LessOrEquals(triggerBody()?['Modified'],addMinutes(triggerBody()?['FlowRun'],2)))
I had put a space in it - thanks for tips on how to troubleshoot!
Can you remove @ before not? I tried following expression and it works fine...
Hi Prasad,
Thanks for your comment this is specifically for Trigger Conditions which require the "@":
I am also using two date fields "Modified" (the systems field) and "Flow Run" a date field created in the list.
@Blurryface Yeah for using Trigger condition you need "@" .
The error tells me, "Paramater to be string that contains time".
Can you create a new two action Power Automate(I do not want to start an Infinite Loop)
It should help you debug the problem.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
I done that and found that my field was incorrectly named:
@not(LessOrEquals(triggerBody()?['Modified'],addMinutes(triggerBody()?['FlowRun'],2)))
I had put a space in it - thanks for tips on how to troubleshoot!
Hello Team,
It seems from the error that the expression is expecting a string but getting a value that is of type Date/Time, so you might need to modify your expression a bit to first format the existing Date/Time value to a string and then Add the +2 Minutes logic.
Here is an example reference that might help you in this-
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
@Blurryface Wohoo i am glad that by tip helped you resolve the problem. Happy weekend!!
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.