Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 6944

Get pending operation for a CS object with an export error

$
0
0

I'm writing a PowerShell script that sends a warning email in case an export operation fails with a certain error count (e.g. if an export fails 5 times probably some manual action will have to be taken in the connected system).

I manage to get the export errors analyzing the xml provided by the RunDetails function of MIIS_ManagementAgent:

$runDetails = [xml]$managementAgent.RunDetails().ReturnValue
$exportErrors = $runDetails.'run-history'.'run-details'.'step-details'.'synchronization-errors'.'export-error'

However, export error details do not include the operation (add, replace, delete) that failed. The xml looks like this:

<export-error cs-guid="{61A544B0-C19F-E311-B753-00155DFF7EED}" dn="316f5dc6-d8ed-460d-a2d4-700775e99055"><date-occurred>2014-02-28 09:21:40.322</date-occurred><first-occurred>2014-02-27 15:46:10.897</first-occurred><retry-count>20</retry-count><error-type>ma-extension-error</error-type><cd-error><error-code>0x80230703</error-code><error-literal>(error message)</error-literal></cd-error></export-error>

I tried checking if the connector space object contains information about the pending operation, but couldn't find it there either.

Is there a method to determine what's the type of the pending export operation?

I was thinking I could check the UnappliedExportHologram and UnconfirmedExportHologram of the MIIS_CSObject, but I'm not sure it's correct (and maybe there's a simpler way).

Thanks,
Paolo


Paolo Tedesco - http://cern.ch/idm


Viewing all articles
Browse latest Browse all 6944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>