Came across an issue today.

If you are using AF 2.x with the compatability layer, you get the AF v2.x plugins (as you would expect). Problem is, I have seen something built on an environment intended for AF v1.3 but using the compatability layer. Everything works except for BadVal function from the Formula DR v2, which is not present in Formula DR v1.3. Now I am asked to find an elegant solution that doesn't involve lots of rework in the attributes but I am sat scratching my head. The problem is if an input attribute is Bad, the Formula DR v1.3 complains and you can't check for Bad Values. These attributes already belong to an Analysis so I am moving towards some trickery inside a Data Reference that will substitute bad values for defaults/error numbers in other attributes within an element (within a case).

Any other advice..?

Installing compatability layer on target is not an option but creating a plugin possibly is - I pretty have my hands tied on this one.

Just to close the loop on this, I ended up creating a Data Reference that acts as the intermediate calculation that was being performed by the Table Lookup DR and the Formula DR. The issue was due to Bad inputs for the Formula DR (v1.3) and no way to trap them or substitute them. The DR now does the substitution so there is always a "value on error" with specifics in the Calculate method - basically accessing the AFTables (Table Lookup DR) and what was being done in the Formula DR using BadVal.

Not what I would have liked to have done given a blank canvas but oh well.