Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

read JSON file to database

$
0
0

Hi

 

Just downloaded the trial of alteryx as I want to prove that this is the tool for us.

First, simple task I hope, is to read a json fila as input and simply store it to my database. (netezza)

 

I tried to just use input data and then output data, but get an error like this:

Error: Output Data (5): Error creating table "MBC1": ERROR: Invalid datatype - 'NTEXT'
CREATE TABLE "MBC1" ("JSON_Name" ntext,"JSON_ValueString" ntext) DISTRIBUTE ON RANDOM

If I transform the json to csv I get to read it. But now I also get a lot of stuff I do not want. LIke HTML stuff. (look at the description value in the picture below)

Also it should be about 100 columns in the json, but the create table statement indicates that it only try to store two?

 

Here is a sample from the JSON

JSON_SETUP.jpg

 

any tips and tricks would be appreciated

 

BR 

DJ


Viewing all articles
Browse latest Browse all 4999

Trending Articles