简体   繁体   中英

Azure Logic Apps: How do I execute a join query

I am trying to run a query which joins 2 tables from an Azure SQL Database. When I run the query in SQL editor I get the result I need.

However In order to allow users on my website to filter the data I am displaying from this database I am using an Azure Logic App with the query being unsuccessful giving me the following error "BadRequest. Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: R. Path '', line 0, position 0."

The query is

"select *
from [dbo].[Players] e
inner join [dbo].[Player_Stats] p
on e.playerID = p.playerID
order by Assists DESC"

I have no idea why this would be the case, can anyone help me?

Appears to be a JSON deserialization error, make sure the result is cleared of any special characters, quotes or escape characters before passing it on the SQL activity.

Further checkout MS docs for SQL connector here and for functions for escape characters here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM