Jump to content
Sign in to follow this  
iamtechman

CSV will not export in runtime

Recommended Posts

I have created a DB that among other things, exports a CSV file to the desktop. Everything works fine while in FileMaker. However, when use the runtime version, I get an error message: [color:purple]"output.csv" could not be created on this disk. Use a different name, make more room on the disk, unlock it or use a different disk.

I tried logging in with the same admin privileges on both the FileMaker and the runtime version but the outcome is the same.

Any help would be greatly appreciated.

Thanks.

Share this post


Link to post
Share on other sites

It looks like you are trying to export to a location that does not exist. It would be useful to see the actual script. And of course, version and platform information is always helpful, too.

Share this post


Link to post
Share on other sites

The part of the script that doesn't work is:

Export Records[No dialog; "output.csv";Windows (ANSI)]

Where the output file is set to:

file:../Desktop/cccsvoutput.csv

It is FileMaker Pro 9 Advanced running on XP.

Share this post


Link to post
Share on other sites

That's a relative path, specified from the current file's location. It seems the runtime is not located at the same location as the original file. Use an absolute path, or (preferably) use a variable to calculate the path dynamically - see Help > Creating a database > Creating file paths.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.