cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mart1
Frequent Visitor

Flow fails on new item: multiple content types, one missing referenced column

Hi,

Background

My flow runs on a new item in a SP list and builds a new item in a separate list.

 

The triggering list has four content types:

  • A (columns 1, 2, 3, 4)
  • B (columns 1, 2, 3, 4)
  • C (columns 1, 2, 3)

The new item is built from columns 1, 2, 3, 4. It has a condition so it only creates the item item for content types A, B, so the flow is safe to run for content type C.

 

Problem

When I add items of content type C, the flow fails as follows:

The API 'sharepointonline' returned an invalid response for workflow operation 'When_new_SHE_Report_is_created' of type 'OpenApiConnection'. Error details: 'The API operation 'GetOnNewItems' is missing required property 'body/value/0/Brief_x0020_Description_x0020_of'.'

 

Current assessment and attempted remedy

The failure seems to be because the triggering content type is missing referenced column 4 (even though logic means it will never actually hit that reference). I tried adding 'content type is A or B' logic to the trigger conditions, but that didn't help.

 

Any suggestions welcome, I'm currently out of ideas.

 

Many thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Mart1
Frequent Visitor

I found a solution:

1. Removed direct references ('dynamic content') to the sometimes-missing column name.

2. Replaced with a Concat expression taking the column name and '' as follows:

  • concat(triggerOutputs()?['body/Brief_x0020_Description_x0020_of'],'')
 
I hope this helps somebody.

View solution in original post

2 REPLIES 2
Mart1
Frequent Visitor

I found a solution:

1. Removed direct references ('dynamic content') to the sometimes-missing column name.

2. Replaced with a Concat expression taking the column name and '' as follows:

  • concat(triggerOutputs()?['body/Brief_x0020_Description_x0020_of'],'')
 
I hope this helps somebody.

Thanks for your posting here and sharing the solution in the forum as it would be helpful to anyone who encounters similar issues. Please consider Accept your answer as the solution to help the other members find it more quickly.

Best Regards.

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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!

Top Solution Authors
Top Kudoed Authors
Users online (3,626)