Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I'm working with an API that delivers payloads compressed using brotli. I've been looking for documentation on decompressing this in the Power Query Editor. Microsoft's documentation on this is non-existent and I can't figure out how to make it work.
Here's roughly what I've got right now:
let
Source = Binary.Decompress(
Web.Contents(
"https://testURL.net/history/TestBrotli",
[Headers=[Authorization=#"myAPIkey"]]
),
Compression.Brotli
)
in
Source
Does anyone have experience with this? Any pointers?
Solved! Go to Solution.
It seems like the Compression.Brotli argument isn't even implemented. I can't get it to work with a test example from here, even when entered in the most basic form.
Hi @lance_6 ,
Like I guessed, it only supports the two types which are introdcued in the document, here is the update from PG team:
This is working as documented, the only compression types supported are as documented. Using any other types throws the appropriate Invalid compression type.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lance_6 ,
Like I guessed, it only supports the two types which are introdcued in the document, here is the update from PG team:
This is working as documented, the only compression types supported are as documented. Using any other types throws the appropriate Invalid compression type.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. This is frustrating and the other compression functions should definitely be either made functional or removed.
Hi @lance_6 ,
Currently I have found some information on Binary.Decompress document:
Perhaps it only supports .GZip and .Deflate type in Power Query Editor but not certain. I have submited this issue internal to confirm it(ICM: 296956165), would update here as soon as possible if there is any progress about it.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It seems like the Compression.Brotli argument isn't even implemented. I can't get it to work with a test example from here, even when entered in the most basic form.
This is the same thing I found. Looks like although they have the `Compression.Brotli` function, they don't have it implemented and only accept the two options @v-yingjl mentioned. Compression.GZip and Compression.Deflate
I'm not sure why they would have the functions and not allow for them to be used. Very frustrating, Microsoft being Microsoft.