Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

JSON parse tool (Error Message)

tjamal1
8 - Asteroid

Hello

 

I am trying to create a table from JSON  i got from calling an API but the problem is that when i use JSON parse Tool  , I got his error

 

ConvError: JSON Parse (16): Error message: Invalid value. at character position: 0

 

I need 4 fields in table format

 

City , Longitude , Latitude 

 

Is there anyway to get this output

 

I have attached my workflow 

 

 

 

3 REPLIES 3
GiuseppeC
Alteryx
Alteryx

Hi @tjamal1,

 

it's just an oversight in the configuration of the JSON tool, you are making it parse the queryforjson field rather than the DonwloadData field, which contains the actual data to parse.

GiuseppeC_0-1584031481933.png

It works fine on my end after applying the change.

 

Hope this helps!

Giuseppe

 

tjamal1
8 - Asteroid

Oh , I should have rechecked that 

Thanks for letting me know

 

Can you change these fields from json parse tool  to column so that i could get a table format  ?

City, Longitude , Latitude 

 

 

GiuseppeC
Alteryx
Alteryx

@tjamal1, sure!

 

I've used the Multirow formula to calculate a record id (noticed that 'standard.prov' json tag would be the beginning of a new record) then Transposed the data and used Select to narrow down the fields to what's interesting for you.

 

See below and attached.

 

GiuseppeC_0-1584032639039.png

Hope this helps!

Giuseppe

Labels