Why the Field Mapping feature does not work for me?

It may be caused by one of the following reasons:

  • Probably you forgot to set the useFieldMapping property to true. Check your export.json.

  • If you are using FieldMapping.csv file to define the field mapping, validate the format of the file.

    For example, you want to map CSV file columns into the different target object than the source.
    This would be a wrong configuration:

 

ObjectName,FieldName,Target
OldChapter__c,,Chapter__c
csvfile,xApi__Site__c,Site__c
csvfile,CurrencyIsoCode,CurrencyIsoCode
csvfile,Name,Name
csvfile,xApi__Banner__c,Banner__c

"csvfile" is not a valid value for the ObjectName. ObjectName should always be the name of the source object.

Modify your CSV file as fllowing:

ObjectName,FieldName,Target
OldChapter__c,,Chapter__c
OldChapter__c,xApi__Site__c,Site__c
OldChapter__c,CurrencyIsoCode,CurrencyIsoCode
OldChapter__c,Name,Name
OldChapter__c,xApi__Banner__c,Banner__c


See also:

Fields Mapping.

Last updated on Sa Oct 2022