cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mjburley
Resolver II
Resolver II

Pushing dates from Excel into SharePoint list, where some dates are blank

I have a scheduled flow that runs each night, and copies all the dates from a  spreadsheet into a SP list.

 

The SP list columns are date/time columns.

 

The Excel columns are currently text strings of the right format (2020-07-01) which push fine into SP date columns.

 

The date fields in Excel may have dates or be blank. There are 24 odd date columns so using variables is to be avoided...

 

If they are blank I get the error;

 

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

 

I can format the spreadsheet columns as needed. Originally as dates, they came through as 44863 (the days since 1900 thing), so i switched them to text to simplify the logic....

 

When i tried to format the dates in Flow, the ever expanding Apply to Each loops Flow generated lost the relation to the data I required, so I tried variations of Compose etc. but just got more and more lost.

 

Can someone suggest a way forward; is my approach just wrong? In its simplest it would be a spreadsheet of:

 

SomeID FieldDate1Date2
115/07/202015/07/2020
230/08/2020 
3 01/01/2020

 

to insert into SP with matching columns (Date1 and Date2 as date/time columns). Example Flow:

 

Sp-dates.jpg

 

1 REPLY 1
JohnAageAnderse
Memorable Member
Memorable Member

Hello @mjburley 

Did you find a solution or is the need still relevant?

Looking forward to hear from you 🙂

Kind regards, John

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 (3,283)