Video Screencast Help

Inserting data into the Altiris 7.x Resource Model

Created: 28 Aug 2012 | 3 comments

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.

Comments 3 CommentsJump to latest comment

rpoag's picture

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?

Ryan Poag
Northrop Grumman
If your question has been resolved, please be sure to "Mark as Solution"! Thank you.

AnaMan's picture

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.

rpoag's picture

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.

Ryan Poag
Northrop Grumman
If your question has been resolved, please be sure to "Mark as Solution"! Thank you.