How are you determining the path to the location for storing the data? Any paths that are determined based on the current location of a VI must take into account that the path to a VI is different when built into an executable. If you are doing a strip path, then you need to do one more in an executable. In the development mode, the path to a VI might be c:\junk\example.vi. In an executable, the path to the same VI will be c:\junk\junk.exe\junk.vi.