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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Trouble with tar.gz files

Hey,

 

I'm working with tar.gz from a public FTP directory. The problem is I'm having trouble getting the file contents into PowerBI. For a single .tar.gz file, I am able to decompress:

Binary.Decompress(File.Contents("File path on local drive"), Compression.GZip))

 

Capture.PNG

 

 

 

 

 

The trouble is, I am left with a .tar file, which contains 1500-2500 XML files.  I can convert this file into a csv document or text file but it's not really useful.

 

Does anyone have any idea how to go forward from here?

 

The tar.gz files are form here (public data): ftp://ted.europa.eu/daily-packages/2018/06/

Credentials: guest & guest

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Here are some similar threads for your reference:

Decompress and load multiple .gz files from multiple folders

Binary.Decompress() and zip files

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft,

 

Thanks for the links!

I went through the references but the trouble is there isn't any information on how to work with a tar archive. I am successful in decompressing the gzip but then I'm left scratching my head with the tar archive.

Is there any way to work with tar archives in Power Query?

 

Regards,

 

Tuomas

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.