I need to create a csv to export a file from Snowflake to Box.
What is the problem & what have you tried?
In the past, I’ve been able to see the fields from the iterator and then map them into the CSV module. I’ve confirmed that the iterator is processing the columns, as I clicked the white bubble on the top of the iterator module. However, when I add the Advanced CSV module, I cannot map the fields. All I see is Flow Control, Total number of bundles, bundle order position, and Value. I am not able to select my columns. I see that I could type them in manually such as {{2.Source}} but some of my fields have spaces in them, and if I type in {{2.‘Source Type’}} it doesn’t work. Help?
Try reloading the scenario to see if they appear. If not, you can type them in manually. Hover over a variable to see it’s raw name and it should be something like {{6.fiscal_year}} for example.
Thank you for your message. I have reloaded the scenario multiple times. To no avail. I would be willing to type in the fields manually, but I have some fieldnames with spaces (“Fiscal Year”) and I need to know the syntax. I have tried spaces, wrapping in extra curly brackets, single quotes, double quotes. Nothing is working.
Hover your mouse over the variable in the previous module and it will tell you the raw name. It’s either fiscal_year or fiscalYear or something of that sort.
It shows as “Fiscal Year.” I also tried renaming the fields in the Snowflake SQL statement
, “Fiscal Year” as Fiscal_Year
and then I typed in the fields names manually {{2.Fiscal_Year}} but in my output all my single-word variables had data and all my renamed fields (like Fiscal_Year) were blank.
The way I am executing this on current exports is
Check the Box folder
If the file exists, change the name and move it
Execute SQL in Snowflake
Iterate by Array > Rows
Create CSV