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.
Solved! Go to Solution.
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
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?
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blog@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.
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
User | Count |
---|---|
94 | |
39 | |
24 | |
21 | |
16 |
User | Count |
---|---|
128 | |
49 | |
48 | |
31 | |
24 |