none
Exception handling with the FIM PowerShell MA RRS feed

  • Question

  • Hello,

    I've been experimenting with Søren Granfeldt PowerShell MA and so far I'm liking what I see.   However, I'm wondering how the MA handles exceptions being thrown from the PowerShell script, especially on an import.   From what I see, it ignores anything thrown from the script, and the MA returns with a complete-no-objects status, which is not ideal as you have no indication what the error actually is.  I have implemented event log handling, so the exception will end up there, but I'd rather see a more appropriate error status come up in the Sync service.

    I can see that the actual objects you return can accept an error message, etc., but if the error is on a global level (i.e. can't connect to the target system), what is the recommended approach?

    Thanks,

    Marc


    Marc Mac Donell, VP Identity and Access Solutions, Avaleris Inc.
    http://www.avaleris.com

    Friday, June 6, 2014 4:45 PM

All replies

  • The option to catch all global exceptions was added by popular demand in earlier versions so in the current version there is no option to have a global error "bubble" up to the FIM interface. As you point out, you can return error with the object in the pipeline for the scripts.

    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

    Wednesday, June 11, 2014 5:58 PM
  • Did you manage to resolve this? Please mark as answered if it is no longer relevant or you feel that you've been helped.

    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

    Wednesday, August 27, 2014 6:22 PM