Skip to content
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

Starting Runbook via Azure API, Portal, or ISE Add-On yields “input parameter type mismatch” error #105

Open
JoeBrockhaus opened this issue Mar 9, 2016 · 0 comments

Comments

@JoeBrockhaus
Copy link

Described on StackOverflow here.

Given a simple runbook:

workflow test
{
    [CmdletBinding()]
    param([string] $NumericString)

    write-output $NumericString
}

When starting it with a numeric value (ie: 5) via the Azure Portal as a new Job (published), via the Test Pane, or using the Azure Automation PowerShell ISE Add-On, the following error is returned and the execution Fails.

The values provided for the root activity's arguments did not satisfy the root activity's requirements: 'DynamicActivity': Expected an input parameter value of type 'System.String' for parameter named 'Numeric'. Parameter name: rootArgumentValues

This appears to be something the API is handling strangely, as the JSON that is passed contains valid string data for the property, but it is being interpreted incorrectly and requires extra quote escaping to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants