-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Sync PowerShell Workflow runbook with foreach -parallel function give error #16573
Comments
@erikverwer Thanks for the Comment. We are actively investigating and will get back to you soon. |
@erikverwer I just tested syncing a PowerShell Workflow runbook using the TFSV source control type with a foreach -parallel and everything synced correctly. Can you provide the example runbook content? I know there is a community solution with the same runbook name but it doesn't use workflow. |
@georgewallace Thanks for testing. I’ve changed the script to a workflow so that we can do the jobs in parallel. I also test it with a new script with the following content which also failed to sync.
} |
@erikverwer Thanks for this additional information let me try a couple other times to repro. |
@erikverwer I tried with VSTS Git source control type as well and it was successful, now I just put the small workflow logic you have above in my workflow and it worked. If you just put the following code in your source control repo and try to sync does it still fail? workflow Test-Workflow {
$Array = @("Value1", "Value2")
Foreach -parallel ($Item in $Array) {
$Item
}
} |
Hmm, syncing is not consistent. at first i thougt it was because my project contains subfolders with spaces in the name. but when i put the scripts in the root or in folders without spaces it works sometimes. |
@erikverwer Can you share an actual copy of the script? If you don't want to add it in the issue comments you can email it to me and first.last@microsoft.com. Also additional questions, do you have the latest Azure modules, can you manually import the runbook using Import-AzureRmAutomationRunbook? |
my test scripts in a zip file |
@erikverwer - I hate to break the momentum here but this channel is reserved for doc comment engagements. your issue will be better served as a support, Forum or an offline/email engagement. Please send mail to Azcommunity@microsoft.com with pertinent issue details including your subscription ID and we can continue the investigation. @georgewallace - FYI. |
I had this exact same issue. Since this is the top result for me when I search for this error, it turns out i had a unicode hyphen in my script which the parser didn't like. It would be nice to have a proper error message for this case |
I am not if this a stupid question. My Repo is having a module folder with .psm1 & .psd1 and other stuff then the same is not displaying under the modules after Sync. Where can expect the reaction? or how can I sync my modules? |
|
Failed to sync.
File parsing error:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: