I have the following SQL Query running in a workflow and when I copy and paste the code directly in Snowflake it works without a problem, but it does not work in the workflow. Here is the code that is run in Snowflake and in Retool:
Snowflake:
copy into lppingpost ("pingedContractID", "contractID", "campaignID", "entity", "entityID", "accepted", "response_code", "total_time", "priceToken", "sessionIDToken", "messageToken", "response", "createdOnDateTime", "affiliateID", "advertiserID", "verticalID", "campaignName", "affiliateName", "contractName", "advertiserName", "verticalName")
FROM @snow_simple/misc/retool/pingPostLog/pingPostLog_2023-10-23_0.csv
file_format = (format_name = PINGPOST);
Retool:
copy into lppingpost ("pingedContractID", "contractID", "campaignID", "entity", "entityID", "accepted", "response_code", "total_time", "priceToken", "sessionIDToken", "messageToken", "response", "createdOnDateTime", "affiliateID", "advertiserID", "verticalID", "campaignName", "affiliateName", "contractName", "advertiserName", "verticalName")
FROM @snow_simple/misc/retool/pingPostLog/pingPostLog_{{query1.data['0'].LPDATE}}_{{query1.data['0'].PINGPOSTPAGE}}.csv
file_format = (format_name = PINGPOST);
I've tried putting @snow_simple/misc/retool/pingPostLog/pingPostLog_{{query1.data['0'].LPDATE}}_{{query1.data['0'].PINGPOSTPAGE}}.csv
in single quotes and double quotes but that too doesn't work.