Answered by:
Export Statistics for Extensible Connectivity 2.0 MA

Question
-
I have written a Custom MA {Extensible Connectivity 2.0) for exporting to an XML file. for my 2010 R2 MIIS server (version 4.1.3441.0)
I have everything working (I think) except one part.
I don't get any statistics updates when I run the export.
The statistics update fine for Import and sync. but I get nothing for export even though it is working.
I have done some digging, and it looks like I need to see references to setting the ErrorCodeExport property of the csentrychange (http://social.technet.microsoft.com/Forums/en-US/5ffcf3e7-9cc9-4922-a900-97e25ca936dc/how-does-the-csentrychangeresult-work)
the problem is that there doesn't seem to be such an property. just the errorCodeImport http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.metadirectoryservices.csentrychange_properties(v=vs.100).aspx
Anyone have any idea how to update the statistics:
Meow
Monday, July 15, 2013 9:17 PM
Answers
-
You need to add the result to the export for each exported users as per the example below:
public PutExportEntriesResults PutExportEntries(IList<CSEntryChange> csentries) { PutExportEntriesResults exportEntriesResults = new PutExportEntriesResults(); int errorcount=0; foreach (CSEntryChange Entry in csentries) { // your code for exporting the objects go there if (errorcount > 0) // if there are errors then write the item below back { exportEntriesResults.CSEntryChangeResults.Add(CSEntryChangeResult.Create(Entry.Identifier, null, MAExportError.ExportErrorConnectedDirectoryError, "This Error Happended", "The error details")); } else //if no errors { exportEntriesResults.CSEntryChangeResults.Add(CSEntryChangeResult.Create(Entry.Identifier, null, MAExportError.Success)); } } return exportEntriesResults; }
Visit My Blog: http://theidentityguy.blogspot.com/
- Marked as answer by Script Kitty Wednesday, July 17, 2013 4:44 PM
Wednesday, July 17, 2013 8:24 AM
All replies
-
You need to add the result to the export for each exported users as per the example below:
public PutExportEntriesResults PutExportEntries(IList<CSEntryChange> csentries) { PutExportEntriesResults exportEntriesResults = new PutExportEntriesResults(); int errorcount=0; foreach (CSEntryChange Entry in csentries) { // your code for exporting the objects go there if (errorcount > 0) // if there are errors then write the item below back { exportEntriesResults.CSEntryChangeResults.Add(CSEntryChangeResult.Create(Entry.Identifier, null, MAExportError.ExportErrorConnectedDirectoryError, "This Error Happended", "The error details")); } else //if no errors { exportEntriesResults.CSEntryChangeResults.Add(CSEntryChangeResult.Create(Entry.Identifier, null, MAExportError.Success)); } } return exportEntriesResults; }
Visit My Blog: http://theidentityguy.blogspot.com/
- Marked as answer by Script Kitty Wednesday, July 17, 2013 4:44 PM
Wednesday, July 17, 2013 8:24 AM -
Thanks, That's one of the things that I had tried (only I had passed the change attributes instead of Null).
I am still not able to get results showing. but debugging is showing that I am generating the CSEntryChangeResults.
I am beginning to think I have some other problem with my MIIS installation. I have noticed that when ever I recompile the code for this one MA, I have to delete and Reimport the MA, otherwise it won't run a Import (deleting the connector space doesn't help). I think that these two problems might be related.
Thanks to your code above. at least I now that part is working. Thanks.
Meow
Wednesday, July 17, 2013 4:44 PM -
Is the MA packaged or are you still in an unpackaged mode i.e. can you still see the "Select Extension DLL" tab. If so, you need to do a refresh of the interface on the "Select Extension DLL" tab and also refresh connection information every time you recompile the library.
Visit My Blog: http://theidentityguy.blogspot.com/
Thursday, July 18, 2013 2:02 AM -
You Are a God.
Now I just need to find put together a Cult of worshipers to honor your greatness in all things MIIS related.
Thanks, I doubt I would have ever figured out that last one without you.
Let me just add these search engine bread crumbs for anyone else looking for "enlightenment" on this problem.
"Extensible Connectivity 2.0 MA won't run after Making changes"
"The management agent failed on run profile Import because the server encountered errors."
{If you came here because of the above errors / issues. read Jssting's answers above. and if you want to join the cult of Jssting, next meeting is on Tuesday}
The management agent "XMLOut" failed on run profile "Import" because the server encountered errors.
Meow
Thursday, July 18, 2013 3:54 PM -
LOL .. Just here to help ... :)... let me know of you run into any other issues ..
Visit My Blog: http://theidentityguy.blogspot.com/
Thursday, July 18, 2013 4:03 PM -
Hi,
Have you ever run a full export with FIM 2010R2 SP1? I run delta export and the statistics displayed the correct numbers but when I run full export the statistics displayed zero.
Regards,
Hai.
Saturday, December 28, 2013 10:11 AM