Closed petter-eikeland closed 3 months ago
Hello, @petter-eikeland
Thank you for reporting a bug. I will take a look at it as soon as possible and let you know of any updates.
Cheers
Hello To protect the production data you have to respond to the prompt or to add this flag to your command: https://help.sfdmu.com/running#--canmodify--c --noprompt is ignored in this case
Hi @hknokh,
Thanks for your response. As mentioned above, I have also tried to run the command with and without the -c
flag, but I am getting the same error:
➜ PROD git:(issue/sfdmu-bug) ✗ sf sfdmu run -s csvfile -u PROD -p src/postal-registry-data --canmodify true
(node:22865) Warning: Deprecated config name: apiVersion. Please use org-api-version instead.
(Use `node --trace-warnings ...` to show where the warning was created)
[05:55:16.852] Execution of the command sfdmu:run has been started.
=== Loading and validating the export.json script ...
=== OBJECT SET #1 STARTED
Running Plugin version: 4.33.17
Running Add-On API version: 1.5.0
[05:55:16.859] Loading Core Add-On Module declarations ...
[05:55:16.892] Connecting to the PROD using SFDX sf org display ...
› Warning: @salesforce/cli update available from 2.34.7 to 2.43.7.
[05:55:19.987] Successfully connected to the PROD.
Command in progress... done
[05:55:20.165] NOTE! The Plugin has detected that you are about to modify the Production org.
To confirm that you really want to modify this org, please type: prod.my.salesforce.com ? : y
Command in progress... done
[05:55:24.603] [ERROR] Execution of the command has aborted by the user. The action is not permitted.
[05:55:24.607] [ERROR] Execution of the command sfdmu:run has been completed. Exit code 5 (COMMAND_ABORTED_BY_USER).
[05:55:24.608] Total time elapsed: 00h 00m 07s 751ms .
Your usage of the canmodify is incorrect. You should put prod org instance name after this flag: --canmodify my.instance.name.salesforce.com Please see the details in the referenced article
Aha, thank you @hknokh2 (do you have 2 users??)!
Now I understand. When executing sf sfdmu run -s csvfile -u PROD -p src/postal-registry-data -c prod.my.salesforce.com
it runs successfully
Yes I have 2 users)
Describe the bug Trying to insert data in PROD. Getting
[ERROR] Execution of the command has aborted by the user. The action is not permitted.
I'm not getting this error when running the same command with the same CSV data towards Sandbox Environments.To Reproduce
sf sfdmu run -s csvfile -u [PROD-alias] -p path/to/csvfile --noprompt
I have also tried to run with-c true
and-c 1
, and without--noprompt
and manually giving confirmationExpected behavior Data inserted
Actual Behavior
export.json
Log file
_target.csv file. None are generated
Added sample csvfile for insert: