question

JustinD-0124 avatar image
0 Votes"
JustinD-0124 asked JustinD-0124 answered

Error when executing Active Directory activity using MS integration pack

I am working on creating a new runbook to perform decommission activities.
I have loaded and configured the active directory integration pack from Microsoft. The runbook is pretty simple.
Initialize data > get computer > Delete computer > invoke next runbook
When using the runbook tested it passes when finding the computer but fails with the following error when attempting to perform the delete computer activity
The parent path '' was not found.

Exception: AdParentPathNotFoundException
Target site: LdapComputer.CreateExisting

Stack trace:
at Microsoft.Accelerators.ActiveDirectoryCore.LdapComputer.CreateExisting(ISafeDirectoryFactory factory, DistinguishedName distinguishedName)
at Microsoft.Accelerators.ActiveDirectoryCore.LdapDirectory.CreateExistingComputer(DistinguishedName distinguishedName)
at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.Execution.DeleteComputerExecutor.CreateExecutionObject(ILdapDirectory ldapDirectory)
at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.Execution.AExecutor.Execute()
at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.Execution.ActiveDirectoryProgram.ExecuteProxy(ExecutionProxy proxy)
at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.AActiveDirectoryActivity.Execute(IActivityRequest request, IActivityResponse response)

It looks like the previous "get computer" activity did not pass any results to the next step or it did not find the object even though it shows as passed. Can anyone point me in the right direction to troubleshoot this?

msc-orchestrator
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
1 Vote"
StefanHorz answered

Hi @JustinD-0124 ,

sorry, one sceenshot in my answer was obviously not enough and confusing.
I configured "Get Computer" like below, Filter with "Common Name:
81957-delete-computer-1.jpg
I got one result. One Published Data is "Sam Account Name". I showed only because I could get it the success of "Delete Computer" in one screenshot and to show that I got a result. More important for example is Count to see the number of results. The Display Name in your filter is empty in at least the result of my example. With Display Name as filter I won't get a result:
81991-delete-computer-2.jpg

The "Delete Computer" Activity I filtered like this.
81947-delete-computer-3.jpg

I would also configure the link condition to trigger "Delete Computer" only if "Get Computer" has a result:
82001-delete-computer-4.jpg

Regards,
Stefan


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.

StefanHorz avatar image
0 Votes"
StefanHorz answered JustinD-0124 commented

Hi,

here it works:

81953-delete-computer.jpg

Make sure:

  • you described {Distinguished Name from "Get Computer"} in "Delete Computer" Activity.

  • you get at least 1 computer with "Get Computer" Activtiy

Regards,
Stefan



delete-computer.jpg (319.1 KiB)
· 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.

Hello Stefan,

I do have the properties configured like you have shown above. I do not see the sam account name listed in the details of the get computer activity. I may have something misconfigured on the get computer activity.
This is what I have configured for the get computer activity.
81945-image.png


0 Votes 0 ·
image.png (9.2 KiB)
JustinD-0124 avatar image
0 Votes"
JustinD-0124 answered

@StefanHorz thank you once again for the helpful answer. That did the trick for me. You have also given me some good ideas for handling other items as well!

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.