cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Zip archive with PowerShell "Error: The zip file may not be valid or may be an unsupported version."

LeoGriffM
New Contributor II

Zip archive "Error: The zip file may not be valid or may be an unsupported version."

We are trying to upload a ZIP archive to a Databricks workspace for faster and atomic uploads of artifacts. The expected behaviour is that we can run the following command to upload a zip file that is automatically unpacked into a Workspace directory. `databricks workspace import /Workspace/Shared/development/dbt/data_platform.zip --file C:\Users\...\data_platform\transformations\data_platform.zip --profile development --format AUTO` However, we get the error message "Error: The zip file may not be valid or may be an unsupported version." when compressing the archive via PowerShell. We have tried the `Compress-Archive` cmdlet and `[System.IO.Compression.ZipFile]::CreateFromDirectory()`. This error does not occur when we use Windows UI (right-click compress) or 7Zip.

I have reviewed documentation and blog posts but can't find any useful information. I've also raised a support ticket with Databricks.

Please share if you have insights, a fix or workaround for this! Thanks in advance.

1 REPLY 1

LeoGriffM
New Contributor II

May relate to feature request https://github.com/databricks/cli/issues/1221

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now