Unable to upload Workflow to Hub

Hi,

I am unable to upload a workflow in regards to this bug:

An internal error occurred during: "Upload of 82143 - Temp Folder Deleted upon closing Knime to My-KNIME-Hub:/Users/mwiegand/Public/Bugs/82143 - Temp Folder Deleted upon closing Knime".

java.io.IOException: Uploading '82143 - Temp Folder Deleted upon closing Knime' to 'https://api.hub.knime.com/knime/rest/v4/repository/Users/mwiegand/Public/Bugs/82143%20-%20Temp%20Folder%20Deleted%20upon%20closing%20Knime' failed: Zip entry does not exist: '82143 - Temp Folder Deleted upon closing Knime/workflow-metadata.xml'.

Best
Mike

Hi Mike!

the workflow you’re trying to upload seems to be (very subtly) corrupted, the required file workflow-metadata.xml in the root of the workflow is missing. This could happen if AP crashed while saving the workflow.

You can simply create that file in the workflow, then the upload should work. Here are valid example contents:

<?xml version="1.0" encoding="UTF-8"?>
<workflow-metadata content-type="text/plain" xmlns="http://www.knime.org/core/node/workflow/metadata/v1.0">
    <last-modified>2024-08-23T11:38:23.314+02:00</last-modified>
    <description/>
</workflow-metadata>
5 Likes

Jupp, that worked. Why not create a routine, upon opening or uploading a workflow that executes some basic checks and auto-corrects any issues (or asks to do so)?

1 Like