cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Reddy
Level: Power Up

"Condition is too complex or invalid" while trying Create tasks in planner for new Outlook Tasks

When rying to create a new flow based on "Create tasks in planner for new Outlook Tasks" template, I get the message "Condition is too complex or invalid. Unable to switch to basic mode".condition.PNG

 

 

I have not modified the condition. What can be the cause? 

4 REPLIES 4
Super User
Super User

Re: "Condition is too complex or invalid" while trying Create tasks in planner for new Out

Hi @Reddy,

 

As I see, you are most probably trying to reach somethin like:

NotEmpty DueDateTime and DateTime

 

So the expression in your condition should be slightly different

 

@not(and(empty(triggerBody()?['DueDateTime']),empty(triggerBody()?['DateTime'])))

It depends from where you get DateTime if it is also delivered into Flow by trigger.

P.

Community Support Team
Community Support Team

Re: "Condition is too complex or invalid" while trying Create tasks in planner for new Out

Hi @Reddy,

 

Sometimes when the expression in the Condition is too complex, we could switch the Condition to basic mode, you could just leave the Condition in the advanced mode and run the flow.

 

I have made a test on my side and create the flow as screenshot below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

Administrator
Administrator

Re: "Condition is too complex or invalid" while trying Create tasks in planner for new Out

Hello,  @Reddy!

Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Reddy
Level: Power Up

Re: "Condition is too complex or invalid" while trying Create tasks in planner for new Out

Hi,

 

Sorry I didn't reply earlier, I was busy on another project. I tried your suggestion but the flow still fails.

 

flow compose.PNGflow_run.PNG

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,155)