Unable to create a Data Extension with data retention using AMPscript in CloudPages
Trailblazer Community

Unable to create a Data Extension with data retention using AMPscript in CloudPages

Marketing Cloud Pages/Sites

Last updated 2021-12-07 ·Reference W-9302816 ·Reported By 4 users

No Fix

Summary
When creating a Data Extension with data retention using AMPscript and the SOAP Web Service API in a CloudPages Landing Page, an error message relating to user permissions is displayed.

Repro
- Login MC and go to Web Studio > CloudPages.
- Create a collection or open a current collection.
- Create a blank Landing Page and add HTML content block.
- Add the code in the attached file Create DE with data retention policy.
- Save and publish the landing page.
- Click the landing page URL.

Workaround
Currently the only workaround is to do this using SSJS.

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.