When I tried to run it, I was getting an error "relation wkf*******_changeaxis2" does not exist". I added a split activity after the "Change Dimension" and the Delivery worked fine.
the activity itself only interacts with the temp table. the temp table actually belongs to the workflow. the change dimension is only transforming the inbound population to the target population. All that being said I've had scenarios where I have 2 or more CD's or enrichments or I copied one from one workflow to another and gotten a similar error. Have you tried renaming your CD or making sure it matches?
I assume your JS looks something like this?
That's exactly how the JS looks. I actually copied the failing workflow into a new workflow to see if this would resolve the issue; nope!
But thank you for the feedback. I think you've confirmed it for me. The CD does not behave the same way as other Activities (i.e. Union, Enrichment, Split, etc). So when trying to use a JS to select data from the previous transition, I would need to run it from another activity.