Target CSV Files in SFDMU.


When the setting createTargetCSVFiles = true is enabled or left unset, the Plugin generates CSV files that include all records as they were sent to the Salesforce API for processing.

Each file is named following a specific pattern, for example, TestObject_Description__c_delete_target.csv, indicating the object type and operation type.

Conversely, setting createTargetCSVFiles = false disables the generation of these target report files.

Notes:
  • The Plugin incorporates an additional Errors column in each CSV file. This column is left blank for records that have been successfully processed and contains an error message for any records that failed.
  • All target files are stored in the target subdirectory, which is located in the same directory as the export.json file.
  • For the main object set (object set index = 1), CSV files are always written to the main target directory.
  • For scripts containing multiple object sets, starting from Object Set #2, SFDMU creates separate subdirectories within the main target directory for each:
    • target/object-set-2
    • target/object-set-3
    • ...and so forth for additional sets, relative to where the export.json file sits.

Example of working folder structure:

|- export.json
|- target/
   |- TestObject_Description__c_delete_target.csv
   |- AnotherObject_Status__c_update_target.csv
   |- ...
   |- object-set-2/
      |- TestObject_Description__c_delete_target.csv
      |- AnotherObject_Status__c_update_target.csv
      |- ...
   |- object-set-3/
      |- TestObject_Description__c_delete_target.csv
      |- AnotherObject_Status__c_update_target.csv
      |- ...
   |- ...
Last updated on 28th Apr 2024