-
Notifications
You must be signed in to change notification settings - Fork 36
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
WorkflowManager could not deserialize XOML definition #118
Comments
Hello Jay, Any custom activities are registered in MIM by creating an object of type ActivityInformationConfiguration. You can review them under "Administration > All resources > Activity Information Configuration" As you use an upgrade version of MIMWAL, you should update version on all related MIM WAL activities. You can use the Register.ps1 script provided under the Scripts folder solution to do that. And then use the UpdateWorkflowXoml.ps1 script to update any old workflow that use a MIMWAL activities. Kind Regards, |
I know :) Thank you though. |
Maybe, you can past the XOML of your failed WF definition? |
Enable the .NET fusion logs. It may tell you what ref assembly or binding redirect for it is missing |
I've got some Fusion logs (using Fusion++) and the only logs during the execution window are for powershell.exe, which doesn't seem right. I'm not using a MIMWAL PowerShell activity. There's no binary references to MIMWAL namespaces. I think this is a red herring. It also only occurs once, not the second time I repeat the test in MIM, so I think it's coincidental. There are a few Error items (getting logs off the server is difficult): Same for Microsoft.PowerShell.ConsoleHost.resources I also wrote a test HelloWorld app that has dependencies on something else and that showed up fine in Fusion, so it doesn't seem to be a logging issue. It's like MIM is not getting as far as trying to invoke the MIMWAL binaries. |
Tried a different scenario: log whilst restarting FIMService. This has produced a lot of errors. All to do with MIM binaries, not MIMWAL (the WorkflowActivityLibrary dll is loading fine). Analysing this... |
Believe MIMWAL is compiled with reference to System.Management.Automation\1.0.0.0. You may not have correct version of PowerShell. Not sure if you can build with 3.0.0.0 version of System.Management.Automation and that can run in .NET 3.5 |
Mmmm, there was a PowerShell upgrade on the server recently, so you might be on to something there. Thanks Nilesh. |
Happens in another environment with the same customer. This has had no PowerShell upgrades. Hrm. |
In an environment that has used MIMWAL before, but had it's custom workflows removed: when creating a new dead basic Update Resources workflow, upon execution, it fails with the following Event Log entries:
Unable to create new WorkflowInstance for WorkflowDefinition...
WorkflowValidationFailedException: The workflow failed validation
WorkflowManager could not deserialize XOML definition: ...
347 : : Invalid data found while deserializing an object of type 'Microsoft.ResourceManagement.Workflow.Activities.SequentialWorkflow'.
The workflow is:
Have also tried using a standard
Function Evaluator
activity instead, and that works, so it appears just be related to MIMWAL activities.Environment:
Diagnostics Performed:
Any ideas? :)
The text was updated successfully, but these errors were encountered: