I've found that Open Document works fine when opening the filename from Input.

So I suggest trying a workaround of putting a Generate Text action before the Open Document step, and having that Generate Text action just emit the desired variable.

This would then become the Input for the Open Document action, which would probably then work.