I have an email that is pulling in a content area.
In that content area it doing a lookup on a data extension. The data extension should have data for that subscriber in it but in some rare cases (for whatever reason) if the lookup returns no rows we do not want the email to go out and are trying to handle it with the RaiseError function.
Here is a snippet of code:
IF RowCount(@orderrows) > 0 THEN FOR @I = 1 TO RowCount(@orderrows) DO /* Do stuff here ..... */ NEXT @I ELSE RaiseError("No rows found", true) ENDIF
I would expect the email to not go out based on what I read in the AmpScript docs. However, the subscribers are receiving an email that says "No vrows found". Is this function being used properly?
The email is User Initiated to a data extension. All the examples I've seen with RaiseError have been based on Triggered Sends - I'm guess that maybe the issue but wanted confirmation.