-
Notifications
You must be signed in to change notification settings - Fork 511
PowerShell workflow default param string value shows error #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you get the same marker in the ISE? I think that would be coming from PowerShell. |
I do get the same thing in the ISE, but based on the error I just don't understand, it says must be simple values, int or string. that is a string. |
I am having trouble reproducing this, @dotps1 are you still running into this issue? |
its been like a year ¯_(ツ)_/¯ |
@dotps1 I know you're probably not looking for an answer anymore, but it's because the parameter is typed as a string array. Even though the default value specified in the script is a string, it would need to first be converted to an array for the typing to match. Workflows are compiled, so they tend to be a good deal more strict than normal PowerShell. |
good enough for me. |
@dotps1 Hi Thomas, do you debug Workflows in VS Code? Can you point me at any resources that can instruct me how to do it? |
System Details
$PSVersionTable
: (thecode
commands don't have any output on my system?)Issue Description
in powershell workflow, a string default parameter is showing an error saying it needs to be a "simple value" like an int or a string. and it is a string.
Attached Logs
The text was updated successfully, but these errors were encountered: