Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Mavit
Regular Visitor

JSON Stop transformation If table is empty

Hi!

I have a report where every day is refreshed from the JSONfile with tickets generated from Jira. Sometimes In this file, tickets do not exist and then I have the below message.

 

An error occurred in the ‘Transform File (3)’ query. Expression.Error: The column 'expand' of the table wasn't found. Details: expand

 

File without Tickets:

{"startAt":0,"maxResults":1000,"total":0,"issues":[]}

 

File with tickets:

{"expand":"names,schema","startAt":0,"maxResults":1000,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"460508","self":"https://jira.3shape.com/rest/api/2/issue/460508","key":"ITHD-123647","fields":{"components":[{"self":"https://jira.3shape.com/rest/api/2/component/19265","id":"19265","name":"AX"}]}}]}

 

I have any possiility stop transforming file if table issue is empty? 

2 REPLIES 2
aj1973
Community Champion
Community Champion

Hi @Mavit 

adding a code in the extraction script of the JSON files is the best way.

Exemple with Powershell extraction :

aj1973_0-1691670044654.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

All data are extracted in JSON file, just something table issue is empty, becouse I don't have an issue in Jira under API response

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors