function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anusha KasaragaddaAnusha Kasaragadda 

Is Attribute exit in DE or not in Ampscript.If not raise an error and block the send for the subscriber

Hi All,

I have to raise an error with my custom message and block the send if the attribute does not exist in DE.

I tried using AttributeValue() function. but it does not work for my use case

AttributeValue() function returns empty in both cases
1.Attribute doesn't exist in DE
2.Attribute value is empty in DE   
 My case is I have to raise an error with my custom message adn block the mail send  if the attribute does not exist in DE only. please suggest how to validate my usecase

SwethaSwetha (Salesforce Developers) 
HI Anusha,
If you are still looking for a solution, you can reach out to Success - Salesforce Marketing Cloud page on https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000001pQ5CAI for better visibility and inputs on your ask.
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.Thank you