cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AngelaW
New Member

Flow to sharepoint list

This is the error Im getting when running the test for my flow. Im trying to create items in a sharepoint list.

 

String was not recognized as a valid DateTime. clientRequestId: 5de0bc6a-9a44-4261-92a0-d47bf4fb132d serviceRequestId: 5de0bc6a-9a44-4261-92a0-d47bf4fb132d

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @AngelaW ,

 

I guess that you are trying to save data from an Excel table to SharePoint list, while it contains date and time column.

 

It is a known issue that date and time column will be converted to String when working with Flow, we need to use functions to convert it back to date and time.

 

Here I set up a flow likes below for your reference, the function used in the StartDate field is:

addDays('1899-12-30',int(items('Apply_to_each')?['Start']),'yyyy-MM-dd')

 

Hope it could be a reference for you.

1.PNG

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
RobElliott
Super User
Super User

Hi @AngelaW could you post a screenshot of your flow so we can see what's going wrong with it?

Rob
Los Gallardos

v-yamao-msft
Community Support
Community Support

Hi @AngelaW ,

 

I guess that you are trying to save data from an Excel table to SharePoint list, while it contains date and time column.

 

It is a known issue that date and time column will be converted to String when working with Flow, we need to use functions to convert it back to date and time.

 

Here I set up a flow likes below for your reference, the function used in the StartDate field is:

addDays('1899-12-30',int(items('Apply_to_each')?['Start']),'yyyy-MM-dd')

 

Hope it could be a reference for you.

1.PNG

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,521)