cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sbibbco
Helper I
Helper I

AMA: Flow error

I am getting the following error when attempting to get date and time items from a SharePoint list - Unable to process template language expressions in action 'Get_items' inputs at line '0' and column '0': 'The template function 'formatDateTimeutcNow' is not defined or not valid.'.

28 REPLIES 28
cwebb365
Super User
Super User

No, you're missing the apostrophe like I said to add. See screenshot. Also remove leading space. 

Screenshot 2022-03-15 115234.jpg

That worked, thank you much, but the output looks terrible

JamesRA
New Member

I have the same error message on my side

 

James, check the syntax and make sure there are no spaces. also beware of cut and paste.

Capture.JPG

Hi sbibbco, I followed your recommendation, but I have the same problem.


I have this error message: 
{"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The expression \"Valid To eq '2022-06-15T17:48:29.1436051Z'\" is not valid."}}}

cwebb365
Super User
Super User

You need to get the actual SharePoint column name to use in the filter. You can’t have a space in the name. Go to the list settings then the column and you’ll see it in the URL. It’ll either be Validto or something like Valid_X0200_To 

 

then use that value instead of Valid To 

cwebb365
Super User
Super User

Surrounding it with ‘Valid To’ might work. Can’t remember. But either way that’s most likely the issue or at least one of them. You might still have ti formate the date time to something you can use as well if that doesn’t work that’ll be the next thing which I covered in this post already.  

Thank you so much, it worked. I change the Valid To by "Valid_x0020_To"

 

You are a genius 😛

megan37
Frequent Visitor

@cwebb365 thanks for that screen shot, fixed a similar issue I was having!

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 (2,444)