This error usually occurs because the write operation fails - possible causes are:
user does not have write access to the path specified
the path does not exist (the write command does NOT create the folder if it does not exist). If you have a space between $(qvdpath) and TableNm, this could be the problem. The file name and path should be enclosed in square brackets if the path contains spaces. ie like [$(qvdpath)TableNm.qvd].
the file is locked and cannot be overwritten. This can be caused by a failed QV reload that was aborted, but left the QV.exe running. Close all instances of QV.exe processes in the task manager.
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein