Why SimpleSync vs Microsoft MMS/MIIS/IIFP/ILS, et al ?
HOME   |   SimpleSync™   |    Namescape™   |   Who Are You?   |   FAQ


I'm facing a problem with MIIS SP1 2003 instalation(Working fine now for 2 years :-) ). We've a rule extension project developed in C# (Visual Studio 2003). The problem is the next:

It seems that the function "MapAttributesForImport" is called more than one time for the same entry by the MIIS console when one of the rules give an exception. The question is if this is normal.

For example:

case "cd.user:homeMDB->mv.user:homeMDB":
if ((!csentry["Mode"].Value.Equals("DEL"))&&(csentry
["Exchange"].Value!="*DELETE*")&&(csentry["Exchange"].Value!
="*IGNORE*")&&(!mventry["homeMDB"].IsPresent))
{
String homeMDB=null;
MVEntry[] exchange = Utils.FindMVEntries("mailbox",csentry
["exchange"].Value);

if (exchange.Length>0)
{
homeMDB = exchange[0]["HomeMDB_exchange"].Value;
mventry["homeMDB"].Value=homeMDB;
}
else
{
string errorHome="ERROR: The Exchange attribute is wrong" + csentry
["key"].Value + ".";

String empId="";
String emailId="";

if (csentry["UPDEmployeeId"].IsPresent)
empId=csentry["UPDEmployeeId"].Value;
if ((ggId=="")&&(csentry["GlobalGroupId"].Value!="*DELETE*")&&
(csentry["GlobalGroupId"].Value!="*IGNORE*"))
ggId=csentry["GlobalGroupId"].Value;
if (csentry["Local_Email_Account"].IsPresent)
emailId=csentry["Local_Email_Account"].Value;

addEntryFile(empId,ggId,"",emailId,errorHome,finished);
finished[ggId]="true";
errorHome="";
throw new UnexpectedDataException("ERROR The Exchange attribute is
wrong " + csentry["key"].Value + "key");
}

break;

we write error messages when a rule gives an exception and we are
getting duplicate errores.