Skip to content

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

Description

@JoernBerkefeld

Is there an existing issue for this?

  • 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

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Labels

PRIORITYused for professional service clientsbugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions