sfmc-devtools icon indicating copy to clipboard operation
sfmc-devtools copied to clipboard

[BUG] if update failed after changeKeyX, the "old" file is still removed in the retrieve folder

Open JoernBerkefeld opened this issue 1 year ago • 0 comments

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

  1. Go to '...'
  2. Click on '....'
  3. Run '...'
  4. 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

JoernBerkefeld avatar Jun 05 '23 08:06 JoernBerkefeld