First, I'm using content Builder to build emails. I have a section in my email where I need to either have a two column Layout or a three column layout dependent on data from my data extension. I've verified the variables pull in correctly and my DE code works, so I'm not including that section unless requested. Here's the code I'm attempting to use:
%%[ /* NUMBER OF TIME SLOTS SELECTOR */ if not empty(@time3) then ContentArea("40062") else ContentArea("40061") endif
Content ID 40062 is a three column layout with three time choices that has been tested and works when not being called by the
ContentArea() command. Likewise 40061 is a two column layout that has been tested when actually placed in the email and works as expected.
This means that the problem must be in how I'm using the
ContentArea() command. I looked through all the variations of these (e.g.
ContentBlockbyId(), etc) and it looks like the only ones that don't specify that the content to be retrieved be a "block" type are the ContentArea calls. However when I'm using these I'm receiving this error:
The subscriber preview failed to generate. Review the details, correct all issues, and try again. The main email parsing loop fell into an invalid state of none of the current content qualifying for the content collection. Dynamic Content: null Script Block: start index: 0 HTTPGET Content: null
My feeling is that the command can't parse a "Layout" type object, has anyone had any success in doing something similar? if so how?