PowerPlatformConnectors icon indicating copy to clipboard operation
PowerPlatformConnectors copied to clipboard

Snowflake connector in Power Automate issue

Open Jack-Currie opened this issue 2 years ago • 7 comments

Type of Connector

Certified Connector

Name of Connector

Submit SQL Statement for Execution (Snowflake)

Describe the bug

I am getting the following error when trying to use the connector in power Automate.

"The API 'snowflakeip' returned an invalid response for workflow operation 'Submit_SQL_Statement_for_Execution' of type 'OpenApiConnection'. Error details: 'The API operation 'ExecuteSqlStatement' requires the property 'body' to be of type 'Object' but is of type 'String'.'"

I am simply adding the information as required, so the instance, writing the required SQL statement in the statement section etc .

Can you advise how i can resolve this?

Is this a security bug?

No, this is not a security bug

What is the severity of this bug?

Severity 1 - Connector is broken or there is a Serious issue

To Reproduce

Select Submit SQL Statement for Execution from power automate actions

add the instance app.snowflake.com/north-europe.azure/inidividualidentifier

Statement : SELECT ACTIVITYID FROM ANALYTICS.DYN.EMAIL

Database: ANALYTICS

Schema: ANALYTICS.DYN

Expected behavior

connection should run successfully without producing error

Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) CLI version (paconn --version) OS version Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Additional context

Same error is occurring for the other actions provided by this connector.

Jack-Currie avatar Jan 12 '23 13:01 Jack-Currie

Were you able to resolve this issue? I am getting the same response.

IlyaAspirent avatar Aug 10 '23 17:08 IlyaAspirent

I am also receiving this response. Have tried a variety of different Instance, statement, and integration changes.

nicktimmsdg avatar Aug 21 '23 19:08 nicktimmsdg

I was able to figure out what the issue was on my end. I was doing a Copy Into SQL statement so I wasn't expecting any results back from the query. Because the connector is built to retrieve data, it ended up failing. To work around this, I created a snowflake Stored Procedure that generates a file name uploaded as the result of the query. This at least allowed me to avoid this error. Not sure if this is the case for anyone else, but I did end up opening a ticket to allow for result-less sql statements.

IlyaAspirent avatar Aug 21 '23 19:08 IlyaAspirent

I was able to figure out what the issue was on my end. I was doing a Copy Into SQL statement so I wasn't expecting any results back from the query. Because the connector is built to retrieve data, it ended up failing. To work around this, I created a snowflake Stored Procedure that generates a file name uploaded as the result of the query. This at least allowed me to avoid this error. Not sure if this is the case for anyone else, but I did end up opening a ticket to allow for result-less sql statements.

Thanks for the reply... Mine is not working with a simple select statement, but the use case I'm working towards does involve insert/update/deletes. Im assuming its a connection issue, but not able to get any helpful error text....

nicktimmsdg avatar Aug 21 '23 19:08 nicktimmsdg

Nevermind. I am now getting it with any select statement. I opened a support ticket through Microsoft. Something changed because none of my flows using snowflake are working.

IlyaAspirent avatar Aug 22 '23 13:08 IlyaAspirent

For me, it was a slash at the end of the Instance URL

esbasti avatar Feb 27 '24 00:02 esbasti

I was able to fix this error by changing my instance uri from: app.snowflake.com/ORGNAME to ORGNAME.REGION.azure.snowflakecomputing.com

Universezero avatar Mar 20 '24 00:03 Universezero