We recently migrated several workflows from KNIME Server to KNIME Business Hub. These workflows were already running in production and consuming the REST API without issues.
However, after the migration, when we try to call the workflows via REST, we get the following error:
The called workflow contains 9 input nodes, but at most one node is required.
Any guidance, examples, or best practices from the community would be highly appreciated .
You may be using the “Raw-execution” endpoint (/raw-execution). In this case exactly one input node - a Container Input (Raw HTTP) - is required. This isn’t different from KNIME Server.
We recommend that you check the HUB API specifications and ensure that the desired endpoints match what you’re trying to accomplish with your workflow, and adjust accordingly.
@NDekay probably covered it, but given that I was scratching my head the other day why the endpoint listed first in Swagger wasn’t working and after talking to @banyaig found out the issue was raw-execution…
The descriptions (this is from KNIME Pro on community hub) right now are a little confusing. The red one (raw-execution) seem to indicate that they are used for creating a job and executing it in one step.
The green one indicate that they only create the job (which would require another step to execute the created job).
The red one does not mention raw execution needing only one input… which is your pitfall here
The green one does not mention that in fact it also creates the job and executes it in one step and this one should be using the schema you have defined with your 9 input nodes…
Pretty sure this will (hopefully) be made a little clearer in the near future!