while select dirpartylocation where dirpartylocation.Party == this.OMOperatingUnitID notExists join inventLocationLogisticsLocation where inventLocationLogisticsLocation.InventLocation == sInventLocation.RecId notExists join _logisticspostaladdress where inventLocationLogisticsLocation.Location == _logisticspostaladdress.Location { rolesCon = _rolesMap.lookup(_logisticspostaladdress.Location); //Create new location newLogisticsLocation = LogisticsLocation::create(LogisticsLocation::find(_logisticspostaladdress.Location).Description); //Create address newPostalAddress.clear(); newPostalAddress.data(logisticsPostalAddress::findByLocation(_logisticspostaladdress.Location)); newPostalAddress.Location = newLogisticsLocation.RecId; newPostalAddress.insert();
getting the error like "the value 0 is not found in map" in Line 8.