Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ecurren-lmi
Contributor
Contributor

tFileInputJSON "Can't find any data with JSONPath"

I've searched other issues similar to this one, but I have not found a solution that solves the issue I am facing at the moment.

 

My job writes out data in JSON format to a file via a tFileOutputJSON component.  It then open the file using a tFileInputJSON to read the data out of the file.  Both components use the same schema.

 

The job looks like this:

0683p000009MaYa.png

 

The output of the tFileOutputJSON_1 looks like this:

{
	"data": [
		{
			"RowId": "0",
			"WorksheetIndex": 16,
			"Value": "504353",
			"SheetColumn": "A",
			"SubjectId": 0,
			"WorksheetName": "LookUps"
		},
		{
			"RowId": "0",
			"WorksheetIndex": 16,
			"Value": "Tolle, Sebastian",
			"SheetColumn": "B",
			"SubjectId": 0,
			"WorksheetName": "LookUps"
		},
		{
			"RowId": "0",
			"WorksheetIndex": 16,
			"Value": null,
			"SheetColumn": "CI",
			"SubjectId": 0,
			"WorksheetName": "LookUps"
		},
		{
			"RowId": "0",
			"WorksheetIndex": 16,
			"Value": null,
			"SheetColumn": "CJ",
			"SubjectId": 0,
			"WorksheetName": "LookUps"
		}
	]
}

The mapping for tFileInputJSON_1 looks like this:

0683p000009MaYf.png

 

And the resulting output from running the job ends with this error:
0683p000009MaXJ.png

I appreciate any and all help I can get on this.

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

Hi,

 

you need to use JSONPath with loop
https://goessner.net/articles/JsonPath/ 

 

cheers

View solution in original post

4 Replies
vapukov
Master II
Master II

Hi,

 

you need to use JSONPath with loop
https://goessner.net/articles/JsonPath/ 

 

cheers

vapukov
Master II
Master II

Hi,

 

you need to use JSONPath with loop
https://goessner.net/articles/JsonPath/ 

 

cheers

ecurren-lmi
Contributor
Contributor
Author

Thanks very much vapukov.  I appreciate your help.

ecurren-lmi
Contributor
Contributor
Author

Thanks very much vapukov.  I appreciate your help.