cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper 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
Super User
Super User

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (95,057)