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

Null form fields causing flow to fail

I have a form with lots of sections and branching meaning not all of the form fields get filled usually. i have 15 date fields and similar number fields feeding a list box formatted the same. if i make all list fields text, the flow will run with null values present on the form. this is not ideal. how can i run my flow?

 

here is the error: 

 
 
 
 
 

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

1 REPLY 1

@Lochwood 

Hi there!  Do you have a Parse JSON step?  Is that where this is erroring out?  If so, this is caused by the "upload sample payload to build schema" bit that Flow/PA includes.  It's typically very helpful, but can cause problems for non-developers because it assigns a "type" to EVERY value.  So that means that future runs will need to have matching data, or you'll see this error.  (For me, it was an "Address 3" which is never filled out.

 

The "trick" is to remove the type for the offending field.  Check out John Liu's Thesis on the Parse JSON action for more details.  Specifically, "Problem 4".

 

Keep us posted.

-Ed-

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,818)