cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

O Data error in Flow

Hi,

 

I'm creating a Flow that sends reminder emails out when a date, "Contract Expiry", in a SharePoint list is approaching. My Flow runs on a daily occurrence that uses the below logic

 

Capture.JPG

 

The Compose expression is:

 

addDays(utcNow(),30,'MM/dd/yyyy')
 
The filter query is:
 
ContractExpiry eq ‘@{outputs('Compose')}’
 
Then it gets the items in a the SharePoint list and I get error:
 
The expression "ContractExpiry eq ‘03/28/2020’" is not valid.
clientRequestId: 27953680-8d1b-46fb-bbd0-672484d7afb5
serviceRequestId: 27953680-8d1b-46fb-bbd0-672484d7afb5
 
The column in SharePoint is called ContractExpiry and doesnt have any spaces etc. 
 
Does anyone have any ideas as to what I am doing wrong?
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: O Data error in Flow

Hi @Jamiehopper1 

 

Also please make sure you are using the right single quotes (') between the output mapping. From the screenshot you shown it showing me as a different character. Please check it again or remove both single quotes and add it again.



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

View solution in original post

8 REPLIES 8
Highlighted
Super User
Super User

Re: O Data error in Flow

Hi @Jamiehopper1 

 

Could you try the format to 'yyyy-MM-dd' ? Let me know how it goes.

 

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
Highlighted
Frequent Visitor

Re: O Data error in Flow

Hi there,

 

I tried as you suggested and it didnt work, I also tried the format dd-MM-yyyy.

 

Thanks

Highlighted
Super User
Super User

Re: O Data error in Flow

Hi @Jamiehopper1 

 

What's your ContractExpiry column schema type?

 

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
Highlighted
Super User
Super User

Re: O Data error in Flow

Hi @Jamiehopper1 

 

Also please make sure you are using the right single quotes (') between the output mapping. From the screenshot you shown it showing me as a different character. Please check it again or remove both single quotes and add it again.



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

View solution in original post

Highlighted
Frequent Visitor

Re: O Data error in Flow

Is the schema type what type of column it is? If so, it is a date/time column and although the field is titled "Contract Expiry", its field ID is ContractExpiry (without the space).

Highlighted
Super User
Super User

Re: O Data error in Flow

Hi @Jamiehopper1 

 

Thanks for your quick reply. Check the single quotes which I posted earlier and let me know.

 



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
Highlighted
Frequent Visitor

Re: O Data error in Flow

Looks like you were right, the singular quotation marks were not in the correct format. They were curved instead of straight. Issue seems to be solved now. Thanks very much for your help.

Highlighted
Super User
Super User

Re: O Data error in Flow

Hi @Jamiehopper1 

 

Believe you might have copy and pasted the filter. I have seen this before so just wanted to make sure. Glad that it is working for you. Could you please accept the solution as answered as it will help others in the community?

 

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

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,282)