You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a search attribute defined as ObjectID, but when I try to start a Workflow with it, I get a JSON parse error. The other parameters don't seem to impact this. I can start this Workflow programmatically with the SDK fine, so this seems to be isolated to the CLI and how it parses this input.
It looks like it expects the value to be JSON, but this is just a string to be used as a keyword. It's possible that I'm formatting it incorrectly, but I'm following the docs at: https://docs.temporal.io/tctl/workflow/run/
Minimal Reproduction
I don't think you need an environment running to reproduce this. This seems to trigger it:
tctl workflow run --search_attr_key 'ObjectID' --search_attr_value '02fd0862-2c72-4115-a8d6-4efd9fbcdd43' --taskqueue TEST --workflow_type test
Environment/Versions
OS and processor: M1 Mac
Temporal Version: tctl 1.16.2
Are you using Docker or Kubernetes or building Temporal from source? Docker
The text was updated successfully, but these errors were encountered:
That produces a slightly different error message for me:
❯ tctl workflow run --search_attr_key 'ObjectID' --search_attr_value '\"02fd0862-2c72-4115-a8d6-4efd9fbcdd43\"' --taskqueue TEST --workflow_type test
Error: Search attribute JSON parse error.
Error Details: invalid character '\\' looking for beginning of value
('export TEMPORAL_CLI_SHOW_STACKS=1' to see stack traces)
But just tried this and this works (I'm using zsh if that makes the difference):
tctl workflow run --search_attr_key 'ObjectID' --search_attr_value '"02fd0862-2c72-4115-a8d6-4efd9fbcdd43"' --taskqueue TEST --workflow_type test
Thanks for the reply! I should be good from here, but I'm worried this issue will come up with my team so an updated error message would be greatly appreciated!
What are you really trying to do?
I have a search attribute defined as
ObjectID
, but when I try to start a Workflow with it, I get a JSON parse error. The other parameters don't seem to impact this. I can start this Workflow programmatically with the SDK fine, so this seems to be isolated to the CLI and how it parses this input.Describe the bug
It looks like it expects the value to be JSON, but this is just a string to be used as a keyword. It's possible that I'm formatting it incorrectly, but I'm following the docs at: https://docs.temporal.io/tctl/workflow/run/
Minimal Reproduction
I don't think you need an environment running to reproduce this. This seems to trigger it:
Environment/Versions
tctl 1.16.2
The text was updated successfully, but these errors were encountered: