Solution
This behavior can occur for TDMS files with an open reference due to
buffering while writing data to the file. You can use
TDMS Flush to force the TDMS file to update and empty the buffers. If you want to remove the error message above for new TDMS files, you can insert
TDMS Flush once right after creating the TDMS file: