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
Community Champion
Community Champion

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
Community Champion
Community Champion

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 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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,556)