Hi all, I’m running into an issue with the Java Snippet. If I run a workflow with a POST Request or PATCH Request, the column Status is automatically created. However sometimes I do not have any rows to update, so the POST/PATCH Request don’t run. When 1 of them does not run, the Status column is not created and my Java Snippet fails, this eventually results in my entire workflow failing because I depend on a concatenation to summarize my results via email.
What’s the best way to detect and add a missing column? Here’s an example workflow… POST and PATCH Test.knwf (16.8 KB)
domain is the “list of possible values” for a column. If you click the “Spec” tab in an output table, you’ll see the data types of the columns and the domain of the values in the columns. For numerical values, only the range of the values in the data is shown. For string values, the different values appearing in the data are shown (by default up to 60 values but this can be changed; see here how).
This forum topic regarding domain and it’s refreshing is also useful: