Automation-Activity is not an instance of class RunbookAutomationActivity

Artimes 346 Reputation points
2021-08-16T14:41:48.14+00:00

Hi,

when using runbook activity "Update Activity" to update activity status I run into the the following error:

[9ac3fcb2-a046-140d-f38c-8c4bf9528680] is not an instance of class [Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity].  

If I proof this GUID via PS-API, the result is the correct object:

>Get-SCSMClassInstance -ID 9ac3fcb2-a046-140d-f38c-8c4bf9528680  
.  
.  
.  
#FullName                    : Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity:RB593  
.  
.  
.  

Following screenshot shows the settings the Runbook-Activity "Update-Activity".

123639-runbook.png

The workaround is to update status via Runbook-Activity ".NET-Script", but I still not know why I run into an error if I use the Runbook-Activity "Update-Activity".

Similar issue described here.

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Stefan Horz 3,471 Reputation points
    2021-08-17T08:34:26.993+00:00

    Hi @Artimes ,
    thinking about it second time. The Error with different language would be something like "Runbook-Automatsierungsaktivität" not found.
    The "Update Object" Activity is executed with the Account specified in the connection "Servicemanager". The "Run .Net Activity is executed with the locon account of "Orchestrator Runbook Service" or if executed with Runbook Designer/Runbook Tester with the Account that runs Runbook Designer. So perhaps the the Account specified in the connection Service Manager has no permissions to see the RBA?
    Regards,
    Stefan

    2 people found this answer helpful.

4 additional answers

Sort by: Most helpful
  1. Andreas Baumgarten 129.4K Reputation points MVP Volunteer Moderator
    2021-08-16T17:00:38.223+00:00

    Hi @Artimes ,

    what is the value/content in RBGUID von Daten Initialisieren please?

    It should be 9ac3fcb2-a046-140d-f38c-8c4bf9528680 .

    What happens if you use a SCSM "Get-Object" activity, Class = "Runbook Automation Activity" with Filter on "SC Object GUID" = 9ac3fcb2-a046-140d-f38c-8c4bf9528680
    Do you get an RBA object from SCSM?

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  2. Stefan Horz 3,471 Reputation points
    2021-08-16T19:40:58.247+00:00

    Hi @Artimes ,
    it might be caused by different language settings ("Runbook-Automatsierungsaktivität" <-> "Runbook Automation Activity" "). Check if the Account running Orchestrator Runbook Server has the same Region Settings (Format of Date/Time) as the Account which executes Runbook Designer.
    Regards,
    Stefan

    0 comments No comments

  3. Andreas Baumgarten 129.4K Reputation points MVP Volunteer Moderator
    2021-08-18T06:37:28.043+00:00

    Hi @Hi @Artimes ,

    what happens if you use a Get Object activity first with the GUID and the Update Object activity using the Published Data / SC Object GUID from the Get Object activity?
    It looks like the Get Object activity is able to get the RBA object.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  4. Andreas Baumgarten 129.4K Reputation points MVP Volunteer Moderator
    2021-08-18T15:01:23.693+00:00

    Hi @Hi @Artimes ,

    you are right, using a .Net Script activity is an option as well.

    I have a lot of runbooks in customer's environments with this:

    Initialize Data -> Getting RBAxyz ID
    Get RBA Activity object -> Filter on ID (RBAxyz)
    Do some magic with a lot of activities
    Update RBA object status -> Using "Published Data / SC Object GUID" from Get RBA Activity object

    Without any problems so far.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.