Giter VIP home page Giter VIP logo

Comments (4)

NileshGhodekar avatar NileshGhodekar commented on May 22, 2024

What is the detailed error in the WAL event log? In all likely hood, the script pasted in not exactly what is configured in the WF.

from mimwal.

egbill3eagle avatar egbill3eagle commented on May 22, 2024

There are 2 errors in WAL.

Error 1: Event ID 40403
WAL (2.16.1028.0): 01/19/2017 07:43:32.1159: RunPowerShellScript : RunScript: Exception in 'RunPowerShellScript : RunScript'. Details: MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Exceptions.WorkflowActivityLibraryException: Error Invoking PowerShell script. Error: 'Cannot find the type for custom attribute 'Parameter '. Make sure that the assembly that contains this type is loaded.' ---> System.Management.Automation.RuntimeException: Cannot find the type for custom attribute 'Parameter '. Make sure that the assembly that contains this type is loaded. at System.Management.Automation.AttributeNode.GetCustomAttributeObject() at System.Management.Automation.AttributeNode.GetCustomAttribute() at System.Management.Automation.ParameterNode.HasParameterAttribute() at System.Management.Automation.ParameterDeclarationNode.InitializeRuntimeDefinedParameters(Boolean& useCmdletBinding) at System.Management.Automation.ScriptBlock.InitializeAttributesAndParameters() at System.Management.Automation.ScriptBlock.get_CmdletBindingAttribute() at System.Management.Automation.CommandMetadata..ctor(ScriptBlock scriptblock, String commandName, ExecutionContext context) at System.Management.Automation.ScriptBlock.get_ParameterMetadata() at System.Management.Automation.ScriptParameterBinderController..ctor(ScriptBlock script, InvocationInfo invocationInfo, ExecutionContext context, InternalCommand command, Boolean useLocalScope) at System.Management.Automation.ScriptCommandProcessor.NewParameterBinderController(InternalCommand command) at System.Management.Automation.CommandProcessorBase.get_ParameterBinderController() at System.Management.Automation.ScriptCommandProcessor.Prepare(CommandParameterInternal[] parameters) at System.Management.Automation.CommandProcessorBase.DoPrepare(CommandParameterInternal[] parameters) at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate) --- End of inner exception stack trace ---. Extended Properties: WorkflowInstanceId: 8d75e2d4-e7da-47ae-a15c-b1de70086e8d TargetId: b7c2b352-9633-4763-a526-67d51c48a400 RequestId: a6b64b74-b527-4987-b36e-4964e11b6058 WorkflowDefinitionId: 49b9dfa2-c9b1-4481-bfef-36f789330775 ActorId: 7fb2b853-24f0-4498-9534-4e10589723c4

Error 2: Event ID 40403
WAL (2.16.1028.0): 01/19/2017 07:43:32.1159: RunPowerShellScript : RunScript: Exception in 'RunPowerShellScript : RunScript'. Details: MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Exceptions.WorkflowActivityLibraryException: Error Invoking PowerShell script. Error: 'Cannot find the type for custom attribute 'Parameter '. Make sure that the assembly that contains this type is loaded.' ---> System.Management.Automation.RuntimeException: Cannot find the type for custom attribute 'Parameter '. Make sure that the assembly that contains this type is loaded. at System.Management.Automation.AttributeNode.GetCustomAttributeObject() at System.Management.Automation.AttributeNode.GetCustomAttribute() at System.Management.Automation.ParameterNode.HasParameterAttribute() at System.Management.Automation.ParameterDeclarationNode.InitializeRuntimeDefinedParameters(Boolean& useCmdletBinding) at System.Management.Automation.ScriptBlock.InitializeAttributesAndParameters() at System.Management.Automation.ScriptBlock.get_CmdletBindingAttribute() at System.Management.Automation.CommandMetadata..ctor(ScriptBlock scriptblock, String commandName, ExecutionContext context) at System.Management.Automation.ScriptBlock.get_ParameterMetadata() at System.Management.Automation.ScriptParameterBinderController..ctor(ScriptBlock script, InvocationInfo invocationInfo, ExecutionContext context, InternalCommand command, Boolean useLocalScope) at System.Management.Automation.ScriptCommandProcessor.NewParameterBinderController(InternalCommand command) at System.Management.Automation.CommandProcessorBase.get_ParameterBinderController() at System.Management.Automation.ScriptCommandProcessor.Prepare(CommandParameterInternal[] parameters) at System.Management.Automation.CommandProcessorBase.DoPrepare(CommandParameterInternal[] parameters) at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate) --- End of inner exception stack trace ---. Extended Properties: WorkflowInstanceId: 8d75e2d4-e7da-47ae-a15c-b1de70086e8d TargetId: b7c2b352-9633-4763-a526-67d51c48a400 RequestId: a6b64b74-b527-4987-b36e-4964e11b6058 WorkflowDefinitionId: 49b9dfa2-c9b1-4481-bfef-36f789330775 ActorId: 7fb2b853-24f0-4498-9534-4e10589723c4

from mimwal.

NileshGhodekar avatar NileshGhodekar commented on May 22, 2024

so 'Parameter '. Strange, but looks like the unnecessary spacing is causing the issue in System.Management.Automation.

from mimwal.

NileshGhodekar avatar NileshGhodekar commented on May 22, 2024

Closing the issue as seems resolved.

from mimwal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.