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
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,297)