Some thing in my code causing excel file to be READ-ONLY

Hello:
I am pretty certain problem is caused by left bottom part of the picture, but I am not sure why.  The software basically write a header to a .xls file at start called XXX-peak.xls, at every cycle I read everything from the .xls, do some array manipulation modify 2 columns to the last row and rewrite the whole thing back to the same file.  I originally thought perhaps I left the file unclosed after an access but I think that would cause an error, besides,  all the read/write file VIs have file close features inside of them.  If someone could give me a quick diagnostic, it would be great!
JC  
Attachments:
snapshot1.jpg ‏3779 KB

First of all, you're not reading or writing any files in Excel (*.xls) format. You're reading and writing plain ASCII spreadsheet data. (The fact that Excel will try its best to parse the content when you later try to open it with excel does not make it an Excel file ).
It is not obvious from the picture where the problem is, especially since we don't see the code in all the other cases and you read your filename via a value property. Where else is the file name used? It might be more efficient to open the file once, then use low-level file I/O to read from it and write back to it at desired offset location without ever closing the file during the run of the program.
Why don't you attach the actual VI so we can better see what you're doing?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Some Files Change to Read Only

    Hello,
    I have Mini SL Server with 5 iMac clients. My problem is that some files
    change to [Read Only]. This happens with Excel 2008. My current solution
    is to save the file to any iMac Desktop and then move the file back to the
    server. I cannot find why this is happening. I am using AFP and ACL to
    propagate permissions.
    Thanx in advance for any help in this matter.
    Art.

    Mine is doing the exact same thing!
    Server running 10.6
    3 clients running 10.4
    2 clients running 10.5
    1 client running 10.6
    I have to periodically go in and reset all the permissions, and hit the "apply to all enclosed items" too.

  • Cant get com.apple.security.files.user-selected.read-only entitlement to work

    Hey I am curious how can I get the .ipa compiled file for iOS to be able to read all the directories on the iPhone?
    I made a file browser but I cant get to the pictures
    I tried adding the entitlements in Flash Builder 4.6 in the descriptor file like this:
    <key>com.apple.security.files.user-selected.read-only</key>
    <true/>
    <key>com.apple.security.assets.movies.read-only</key>
    <true/>
    <key>com.apple.security.assets.pictures.read-only</key>
    <true/>
    in the
      <iPhone>
            <Entitlements>
            <![CDATA[
    I got Push notifications working and accepted in the app store but it can't read the pictures directory when browsing for a file
    I know the app id and stuff is set up right or I wouldnt have been able to get it accepted in the app store.  In the entitlements area of course I have the application identifier set and aps-environment and keychain access groups and whatnot set up right.
    When I try to put the app onto the iPhone with iTunes it just says 'Entitlements are not valid' (does not mention anything about mismatched ids) I can't find anything about how to add this entitlement and I could have sworn I saw a thing that said I can just use the descriptor file to add entitlements in some of the documentation I have it set to use air 3.4
    Is there something I am doing wrong, how do I get apple to just put these entitlements in the mobileprovision file, I cant seem to edit it, if I do I also get an error in itunes that is some hex code...

    Did you ever solve your problem?
    I just transfered my web hosting and e-mail to bluehost. I had some of the same problems you are having. I noticed you have your incoming server set to bluehost.
    Incoming mail server: (SSL) box610.bluehost.com (sever requires authentication which I already have done)
    If bluehost is your server this is what worked for me:
    Account Information
    Account type— POP
    Description—anything you want
    Email Address—in your case would be [email protected]
    Full name—  first and last name
    Incoming server—mail.magnus.com
    User name—[email protected] Notice it is the @ symbol not a +
    password— your password . Remember they are case sensitive
    Outgoing Mail server—select edit smpt server list from the drop down window
    select the + to add a server
    Account Information
    Description—may be left blank
    Server name—mail.magnus.com
    TSL Certificate—None
    Advanced
    Use default ports
    Check  Use SSL
    Authenticate—password
    Username—[email protected]
    passowrd—your password
    Click ok
    In the accounts window
    Outgoing SMTP— select the server you just created.
    Check—use only this server
    Select the Advance tab next to the Mailbox Behaviors
    Check use SSL— it will be port 995
    Authenticate —use password
    Ann

  • The file may be read only

    Every so often (approximately every one in three times I try to save), I get the message 'The file may be read only, or another user may have it open. Please save the document with a different name or in a different folder'. If I carry on working and then try to save it a few changes later, it sometimes successfully saves the file. Often it takes several attempts, but eventually it does save it. This happens with all my Illustrator files, they aren't read only and another user doesn't have them open. I'm using a trial version of CS5 and Windows 7 on a personal PC (I still have CS4 installed too - I don't know if it's something to do with this). Anyone have any idea what could be causing it?

    It may be that you were using a font temporarily that was located in a directory that was read only or an image that was placed in the fie or another type of art placed in the files that may have the permissions restricted by accident. It could be that the scratch disk contains some sort of file that you are using and it has a restriction on the permissions as well.
    Check to see if there is permissions problem on any of your directories or folders.
    There may also be the possibility if you are e-mailling samples of the file that it is in use or at least your system and ai thinks so.
    But it mostly sounds to me like the scratch disk needs to have the permissions corrected and that after a few attempts you end up clearing the cache so it is no longer using the scratch and then you are able to save it. Now I am not an engineer but this makes sense to me.
    But it may simply be a problem with the settings folder and yiu can try this as well.
    1. Quit Illustrator.
    2. Rename the AIPrefs file (for example, to AIPrefs.old) in the Users/(user)/AppData/Roaming/Adobe/Adobe Illustrator CS5 Settings folder.
    3. Start Illustrator. Illustrator creates a new preferences file.

  • Could not save as - The file may be read-only or is already open in another application

    Can anyone think of a reason why if I'm working locally on a CS3 Flash .fla on my C: drive that I would get the error:
    Could not save as: C:\Users\John\Desktop\Project_File\ANNUAL REPORT RELEASE\01-19-11\report_stragegy.fla
    The file may be read-only or is already open in another application. Save using a different name, or close the document and try again.
    I'm running Windows 7 Home Premium 64-bit.
    It happens sporadically. I haven't been able to find a reason why this error pops up when saving some of my .fla files!!
    The files are not set to "read only" when I right click on them and choose 'Properties' in the Windows 7.
    I found some somewhat similar situations with saving errors:
    http://board.flashkit.com/board/showthread.php?t=796857
    http://forums.adobe.com/message/2980090?tstart=0
    http://www.actionscript.org/forums/showthread.php3?t=153738
    Thanks

    Sometimes I can save with a different file name. But sometimes I can't and start a new blank document and cut and paste from the one that won't save to the new untitled document.

  • Saving issues: "The file may be read-only" error message

    I do a lot of scanning to pdf and will often have to add a newly scanned page to an existing archived pdf then resave it.
    I have a very consistent workflow and use two screens. The folders that contain the archived files are always on my second screen while I work on the main screen.
    After I have inserted the newly scanned page into the existing pdf very often I get an error message that the file cannot be saved:
    The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.
    I am the only user, none of files are read-only, and I am certain that the file I am resaving is not selected (I can see that on my second screen).
    Sometimes if I just click on the second screen to another folder it'll let me resave, but other times I have to close Windows Explorer completely.
    I like to avoid renaming files: it's important to that the original filename be retained.
    This seems to be happening a lot more with Acrobat X Pro than it did with version 9. This is highly annoying.
    Any known workarounds?
    dg

    The folders that contain the archived files are always on my second screen
    If in Windows (a Mac user would have to speak to this for that environment) -
    If Windows Explorer is "focused" on the file (i.e., file selected) or has "focus" on the file(s) parent folder/directory you will get the alert dialog.
    Close Windows Explorer or place its focus elsewere.
    Also, if the preview feature is used for files within a folder (or for files in nested sub-folder) you'll experience similar "speed humps" in the work flow path.
    Was not always this way but OS updates (XP, Vista, etc.) appear to have given us some nifty new options that, coincidentally, pose some gotchas.
    Be well...

  • Project files open in read-only mode

    project files open in read-only mode in ms project 2013.But in the case of MS Project 2007 it opens in READ\WRITE mode .what should i do so that project will opens in READ\WRITE mode by default in MS Project 2013

    In addition to John's excellent reply, I'd add that if you are talking about Project Server, this is by design that the projects in 2013 version open in read-only mode, in order to require an explicit operation to check-out the file. This prevents to have
    many checked out files by mistake.
    See this
    article on my blog.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How can display word 2007 document file as a read only on web browser

    hi,
    i want to display word 2007 document file as a read only that means non editable file. At present i am displaying word file by using response object. please help me.
    Thanks,
    Raj

    Hi dear,
    Try with the sample code which has given in below link....
    http://forums.devshed.com/java-help-9/need-help-reading-word-document-with-jsp-20316.html
    ---Vidya
    Message was edited by:
    ragas

  • In RH7html, files are suddenly read only

    We use RH7 html and VSS version control. I have opened an old project and had some issues trying to get it versioning correctly.
    when I opened the project just now, all my htm files (topics) are 'read only', so every time I want to change something a message pops up and I have to click OK to make it writable. Not huge, but is there a way I can change all the topics to writable at one time?
    city sue

    It is interesting you should ask the last question below. I checked it, and it has gone back to only 'add to version control' being available where it had all the options available a while ago today.
    I haven’t had this problem with my other projects. This is a very old one and is basically really badly set up, so who knows what is going on.
    I have added it to version control YET AGAIN. I have a nasty feeling this problem with this project is not going to go away any time soon.
    Sue

  • Can't save the illustration.  The file may be read only, or the file is in use by another applicatio

    Getting error "Can't save the illustration.  The file may be read only, or the file is in use by another application."  The file is not read only and is not in use by another application.

    The same thing may happen in Windows Explorer, specifically if it is a very big file (physical size), so preparing the preview may take a lot of time.
    In that case it is used by "another application", that is: Explorer.
    By the way, which version of Illustrator are you using, Tetons?

  • New user- all my files are now read only -

    I am using a Dell Inspiron 8600 laptop with Windows XP  and my husband has a Dell Dimesion 4600 desktop.  Two weeks ago I installed a Linksys Compact Wireless-G USB adapter on his computer and then installed a WRT54G v.6 wireless router.  All is working fine for internet connection. Today I discovered all my files are now read only and even when I uncheck the read only box and click apply, then close the file, on re-opening it it is again read only.  Even the files on my external hard drive are now read only. 
    I am backtracking to see where a change was made that was unintended and the wireless router was the last thing I installed.  Is there a connection?  And if so, can someone help me make the necessary changes or tell me where to find out?
    I read through a lot of messages but did not immediately see this situation addressed. 
    Sandra

    seems to be an OS issue , because there is nothing on the router setting that could change the configuration on the computer....try System Restore....can't think of anything else at this point...

  • JAVA and XML files suddently becomes read only files ---- is this a bug ?

    Hi all,
    I run into this problem about 1 to 3 times a day. What happens is that all of a sudden all the files containing code that i was editing becomes read-only well the write cursor disapears this is kinda bothering me the only way to fix this is to reboot jdev. In the console there are no errors which i found weird. i am using the latest jdev version under the enterprise red hat.
    Regards,
    Carl

    Hi brian,
    yeah strangely this happens to all the files but i can still edit them using the control palette lets say i want to add a component it will work fine but i cant type in any code. I am not using version control system. I dont think i run out of memory but ill double check this.
    Carl

  • Upload data to excel sheet- make columns read only

    I would like to upload my internal table data-10 columns into excel sheet.
    I know how to upload my data into excel sheet.
    I want 2 of the columns in excel sheet to be read only out of the 10 columns.
    Is there any way that i can control the properties of excel sheet from SAP.
    Thanks in advance

    done

  • Cannot save the file may be read only

    Does anyone know how to save a current PDF in Adobe Acrobat X pro if getting "the file may be read only, or another user may have it opened.  Please save document with a different name or in a different folder" windows 7.  The file has not been opened by anyone, and this happens when I amend the document and try and save again.  I have turned off "protected view" within the preferences.  Deselected the file in its folder, and turned off the preview pane in the explorer window.
    Does anyone have any ideas how to get around this?  thank you.

    Chances are it is a problem with the preview being turned on in Explorer. You might try closing Explorer, changing it to a different folder, or turning off the preview (the typical solution).

  • Open powerpoint encrypted files that are read only

    I'm trying to open a powerpoint encrypted file that is read only with keynote version 5.1.1.
    however keep getting the error message it must first be saved un encrypted.
    is there a way to mark the file read only so keynote will open it like powerpoint does

    thanks for the info, but not possible to get the file with the passowrd removed.
    I was hoping keynote would be able to still read it like powerpoint is able to but I guess that feature doesn't exist in keynote.
    Gues will just have to find a pc with powerpoint then.

Maybe you are looking for

  • Rfc function module call error

    Hi Abaper, I'm doing upgrade from 4.7 to ecc 6.0 currently and encounter problem in one of the rfc function module that we used. I've tested the connection to destination using sm59 and the connection is successful. As an information, in the rfc sett

  • Spotlight and iCal search not working after upgrade to Leopard

    I recently upgraded my MBP to Leopard (10.5.7), and everything seemed fine. Except search in iCal wasn't working. I looked in forums and found a suggestion - renaming Calendar Cache in Home>>Library>>Calendars, then restarting iCal. iCal rebuilt the

  • Impact of Oracle Grid on TimesTen

    Hi, One of our client is using TimesTen (11.2.1.8.0) in memory cache with Oracle(11.2.0.1.0 ) as the underlying database. They want to configure Oracle Grid to monitor the Oracle Database in the production environment. Logically there should be no im

  • How do I put in my new credit card

    How can I chage my credit card info.

  • Appears a black image when i load icloud in my ipad

       I try to load iCloud and appears only a black image, how do load it right ?