question

Artimes-3279 avatar image
0 Votes"
Artimes-3279 asked Artimes-3279 edited

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".

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.


msc-orchestrator
runbook.png (18.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StefanHorz avatar image
2 Votes"
StefanHorz answered Artimes-3279 edited

Hi @Artimes-3279,
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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Stefan,
I think you are correct. Was trying to modify the service account for the scsm-orchestrator connector. I checked if this account is also used for

  • The Application Pool

  • Membership in the Orchestrator Database (SQL-Roles)

  • Orchestrator services

  • Set permission for Runbook Designer

  • Account has log on as a service privilege

But now I got the issue that the runbooks are not triggered anymore. They still pending on scsm side and there are no new history-log entries on scor side.

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered Artimes-3279 commented

Hi @Artimes-3279 ,

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please see the screenshot below.124062-rb1.png124071-rb2.png

124023-rb3.png124024-rb4.png


0 Votes 0 ·
rb1.png (11.8 KiB)
rb2.png (9.0 KiB)
rb3.png (8.7 KiB)
rb4.png (18.5 KiB)
StefanHorz avatar image
0 Votes"
StefanHorz answered

Hi @Artimes-3279 ,
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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered Artimes-3279 commented

Hi @Hi @Artimes-3279 ,

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Possible solution, but this implies that I have to change all my runbooks. In this case I can also use .net script activities.

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @Hi @Artimes-3279 ,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.