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
Automation-Activity is not an instance of class RunbookAutomationActivity
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".
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
-
Stefan Horz 3,471 Reputation points2021-08-17T08:34:26.993+00:00
4 additional answers
Sort by: Most helpful
-
Andreas Baumgarten 129.4K Reputation points MVP Volunteer Moderator2021-08-16T17:00:38.223+00:00 Hi @Artimes ,
what is the value/content in
RBGUID von Daten Initialisierenplease?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 -
Stefan Horz 3,471 Reputation points2021-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 -
Andreas Baumgarten 129.4K Reputation points MVP Volunteer Moderator2021-08-18T06:37:28.043+00:00 Hi @Hi @Artimes ,
what happens if you use a
Get Objectactivity first with the GUID and theUpdate Objectactivity using thePublished Data / SC Object GUIDfrom theGet Objectactivity?
It looks like theGet Objectactivity 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 -
Andreas Baumgarten 129.4K Reputation points MVP Volunteer Moderator2021-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" fromGet RBA Activity objectWithout 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

