cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TesDA
Continued Contributor
Continued Contributor

Syntax Error - Sql Get Rows - Filter Rows OData

I have a flow moving data from the common data service to sql server.

 

In the get rows function I am trying to filter to determine if the Project ID already exists in SQL Server, if it does - modify that row, if it doesn't add a new row.

 

In my Get Rows v2 (sql) I have under filter query: Project_x0020_ID eq @{items('Apply_to_each')?['crf02_projectid']}

This is giving me the below error:

 

Syntax error at position 30 in 'Project_x0020_ID eq 100XXX.XX.XXXX - Man Power Study'.
inner exception: Syntax error at position 30 in 'Project_x0020_ID eq 100XXX.XX.XXXX - Man Power Study'.
clientRequestId: xxxxxx.....

 

In sql the column is [Project ID]

 

Any thoughts on a solution to get past this error?FLow Image.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
ChristianAbata
Super User
Super User

hi @TesDA  could you try with roject_x0020_ID eq 'PROYECT ID'  with '' 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

3 REPLIES 3
ChristianAbata
Super User
Super User

hi @TesDA  could you try with roject_x0020_ID eq 'PROYECT ID'  with '' 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
TesDA
Continued Contributor
Continued Contributor

I'm getting the same syntax error:

 

Syntax error at position 30

 

I tried:

 

Project_x0200_ID eq @{items('Apply_to_each')?['crf02_projectid']} with ''

and

'Project ID' eq @{items('Apply_to_each')?['crf02_projectid']} with ''

and

@{items('Apply_to_each')?['crf02_projectid']}' eq Project_x0200_ID    - on this one I added an apostrophe - syntax error at position 10 on this one

 

No luck

TesDA
Continued Contributor
Continued Contributor

Actually your answer was so obvious I thought it had to be more complicated. Thank you!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

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