Бага в CIL, надо поменять строки:
X++:
select firstonly RecId from sourceProspectTable where sourceProspectTable.Party == sourceParty;
sourcePartyRecord.merge(targetPartyRecord);
на
X++:
select firstonly RecId from sourceProspectTable where sourceProspectTable.Party == sourceParty;
// -->
switch (targetPartyRecord.partyType())
{
case DirPartyType::Person:
dirPersonSource = sourcePartyRecord as DirPerson;
dirPersonTarget = targetPartyRecord as DirPerson;
dirPersonSource.merge(dirPersonTarget);
break;
case DirPartyType::Organization:
**************
break;
default :
break;
}
// <--