Pop up saying File already exists when saving an excel file while running exe

I have an excel file which I read and write in my application.
When I run the application in development system, it works fine. However when I run the application as an exe and try to save the excel file, it says that 'The file already exists and Do you want to replace?'.
Why does this question asked for exe?
PFA my write excel VI
Thanks in advance.
Attachments:
Write to Excel.vi ‏25 KB

Hi Princess_swa,
The problem may be that when you build an exe, it adds another folder called 'builds' into the filepath.
A good way to fix this is to create a case structure, putting extra strip paths into your filepath if running an exe.
I have attached a screenshot of my code doing exactly this for you to look at. The code creates a 'base path' which is then used to reference all of my file paths in my code - and therefore, they will always have the right number of strip paths when it is run. (Note: in my code I have 2 extra strip paths, due to where I've placed the folder, but one should be sufficient.)
Also there is a 'Check if folder exists' VI which you can again link to a case structure, and change the filename if it already exists. Again, I have provided a screenshot of my code which does this.
Hope this helps,
Lou
Attachments:
runtime strip paths.png ‏9 KB
check folder exists.png ‏5 KB

Similar Messages

  • Files Already Exist when Reconnecting Presumably Missing Files

    I am struggling to clean-up several hundred files in my PSE organizer database.
    Whenever I run the reconnect all command (or any other command that requires reconnecting first), PSE locates a large group of presumably missing files. PSE's "Reconnect Missing Files" dialogue shows me the former location of the files. I browse to that location and find the files still there. I then select the file and press reconnect. Unfortunately, I then get an error that says "The file already exists in the catalog." This clears the missing file problem for the moment. However, when I run another missing file check, it will again find these same files. I have attempted to reconnect them several times but PSE continues to tell me that they need to be reconnected but still knows where the files are.
    I have already run a database repair (no errors were found).
    I also ran a database optimization without issue.
    Some system information:
    Win7 Home Premium Service Pack 1
    Dell XPS i7 Computer
    6gb RAM. >350gb of free hard disk space
    PSE 12....but also had the same problem on PSE 11. I upgraded hoping that the problem would be solved. It wasn't.
    Thanks for any assistance in clearing this problem for me.
    -Bruce

    I solved my own problem...although I do not know what caused it nor why Adobe's program didn't fix it for me.
    The "missing" entries that were being highlighted were all duplicate entries. Adobe won't allow for a duplicate entry to the same physical file. I deleted all the offending entries and this cleared my problem. I hope this solution helps others.
    -Bruce

  • File already exist when calling tcp listen

    i was using some modified versions of tcp/ip vi's at
    http://www.sheldoninst.com/support.html
    but everytime i start the server, it gives me an error 2 "file already exist" message. has anyone tried their vi's at sheldoninst?

    i was using some modified versions of tcp/ip vi's at
    http://www.sheldoninst.com/support.html
    but everytime i start the server, it gives me an error 2 "file already exist" message. has anyone tried their vi's at sheldoninst?

  • File name generated when saving a process file

    When I choose to save a file (save as for instance) I get an odd
    looking default file name with a ~ in it such as; ne6e29~1.l4p. Why?

    Leo,
    I agree, that is an odd file name. I am not sure where the "~" is coming from. I am using Lookout 5.1 on a Windows XP machine. If I open a new process and use the default process name "Process1", the same name is appears in the "File name:" field of the "Save Process File As..." window when I navigate to File >> Save As. Even if I choose another name for my process, that name is then used as the default file name when I go to "File >> Save As."
    If you save your process with another name, such as "myprocess.l4p", does the same default name appear when you go to "File >> Save As"?
    I have seen the "~" character used in other applications when a file name exceeds the maximum length but I do not recall having that problem on newer OSes like Windows 2000
    or XP. I tried to save a process with a really long random file name on my machine and I was still unable to reproduce the behavior you are seeing.
    What version of Lookout are you using and what OS are you running. If your process is running on an older OS or you are using an older version of Lookout, it may be that the file name is limited to fewer characters.
    Regards,
    Aaron C.
    National Instruments
    Applications Engineer

  • File Error 8 when saving an ini file in C:\Program Files\ without Admin rights

    I have built my LabVIEW 7.0 Functional Tester software into an application. During install I use a batch file to copy the limits.ini file to the install directory (Usually C:\Program Files\Wellington\ )
    If I log in as administrator (Windows 2k) LabVIEW can write to limits.ini OK. However without Administrator rights LabVIEW can't modify this file (using the Configuration File vi’s) - it returns File Permission Error 8. (It can read the file).
    1. Is there a way around this without manually hacking the registry?
    2. I tend to put my ini files for my LabVIEW software in the same directory as the LabVIEW exe file. Should I be using a different location (eg the \data directory)?
    3. The reason I do not include the *.ini file in the installer is that I can modify it without having to rebuild the app. Instead I get the installer to run a batch file that copies *.ini files from the source directory to the install directory.
    Thanks for your help in advance.
    Nicholas

    Nick wrote:
    > I have built my LabVIEW 7.0 Functional Tester software into an
    > application. During install I use a batch file to copy the limits.ini
    > file to the install directory (Usually C:\Program Files\Wellington\ )
    >
    > If I log in as administrator (Windows 2k) LabVIEW can write to
    > limits.ini OK. However without Administrator rights LabVIEW can't
    > modify this file (using the Configuration File vi’s) - it
    > returns File Permission Error 8. (It can read the file).
    >
    > 1. Is there a way around this without manually hacking the registry?
    Give the particular user write access to that directory.
    > 2. I tend to put my ini files for my LabVIEW software in the same
    > directory as the LabVIEW exe file. Should I be using a different
    > location (eg the
    \data directory)?
    For newer OSes like Unix, and Windows 2k or better yes it would be a
    good idea. Unix typically uses a . file in the home directory
    of the user. Another idea would be to create a known directory inside
    the home directory and put all it's data files there.
    LabVIEW 7.0 has a new VI to return the user data directory.
    > 3. The reason I do not include the *.ini file in the installer is that
    > I can modify it without having to rebuild the app. Instead I get the
    > installer to run a batch file that copies *.ini files from the source
    > directory to the install directory.
    This will only work when you work on the same machine as you developed
    it (or at least the same network).
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • EXPDP generates new dmp file and reports "file already exists" error

    Hello everyone,
    Hope you all had a wonderful holiday. I got some problems with datapump expdp 10.2.0.4. It would be appreciated if you could provide some advice. Thanks in advance.
    I newly created a 10.2.0.4 database. The database can startup and be connected via Toad without problem. I can also use impdp to import some data to the new database. But when I'm trying to use expdp to export a schema from the database, I got the following errors:
    expdp parfile=expdp_scott_mfp1.parExport: Release 10.2.0.4.0 - 64bit Production on Monday, 26 December, 2011 22:10:49
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39000: bad dump file specification
    ORA-31641: unable to create dump file "/u02/exports/mfp1/expdp_scott_mfp1_12262011.dmp"
    ORA-27038: created file already exists
    Additional information: 1
    Every time I run the expdp, it just creates the dmp file (expdp_scott_mfp1_12262011.dmp) specified in the parfile under the EXPORT directory and reports "file already exists " error.
    Your advice is highly appreciated.
    Thanks.
    Edited by: 904668 on Dec 27, 2011 8:47 AM

    i thought I found the problem. Used same file name on dump file and log file. How stupid of me. Sorry for bothering. Thanks and happy new year!

  • Weird CS4 error when saving eps files on a Mac: "...specified files already exist in the target location"

    Hi There,
    All 3 workstations in our studio are experiencing weird file behavior when re-saving eps files from Illustrator.
    Basically Illustrator creates a new file in addition to the original and adds a "-01.eps" onto the file name. If you re-save your original, Illustrator brings up a dialogue box that states:
    Some of the specified files already exist in the target location. The files marked below will be replaced:
    filename.eps
    filename-01.eps
    We've been deleting the "-01.eps" files each time but it's becoming tedious. The behaviour occurs when re-saving an eps file to a server or the desktop.
    All machines are new Quad-core MacPros running:
    - Leopard 10.5.8
    - Illustrator CS4 14.0.0
    We've checked for Illustrator updates from within Illustrator but we seem to be running the latest version.
    Is anyone else experiencing this behavior?
    Any help or pointers in the right direction would be much appreciated.
    Cheers
    Ben

    Thanks for the reply.
    The error occurs when we save the document but if we choose save as, "Use Artboards" seems to be unchecked so not sure if this issue is related or not. Will re-save the document using save as then see if the issue persists.
    Why do we still use eps?
    Basically because we've found it to be much more compatible. Our entire logo library is in eps format (18 years worth) partly because it was previously the only format to use and partly because it allows account managers to send logos to clients, printers, TV stations etc and not involve the studio (saving out an eps version).
    Although "Create PDF compatible file" is a good idea, we've encountered costly issues with colours and images - especially if the recipient is using old CS software, non-Adobe software or is using some kind of hardware RIP. We now just go with what we know works.
    But I do find saving eps versions of everything to be a bit painful. In fact, I've always found Illustrator in general to be a bit painful when compared with Photoshop or AfterEffects. Illustrator seems like it's been developed by a different company some times!
    Cheers, and thanks for the help.

  • Problem when saving files (file already exists-)

    Woking in CS5.1.
    When I save a document (as opposed to "save as"):
    I get a message "some of the specified files already exist in the target location. The files marked below will be replaced".
    The file I am working on gets saved, but creates a second version "file name-01.ai"
    Any ideas?

    Works fine here CS5 on Windows.
    When I save, it will warn me only if the file with the same name already exists and if I choose to replace it it will replace the existing file keeping the name I'm saving it with.

  • Cannot create a file when that file already exists

    When i try to use Photoshop filters: Adaptive Wide Angle, Shake Reduction and Liquify. An error pop up saying "Cannot create a file when that file already exists".
    Just one detail: The liquify filter doen't pop up the error right away, the error occurs just after i press the "ok" button to accept the changes.
    I have already tryed to Reset the preferences, tryed to reinstall the PS, Update the PS, download (and install) the latests drivers to my pc.
    My Pc fit in all the requirements, have the openGL version: 3.0
    I also have Photoshop CS5 installed, in which the liquify filter works perfectly.
    Here i have two Print Screen, how it looks:
    The first image is just right before a click the "Adaptive Wide Angle"
    The second one is right after i clicked it
    If you could help me, i already thank you for wasting you time reading this!

    Resetting the Photoshop preferences does not reset the preferences for the plugins.
    There should be a Plugins folder. If the folder cannot be created it would cause the error you are seeing.
    Can you check the permissions on the ‘Adobe’ folder at: C:\Users\jworthin\AppData\Roaming\Adobe.
    Can you manually create a Plugins folder in that location or do you get an error?

  • PSE 9 and 5 will not import - says the file already exists in the catalog !

    I've already wasted 2 days looking for answers to this. When someone buys this program, at least half of the price is paying for the database in the Organizer - yet even John Ellis himself, who seems to know more than anyone about it, has gone to Lightroom. This is bad coding!!!
    Upgraded from 5 to 9. If you read my previous posts, this took 2 days too, and phone help from a tech, because it would not install in my XP computer. It did upgrade the Organizer from 5, although many of the symbols are unusable and don't work to help me identify my tags. However, now I see that neither 5 nor 9 is able to look at a file and display thumbnails that are in it.
    I move files around a lot for my business. Any half-way good database should be able to find the missing files, and also add any new images. Say I have 10 images in file A, then add 2 more to make 12. It can't see the added images! Says can't import, the file already exists in the catalog.
    I tried: updating thumbnails, recover, repair, in both 5 and 9 - nothing works. to import the images that I can SEE in these folders! I read here  that it will not import files if the same name is somewhere else. That alone is a problem.  But I think it's more than that: even if the file used to be in another folder, folder B, it won't recognize that it's in folder A now!
    Since PSE9 uses sql db, shouldn't that be better than 5 and be able to do simple tasks like this?
    Any advice or similar experiences eagerly welcomed.

    Thank you for replying, dj paiqe.
    Do you mean the first little section that says photos may not be displaying? Yes, those just reveal hidden photos and are very basic. I did them.
    I guess we disagree about databases and what they are designed to do, or maybe I didn't explain this well.
    I did not move the images outside of the catalog: I move them to various folders, all already imported WITHIN the catalog, as I send them to various editors. (these are all drawings, not photos, and I do this professionally, so it needs to work).
    Folder A and Folder B and Folder C have already been imported into the catalog. So if I move 2 images from folder B into folder A, the Organizer is simply lost, says image already exists, and everything is totally screwed up, as the image is no longer in folder B, and it can't find it in folder A!!! The problem is, unless I memorize the image name, say Image 9, I can't tell it to reconnect, as there is no longer an image in front of me! So there are 2 images, without names, now nowhere to be found. Inefficient, to say the least.
    I've never tried Lightroom or Filemaker, but I cannot believe that they would lose data like this. I think it's the Folder coding that's not working in PSE, and I wanted this to work so badly!!!!!
    I am willing to do it the PSE way, since you now have captions, keywords, etc, and it is a very powerful database, when it works. I understand that one is supposed to move images within the Organizer, obviously. But now many images are disconnected. I could start all over importing, but is there any way to do that without losing tags and categories?

  • FTPEx: 550  : Cannot create a file when that file already exists.

    Hi experts,
    I am working on idoc to file scenario and PI 7.1. The idoc is split into 3 files.
    In sxmb_moni , the message is successful , but in rwb( Message montoring) i am geeting the fllowing  Error message.
    ' Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server '172.19.125.190:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /Storedata/Outbound/0000001802: Cannot create a file when that file already exists. '. For details, contact your FTP server vendor..'
    and this error message is not displayed for all the target files , some files are getting created succesfully.
    After some times , the file in error status , gets created automatically.
    What may be the reason.?
    Thanks in advance .
    Best Regards,
    Anil

    There seem to be already some files in your Target Directory with the same name as your new files (which the CC is trying to place) and the CC is not able to overwrite the existing files and hence the error...check this.
    Check: http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/69d7cfa4b633eae10000000a1553f6/content.htm
    14.      Select the File Construction Mode.
    u25CB       Create
    The file is created. The document received last is saved in each case.
    If you want the created file to be overwritten, select Overwrite Existing File. If you do not set the indicator, processing is stopped until the created file is processed.
    You can only set the indicator if you select Use Temporary File under Put File below.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jul 28, 2009 6:59 PM

  • Cannot create a file when that file already exists, but should overwrite

    Hi,
    I need the same file name which is at Sender side and when it reaches to Receiver directory without timestamp.
    for eg., Sender side : Yeswanth.txt
    and also receiver side   :  Yeswanth.txt
    but, here it should overwrite the existing file (because, the sender side file name is always constant) at receiver directory when the job schedules for each time.
    Processing parameters i has given on Receiver side:
    File Construction Mode  :  Create
    put file  : Use Temporary File
    and I enabled the Adapter Specific Message Attributes at Sender side and Receiver side.
    Error getting receiver side at communication channel :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:
    Yeswanth.txt: Cannot create a file when that file already exists. : com.sap.aii.adapter.file.ftp.FTPEx: 550
    Yeswanth.txt: Cannot create a file when that file already exists.
    Reward points for useful answers.
    Regards,
    Yeswanth.
    Edited by: YeswanthRaj Kumar on May 23, 2008 8:20 AM

    Hi Yeswanth
    Then you can try with a "Add Counter". This will create new file each time with the same name but a counter will be added to the file name at the end specifying the number of times it is created.
    You can also the specify the format to create the counter once select this option u can correspondingly fill the Format and step fields.
    Will this be fine.
    Regards
    Ashmi

  • Cannot rename DC, "Cannot create a file when that file already exists."

    Hi,
    A long time ago we used a domain controller named jacob.mydomain.lan.  It was removed, possibly in a 'dirty' way, and now we cannot re-use that name for another domain controller.  In the meantime we have upgraded to Win 2012 domain controllers
    now, and when I enter this to rename:
    netdom computername ourdc.mydomain.lan /add:jacob.mydomain.lan
    I get the error:  "Unable to add jacob.mydomain.lan as an alternate name for the computer.  The error is:  Cannot create a file when that file already exists."
    If I enter: 
    netdom computername ourdc.mydomain.lan /remove:jacob.mydomain.lan
    I get: "The command completed successfully", but it still refuses to add jacob.mydomain.lan
    After each attempt to add a forward zone dns record 'jacob.ourdomain.lan' has been created.  I always erase this manually afterwards.
    What is the problem? How can I search to find the offending 'file' named 'jacob'?
    Thanks a lot for help on this.
    regards Tor

    Kevin,
    I suggest you wait 30 days instead of 3 days before you enthusiastically close threads. Some people might think you are being a jerk if you don't.
    "K_evin Zhu" wrote in message
    news:[email protected]...
    Hi,
    As this thread has been quiet for a while, we will mark it as �??Answered�?? as the information provided should be helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to
    unmark the answer as you wish.
    BTW, we�??d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks for your understanding and efforts.
    Best Regards
    Kevin
    Tomás Mason

  • Why when I scan it doesn't import because file already exists, i never scanned it before?

    Why when I scan anything in my Photoshop Elements 8, it tells me that nothing was imported because a file already exists.  I never scanned this photo before?? Please help!

    It could be a file name duplication.  Either the scanner creates some default file name, which it may have used before or you have assigned a duplicate file name.  Try renaming and see if the Organizer imports it.
    Juergen

  • Having trouble downloading a free trial of adobe acrobat xi pro - error keeps saying that an adobe file already exists

    Hio,
    I'm trying to download the application Adobe Acrobat XI pro - but every time I go through the download process, it comes up with an error that says it can not download because an adobe file already exists in the folder.  I don't have XI Pro downloaded.  Any thoughts?

    Update... Derp... Had it already loaded and didn't even know it..

Maybe you are looking for

  • Screen problems ipad 2

    My ipad 2 suffered a hard drop recently. It works well except the screen. Only appears the basic colours. Are there any solution or trick to recover the full colours? I need to change the screen? Thanks Fernando

  • Switching to Mac, how to set up After Effects

    I just received my new Mac Pro and subscribed to Adobe Cloud.  I'm setting up After Effects and need to set my Media Cache for fast processing.  I am reading that I should set it to write to a separate hard drive from what I am saving my project to,

  • WP_PLU vs. WBBDLD

    Hi experts. I have a trouble, I am implementing a Best Practice Retail. At integration of POS and POSDM, in the XI module, the best practice suggest IDOC WBBDLD Assortment List, to update articles changes. I have a lot experience using IDOC WP_PLU fo

  • Datasocket write error when launching an application

    I have invested a lot of time in an applications that uses a number(>100) datasocket connections to exchange data between an application and plug in modules(called vis). I have two errors relating to the datasocket server for this application: 1.) Wh

  • "Incompatible video codec found in presets" message while attempting to export

    Cant seem to be able to export at any settings. I keep getting this "Incompatible video codec found in presets" message, and then eventually Premiere wigs out and crashes. I tried uninstalling, rebooting and re-installing, but I'm still getting the s