cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisS81
Helper II
Helper II

SharePoint Create Item Action

Good Morning,

 

I'm running into an issue that I cannot solve. I have users completing a MS Forms form and their responses are being logged in a SharePoint List via Power Automate. I'm getting an error on the SharePoint "Create an item" action. The error message is below:

 

The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_13' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.

 

The problem is that #1 I do not have a field column called "field_13" in my SharePoint List and none of the field in my List are required, except for the Title field of course. Any ideas on why this mystery field is causing this error?

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
v-liwei-msft
Community Support
Community Support

Hi @ChrisS81 

 

You can use the if function on the date field to give the field a null value if the date is empty.

if(empty(outputs('Get_response_details')?['body/xxxxxxxxxx']),null,outputs('Get_response_details')?['body/xxxxxxxxxx'])

In this way, flow will not report an error.

 

Best Regards,

Levi

View solution in original post

4 REPLIES 4
abm
Super User
Super User

Hi @ChrisS81 

 

 Looks like there is a mapping issue here. Are you collecting any date field from the form response? Is that non-mandatory field? Looks like its blank. To able to give you an exact answer could you please post  a screenshot of your flow?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

@abm, yes I am collecting a date field from the form response. The date fields are no mandatory. After a little more investigating it looks as if I receive that error message for any date field where I have not selected a date. When I remove the MS Form dynamic content for the date fields I do not receive the error. But the moment I add the dynamic content back to the date fields and submit the form without entering a date field, I get the error.

 

 

 

 

v-liwei-msft
Community Support
Community Support

Hi @ChrisS81 

 

You can use the if function on the date field to give the field a null value if the date is empty.

if(empty(outputs('Get_response_details')?['body/xxxxxxxxxx']),null,outputs('Get_response_details')?['body/xxxxxxxxxx'])

In this way, flow will not report an error.

 

Best Regards,

Levi

ChrisS81
Helper II
Helper II

@v-liwei-msft this solved my issue. Thank you so much!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,188)