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

  • 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. – David Porter Dec 17 '19 at 14:32
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

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.

New contributor
Michael Abreu is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.