ContentImageByKey function incorrectly references deleted image's customer key and throws error
Last updated 2019-08-20 ·Reference W-6215457 ·Reported By 0 users
Fixed in version Marketing Cloud Release August 2019
After an Asset has been deleted, the Asset and CustomerKey remain on the database in a deleted status. A subsequent Asset with the same CustomerKey can be created. Once it is created, it cannot be referenced via %%=ContentImageByKey()=%% because both Assets are returned via the function and since one is deleted, the function fails with :
'An error occurred when attempting to evaluate a ContentImageByKey function call. See inner exception for details.
The specified image has been deleted.'
1.) Upload image A into folder A with customer key, "test"
2.) Duplicate image A into folder B with customer key, "Tempkey" - now becoming image B
3.) Change customer key of image A to "NotTest"
4.) Change customer key of image B to "test"
5.) Delete image B
6.) Change customer key of image A to "test"
7.) Preview email with ContentImageByKey = "test"
8.) Receive error when evaluating ContentImageByKey function call
Utilize the ContentImageByID() function
Reported By (0)
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.