cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

Hi, I have a flow that is connected to excel and uses the values to populate a sharepoint list. It is returning the date value as a number. I have read other post about this issue and input the following formula in the date values for the create item part of the flow: 

addDays('1899-12-30',int(items('Apply_to_each_2')?['Date']))
 
Yet, I am still getting an error, i also tried replacing 'int' with 'float' and i get the same error. The dates appears in excel as the following 'mm/dd/yyyy'. 
 
I also remade the flow to no avail. 
I am not sure what else could be the issue, any suggestions? 
11 REPLIES 11

Apologies for delay in replying, I've been busy on other tasks.  Thankyou for the comment however I managed to get the data into the sharepoint list by running 2 flows.   Te first  

ShriramP
Advocate I
Advocate I

@surfpaddy Good to know! 🙂

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,574)