Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Fzamk19
Contributor

Data loading to snowflake using tsnowflakeoutput

I have a table at snowflake which has all the columns as variant data type. When I load the data into the table using tsnowflakeoutput component.

The error I receive is Error Parsing json.

But when I add double quotes(tmap) around my data then data is loaded successfully and then on snowflake table all the data is shown in double quotes which is not the requirement.

Can anyone tell me what am I doing wrong?

Note: Input data is coming from an api in json format which is being extracted using textractjsonfields and then loaded into snowflake

Labels (4)
2 Replies
Anonymous
Not applicable

Hi

It seems we can't load data to snowflake variant field using tSnowflakeOutput, the component doesn't support variant type. To insert a variant data, you can use tSnowflakeRow component, see

0695b00000bEXC1AAO.pngor build the json string from input data,

0695b00000bEXC6AAO.png 

for inserting a XML data into variant field, please refer to this page.

 

In your case, why don't you load the whole json string returned by API into one variant column?

 

Regards

Shong

 

 

Fzamk19
Contributor
Author

Thanks @[shong]​ .. Let me test this out