Data card file name variable doesn't update

I have a data card variable that captures the file name without the extension. I use this value in a Dispatch script.

However, if the file is renamed, the data card variable remains fixed at the original value. This seems odd to me.

Is there a way to force the file name variable to update?

SolidworksSolidworks Pdm enterprise Pdm