cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

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

Re: Syntax Error - Sql Get Rows - Filter Rows OData

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

Re: Syntax Error - Sql Get Rows - Filter Rows OData

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

Highlighted
Helper V
Helper V

Re: Syntax Error - Sql Get Rows - Filter Rows OData

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

Highlighted
Helper V
Helper V

Re: Syntax Error - Sql Get Rows - Filter Rows OData

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,971)