Workflow Soluiton

 View Only
  • 1.  Inserting data into the Altiris 7.x Resource Model

    Posted Aug 28, 2012 11:36 AM

    I am trying to update a resource via workflow and get an error every time I try (yet the data goes in the DB). Right now I am just doing some testing so it looks like this:

    1. Start
    2. Create SMP Credentials
    3. Get Resource with Name
    4. fetch additional data (this seems redundant since the data classes are specified in step 3)
    5. single value mapping into a custom data class
    6. Save resource

    This seems like it should work and sort of does but I would like it to work without the error. From the logs:

    ErrorMessage = "Exception has been thrown by the target of an invocation."

    LastComponent = "Save Resource for SMP"

    ModelID = "2eee6534-dff2-11e1-abcb-402cf48b85c5"

    NetworkDeviceRecord = AltirisOutput7.NetworkDevice

    StackTrace = " at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

    at Symantec.Workflow.Components.Resource.SaveResourceNS7Component.Run(IData data)

    at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)

    at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp)"

    Any help would be appreciated.



  • 2.  RE: Inserting data into the Altiris 7.x Resource Model

    Posted Aug 28, 2012 02:28 PM

    This seems to be a series of permission issues. I got more permission to the CMDB which allows me to create records but I cannot set associations. Any idea what permissions are required for this?



  • 3.  RE: Inserting data into the Altiris 7.x Resource Model

    Posted Aug 29, 2012 03:16 AM

    You attached the log from process but according to its message you should check the logs of the called service - on its side the exception has happend.



  • 4.  RE: Inserting data into the Altiris 7.x Resource Model

    Posted Aug 30, 2012 07:49 AM

    It turns out this was all permissions related. After getting permission to create resources I had to get more permission to create associations. This works like a champ now.