How do I get Import to re-read my data file if I change it outside of OpenDX?
This is an unfortunate artifact of caching. Since the input of import, the filename, does not change then the module does not run. Logic probably should be added to check on the timestamp of the file, but no one has yet addedd this feature. A simple hack is to force Import to reload a file by appending a “space” to the end of the file name. This can be repeated, that is, any new file string will force a new import. Alternatively, this can be done programatically by feeding the filename and a dummy integer into a Format module that simply does “%s” and ignores the incoming integer. By bumping the integer one can force a “new” filename that is identical to the previous and forces a reload when the dummy integer changes to a value not previously used. The simplest work-around is to use the “Reset Server” option under the Connection Menu. This throws away all the cached information which was saved from previous runs of OpenDX. You could also turn the cache off when OpenDX is started by usi
Related Questions
- Data file structure (.DTA) and comments for import and export of data to/from EZ-Forms GT/SILVER PRO/GOLD ULTRA. [Where on the form is data imported to, or exported from?
- How do I get Import to re-read my data file if I change it outside of OpenDX?
- How do I import data using a comma or tab delimited text file?