0

When creating a new mobile push message, I want to use amp script to fetch the deep link from data extension based on consumer country. But sfmc gives below error:

Fix the validation errors below to continue. OpenDirect is invalid. It must be at most 15 characters in length or a URL.

Can anyone please help regarding this, even if I use contentblockbyid to call an existing content block it still is more than 15 characters.

Thanks

1
  • Amrit, what is the MID, the ampscript and the name of the DE your are using? Have you tried reaching out to your local support rep for further assistance? I would be guessing at this point without more detailed information. Dec 17, 2019 at 14:32

2 Answers 2

0

The name of your variable cannot exceed 5 characters. As the error says "Fix the validation errors below to continue. OpenDirect is invalid. It must be at most 15 characters in length or a URL.".

Therefore, if you don't put a link in the OpenDirect field, the total number of characters there cannot exceed 15 characters.

%%=v(@)=%% are already 10 characters, so there are 5 characters left for the name of your variable.

0

Seems like you have to set variable in the message block first and then call that variable using AmpScript on the OpenDirect field. Example:

Message:
%%[ set @var = CloudPagesURL() ]%%
OpenDirect:
%%=v(@var)=%%

It worked in my instance

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .