forcedotcom / SFDX-Data-Move-Utility

SFDMU is a cutting-edge Salesforce data migration tool for seamless org population from other orgs or CSV files. It handles all CRUD operations on multiple related objects in one go.
BSD 3-Clause "New" or "Revised" License
452 stars 75 forks source link

[BUG]-Target object name not taken into consideration when loading frm csvfile #118

Closed kevdo475 closed 4 years ago

kevdo475 commented 4 years ago

Describe the bug When loading from both sourceorg or csvfile with an object that has different names in source and target (defined in "fieldMapping": []), The tool tries to retrieve metadata with the source object name and thus errors out.

Getting metadata for tsc_Keywords__c (TARGET)
Command in progress...... done
[ERROR] Mismatch org metadata error: Object tsc_Keywords__c is missing in the Target..
Execution of the command sfdmu:run has been finished. Exit code 3 (ORG_METADATA_ERROR).
Total time elapsed: 00h 00m 11s 313ms .

To Reproduce

  1. Create an object with different api names in source and target.
  2. Map the object name in fieldMapping.
  3. Observe error when the plugin tries to retrieve metadata with the source object api name.

Expected behavior Plugin uses the target object api name when retrieving its' metadata from target.

export.json See bug #111

Log file 2020-06-29__09_23_13.log

hknokh commented 4 years ago

@kevdo475 hello, please recheck, should be solved.