Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] trying to delete a dataExtension that doesn't exist returns ambiguous error #1914

Closed
1 of 2 tasks
JoernBerkefeld opened this issue Dec 4, 2024 · 1 comment · Fixed by #1915 or #1939
Closed
1 of 2 tasks
Assignees
Labels
bug Something isn't working c/dataExtension COMPONENT
Milestone

Comments

@JoernBerkefeld
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Current Error: Deleting dataExtension 'MyTestKey' failed: One or more errors in the Results

Log:

14:36:54.113 debug: :: mcdev 7.5.0 :: ⚡ mcdev delete cred/_ParentBU_ -m dataExtension:MyTestKey --api log
14:36:54.117 info: mcdev:: delete
14:36:54.556 debug: API REQUEST >> {
  "method": "POST",
  "baseURL": "https://mcmgrzvb1j6v-5bsmkdsl4pgbk64.soap.marketingcloudapis.com/",
  "url": "/Service.asmx",
  "headers": {
    "SOAPAction": "Delete",
    "Content-Type": "text/xml"
  }
}
14:36:54.556 debug: API REQUEST body >> 
  <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Body><DeleteRequest xmlns="http://exacttarget.com/wsdl/partnerAPI"><Objects xsi:type="DataExtension"><CustomerKey>MyTestKey</CustomerKey></Objects></DeleteRequest></Body><Header><fueloauth>*** TOKEN REMOVED ***</fueloauth></Header></Envelope>
14:36:54.742 debug: API RESPONSE body << 
  <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsa:Action>DeleteResponse</wsa:Action><wsa:MessageID>urn:uuid:070596a8-22de-4cff-80c1-1f455298f6f2</wsa:MessageID><wsa:RelatesTo>urn:uuid:7a4984eb-a6ec-4349-adde-94b7e7deea5c</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-7ba57b4e-d6cd-4921-a154-3e9004d96735"><wsu:Created>2024-12-04T13:36:49Z</wsu:Created><wsu:Expires>2024-12-04T13:41:49Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><DeleteResponse xmlns="http://exacttarget.com/wsdl/partnerAPI"><Results><StatusCode>Error</StatusCode><StatusMessage>Could not find the data extension definition.  A valid object ID, customer key, or name must be provided to delete an existing data extension. </StatusMessage><OrdinalID>0</OrdinalID><ErrorCode>310007</ErrorCode><Object xsi:type="DataExtension"><PartnerKey xsi:nil="true" /><ObjectID xsi:nil="true" /><CustomerKey>MyTestKey</CustomerKey></Object></Results><RequestID>5bd46d34-f951-47bf-bdd6-c4a8f7ed29da</RequestID><OverallStatus>Error</OverallStatus></DeleteResponse></soap:Body></soap:Envelope>
14:36:54.753 error:  - Deleting dataExtension 'MyTestKey' failed: One or more errors in the Results

Expected Behavior

New Error: Deleting dataExtension 'MyTestKey' failed: Could not find the data extension definition. A valid object ID, customer key, or name must be provided to delete an existing data extension.

retrieved from StatusMessage

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Run '...'
  4. See error...

Version

7.5.0

Environment

  • OS:
  • Node:
  • npm:

Participation

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

Additional comments

No response

Copy link

github-actions bot commented Dec 4, 2024

Closed by #1915.

@JoernBerkefeld JoernBerkefeld mentioned this issue Dec 18, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c/dataExtension COMPONENT
Projects
None yet
1 participant