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

Unable to Update a Date Field in Sharepoint List

Hi All, 

Please help!

I have set up a sharepoint list using an existing excel file. After having some problems in trying to get dates to work, I managed it using 

addDays('1899-12-30',int(item()['Created']),'yyyy-MM-dd')

 

HOWEVER, now I am unable to update this Date field using a seperate excel file I will want to use every day to update the data.

I have checked all variables and I have no problems updating any of the other fields, and I can create new items with the date field no problem, I just CANNOT update the date field and it is driving me crazy. 

I am getting the following error (sorry for the German but hoping someone can help anyway)

 

InvalidTemplate. Vorlagensprachausdrücke in den Eingaben der Aktion "Element_aktualisieren" in Zeile "1" und Spalte "24932" können nicht verarbeitet werden: Die Vorlagensprachfunktion "int" wurde mit einem ungültigen Parameter aufgerufen. Der Wert kann nicht in den Zieltyp konvertiert werden..

 

Details of my flow, with the error, below:

Sharepoint Help 1.png

Sharepoint Help 2.png

Sharepoint Help 3.png

1 REPLY 1
Highlighted
Dual Super User III
Dual Super User III

Re: Unable to Update a Date Field in Sharepoint List

Hi!

So you are using the same WDL expression both on your 'Element erstellen' and 'Element aktualisieren' action blocks; and it works fine with the first one but throuws an error with the second one?

If so, I would add a dummy 'Compose' action block inside 'Auf alle amwenden 2' and just before 'Element aktualisieren', assign as its input item()['Created'], reexecute the flow and inspect its results, just to make sure its content is a valid number. I mean, if the excel cell is empty, output value will be null and int() will fail.

Hope this helps

 

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,249)