Expand my Community achievements bar.

Data Element evalutation Delay

Avatar

Level 2

2/10/22

Cross posted from questions section:

 

I'd like more control over how and when data elements are evaluated.

 

Issue:

You have a data element that accesses an object/property: "page.name[0].length"

If that object or property doesn't exist (or you know it will show up later), JS throws undefined errors as soon as the page loads.

 

Idea:

If I could say something like "delay initial execution" in a data element - and in theory what it would do is only evaluate the DE when it's called upon in a rule that would alleviate having to encapsulate most DE's in a try/catch

4 Comments

Avatar

Level 5

2/18/22

@J2_2 

 

I think you can use 'Rules' to mitigate this risk. So, one approach could be that you can set up a 'Value Comparison' condition in your rule to validate that page.name[0].length" is greater than 0, then you can fire an event to use the data element.

 

Hope this solves your problem.

Avatar

Level 2

2/18/22

Thanks for the reply - unfortunately no that doesn't address the actual problem - you can't control DE's from within rules like, in the manner the problem specifies, in Adobe Launch

Avatar

Level 2

2/18/22

Yeah I know how to hack it - I want a feature from Adobe that solves for it in a more correct and scalable way, such as a toggle in the UI