cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudheermadduru1
Regular Visitor

A text field contains invalid data

Hi,

 

I have a field called ApprovalDate2.

 

ApprovalDate2 column is of type single line of text.

 

I am updating the above field with todays date in the update item action as below 

formatDateTime(utcNow(),'MM-dd-yyyy')

 

But I am getting the error as below. Please let me know if I am making any mistake

'A text field contains invalid data. Please check the value and try again.'

 

Regards,

Sudheer

1 REPLY 1
abm
Super User
Super User

Hi @sudheermadduru1 

 

FormatDateTime returns a string value so that should work as expected.  Are you sure this error is related to ApprovalDate2 formatDateTime() value? Try also formatting without the hyphens.  

 

formatDateTime(utcNow(),'MMddyyyy')

 

I am not suggesting to remove hyphens as a suggested solution but lets see what error you get?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

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
Users online (3,447)