Fixed a bug during upsert (load) of records where if the sObject had two record types with the same DeveloperName but different IsPersonType, duplicate records were being generated for load and as a result, error was thrown.
Example: For the sObject Account, the record type PersonAccounts has DeveloperName = PersonAccounts and IsPersonType = True. I could also create another recordType such that DeveloperName = PersonAccounts but the IsPersonType = False. In such cases, say I was trying to upsert 1 record (any update_key) with this PersonAccounts (one of the two), 2 records would try to get inserted and would throw a duplicate row error.
W-11466074
Fixed a bug during upsert (load) of records where if the sObject had two record types with the same
DeveloperName
but differentIsPersonType
, duplicate records were being generated for load and as a result, error was thrown.Example: For the sObject
Account
, the record typePersonAccounts
hasDeveloperName = PersonAccounts
andIsPersonType = True
. I could also create another recordType such thatDeveloperName = PersonAccounts
but theIsPersonType = False
. In such cases, say I was trying to upsert 1 record (any update_key) with thisPersonAccounts
(one of the two), 2 records would try to get inserted and would throw a duplicate row error.