Failure Error:- An item with the same key has already been added.
Because of "duplicate field names", there are 2 possible causes.
1)Duplication has occurred between a custom field, and a virtual field
CRM creates an additional attribute in the metadata for the text of the field for certain field types (boolean, picklist and lookup). This attrbiute is not physically stored, and is considered to be a 'virtual' field. The virtaul attribute has the name of the base field + a suffix of 'name'.
For example,
the addresstypecode picklist field => addresstypecodename virtual field
new_parentcustomerid custom lookup field => new_parentcustomeridname virtual field.
CRM will let you do this, but the import could fail.
The following script will list of any duplicates, run in the METABASE database
select
e.name as entity, a.name as attribute, count(*)
from
attribute a join entity e on a.entityid = e.entityid
group by
e.name, a.name
having count(*) > 1
Because of "duplicate field names", there are 2 possible causes.
1)Duplication has occurred between a custom field, and a virtual field
CRM creates an additional attribute in the metadata for the text of the field for certain field types (boolean, picklist and lookup). This attrbiute is not physically stored, and is considered to be a 'virtual' field. The virtaul attribute has the name of the base field + a suffix of 'name'.
For example,
the addresstypecode picklist field => addresstypecodename virtual field
new_parentcustomerid custom lookup field => new_parentcustomeridname virtual field.
CRM will let you do this, but the import could fail.
The following script will list of any duplicates, run in the METABASE database
select
e.name as entity, a.name as attribute, count(*)
from
attribute a join entity e on a.entityid = e.entityid
group by
e.name, a.name
having count(*) > 1