I had same problem.
Add set,last in the beginning of your code.
After the function of that you are using for tf, write *stat
Like this (you can check this at output file)
*vget,QRes(1),node,1,tf,z
*stat,QRes
For my case, it works.
"apdl database is not holding the information that...