how generate human-friendly errors in Extensible Connectivity Management Agent
I use C# code for import function. for catch errors I use: throw new EntryPointNotImplementedException("Error generated because rule1"); or throw new Exception("Error generated because rule2"); but in Synchronization Service Manager Console I only see: Status: stopped-extension-dll-exception and nowhere is written reason for the error ("Error generated because rule1") how show errors in Sync Service Console?
November 17th, 2010 8:06am

its does not work how I want... I only see human-based error on Windows Event Log... but in Sync Service Manager Console shows nothing, except "Status: stopped-extension-dll-exception" I want see errors in Synchronization Errors block... how can I do it?
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2010 9:16am

Hi You can use the following methods For MA Extensions messages: throw new MIISRootConfiguration.Exceptions.MIISWarningMappingException(csentry, "Name of the Rule", "", "Custom Message"); And for MV Extensions messages: throw new MIISRootConfiguration.Exceptions.MIISWarningProvisionException(mventry, "MV Entry Object", "Custom Message"); For MV Entry Object you can use mventry attributes to be precise, like: "User with Display Name: " + mventry["displayName"] Hope this help
November 17th, 2010 9:45am

Function GenerateImportFile in Management Agent does not have csentry or mventry public void GenerateImportFile( string filename, string connectTo, string user, string password, ConfigParameterCollection configParameters, bool fullImport, TypeDescriptionCollection types, ref string customData )
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2010 10:34am

what are you trying to catch? Public Sub GenerateImportFile(ByVal filename As String, ByVal connectTo As String, ByVal user As String, ByVal password As String, ByVal configParameters As ConfigParameterCollection, ByVal fullImport As Boolean, ByVal types As TypeDescriptionCollection, ByRef customData As String) Implements IMAExtensibleFileImport.GenerateImportFile Dim importFile As New StreamWriter(filename) Try conn.Open() conn.Close() importFile.WriteLine() Catch ex As IBM.Data.Informix.IfxException Throw New UnexpectedDataException(ex.Message) End Try importFile.Close() End Sub
November 17th, 2010 10:40am

better to see once than hear a hundred times) its what I want:
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2010 11:08am

Hi, The solution I gave permit to customize message you obtain in the Stack Trace window you can open from the error in the Synchronization Errors list I'm not sure you can customize error in this list because it seems for me equivalent to declare a new type of event in the Synchronization Service I don't know if it's possible to overload existing event or create new ones Fabrice
November 17th, 2010 11:33am

I meant are you trying to catch an error in GenerateImportFile or in MapAttributesForImport subs? the code shown above for GenerateImportFile provides detailed messages in stack trace window. have you tried unexpectedDataException?
Free Windows Admin Tool Kit Click here and download it now
November 17th, 2010 1:52pm

The various types of exceptions that are expected/handled are listed in the docs for IMAExtensibleFileImport.GenerateImportFile. http://msdn.microsoft.com/en-us/library/ms697231(VS.85).aspxMy Book - Active Directory, 4th Edition My Blog - www.briandesmond.com
November 17th, 2010 5:55pm

I meant are you trying to catch an error in GenerateImportFile or in MapAttributesForImport subs? the code shown above for GenerateImportFile provides detailed messages in stack trace window. have you tried unexpectedDataException? yes, I try this. but see error text only in windows event log... in console I get Status: stopped-extension-dll-exception
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 6:29am

I meant are you trying to catch an error in GenerateImportFile or in MapAttributesForImport subs? the code shown above for GenerateImportFile provides detailed messages in stack trace window. have you tried unexpectedDataException? yes, I try this. but see error text only in windows event log... in console I get Status: stopped-extension-dll-exception
November 18th, 2010 6:29am

looks like either you didn't put your new .dll to extensions folder or your MA is not even trying to do GenerateImportFile. unexpectedDataException can't be shown like stopped-extension-dll-exception in MIIS console.
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 6:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics