sfmc-devtools
sfmc-devtools copied to clipboard
[BUG] if update failed after changeKeyX, the "old" file is still removed in the retrieve folder
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
imagine you want to change the key of a dataExtension using --changeKeyValue or --changeKeyField. Unfortunately, the new key already existed and hence the update failed. This should be the end of it, but our script does not realize the issue and still goes ahead and deletes the not-updated-file, assuming that a new file with the updated key will be created automatically
Expected Behavior
if update fails while running changeKeyX, the file should be be kept and not get deleted
Steps To Reproduce
- Go to '...'
- Click on '....'
- Run '...'
- See error...
Version
5.0.2
Environment
- OS:
- Node:
- npm:
Participation
- [X] I am willing to submit a pull request for this issue.
Additional comments
No response