Sharepoint file locking (10 min wait from new file upload)

When I upload a new file to sharepoint and try to edit the document, I receive an error that says the the file is currently locked for editing by another user.  My google search told me: "the
write lock times out after 10 minutes. Users cannot modify the document during the time when the document is locked. To work around this behavior, wait 10 minutes before opening the document again."
Is there a better more viable option for saving new documents to sharepoint, so I can edit them right away?  Any help is greatly appreciated!
Thank you,
Kelvin

Hi Kelvin,
As I understand, when you uploaded a new file to SharePoint and tried to edit the file, you received an error” the file is currently locked for editing by another user”.
How do you try to edit the file? Edit in the Windows Explorer or edit in the Excel or Word? Which file type has encountered the issue?
Check things below:
1. Check the details of the error in the ULS log.
2. Check whether the file has been properly checked in or not. If not, refresh the page and try to check in the file again.
3. Delete the local copy of the file present in the cache folder of the concerned user account (access to user’s PC required).
4. Close all the instances of file type opened in the system. E.g. if the file type is excel, then close all the excel files currently opened.
5. Also kill the file type service using the task manager.
6. You can install the latest rollup and updates for SharePoint 2013 and the latest update for the Microsoft office. If you have the issue with the excel file, you can install the latest Cumulative Update for Excel.
There is another solution here is to build a small program to unlock the document/file against SharePoint Content Database. You can refer to the article below:
http://www.codeproject.com/Articles/251161/Resolve-SharePoint-Document-Locked-for-Editing-Iss
The article below is about File is locked for editing by ‘domain\username' when editing office document in SharePoint site.
https://curah.microsoft.com/216560/file-is-locked-for-editing-by-domainusername-when-editing-office-document-in-sharepoint-site
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • On-demand scanning for only new files or scan a list from a file

    I run a free to use file hosting service and with it are the risks of abuse for malware. In the past I've used ClamAV with a bash script to search for any files that are as old or newer than X minutes, usually about 5 minutes and put the found files listed line by line in a file and ClamAV will scan those files only. Put on a Cron for every 5 minutes to run. ClamAV's detection is pathetic though and has not caught most of the stuff it has needed to find. So switching over to Sophos Linux, it has done a great job already detecting multiple files of the uploaded files folder that ClamAV had already missed in the past. It takes just 3 1/2 minutes for it to scan through 3500+ files and archives totaling 17 gigs. I have it set to scan the whole directory every 5 minutes. This takes a while, even if it is under 3 1/2 mins. Ideally I want Sophos to only scan new files so it can be set to run every minute, or every 5 minutes, whether that be from it's command line or via it reading a file list. This way newly uploaded malware is taken care of as fast as possible for the security of the end users.  Here is the script file I use for Sophos already: #! /bin/bash
    PATH=/home/user:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    if [[ $UID -ne 0 ]]; then sudo "$0"; exit 0; fi
    # Directories to scan
    scan_dir="/home/user/directory/files/"
    # Virus relocation folder
    virus_vault="/home/user/directory/viruses/files/"
    # Create new log folder if it doesn't exist
    mkdir -p /home/user/directory/viruses/logs/$(date +%Y-%m)
    # Location of log file
    tmp_log_file="/home/user/directory/viruses/logs/$(date +%Y-%m)/sophos-scan-$(date +%Y-%m-%d)-tmp.log"
    log_file="/home/user/directory/viruses/logs/$(date +%Y-%m)/sophos-scan-$(date +%Y-%m-%d).log"
    # Scan files and remove (--remove) infected
    savscan $scan_dir -nc -ss -archive -all -suspicious -pua --quarantine -move=$virus_vault -p=$tmp_log_file
    # Format log
    echo " " >> "$log_file"
    echo " " >> "$log_file"
    echo "-----------------" >> "$log_file"
    echo " " >> "$log_file"
    date >> "$log_file"
    echo " " >> "$log_file"
    echo "-----------------" >> "$log_file"
    echo " " >> "$log_file"
    # move consolidate log to daily file
    cat $tmp_log_file >> $log_file
    # remove temporary file
    rm -f $tmp_log_file
    # make sure virus files are right owners
    chown -R user:user $virus_vault Here is what it's based off, what I did for ClamAV to find new files and scan those only. #! /bin/bash
    if [[ $UID -ne 0 ]]; then sudo "$0"; exit 0; fi
    # Directories to scan
    scan_dir="/home/user/example.com/files"
    # Virus relocation folder
    virus_vault="/home/user/example.com/viruses/files"
    # Temporary file
    list_file=$(mktemp -t clamscan.XXXXXX) || exit 1
    # Create new log folder if it doesn't exist
    mkdir -p /home/user/example.com/viruses/logs/$(date +%Y-%m)
    # Location of log file
    log_file="/home/user/example.com/viruses/logs/$(date +%Y-%m)/clamscan-$(date +%Y-%m-%d).log"
    # Make list of new files
    if [ -f "$log_file" ]
    then
    # use newer files then logfile
    find "$scan_dir" -type f -cnewer "$log_file" -fprint "$list_file"
    else
    # scan last 5 minutes
    find "$scan_dir" -type f -cmin -5 -fprint "$list_file"
    fi
    if [ -s "$list_file" ]
    then
    # Scan files and remove (--remove) infected
    clamscan -f "$list_file" --move=/"$virus_vault" >> "$log_file"
    rm -f "$list_file"
    else
    # remove the empty file, contains no info
    rm -f "$list_file"
    fi
    exit 

    Quick comment...
    Sophos has 'decision caching' to speed up files that haven't changed since the last scan, while also allowing files to be re-checked against the latest threat definitions.

  • On-demand scanning for only news files or scan a list from a file

    I run a free to use file hosting service and with it are the risks of abuse for malware. In the past I've used ClamAV with a bash script to search for any files that are as old or newer than X minutes, usually about 5 minutes and put the found files listed line by line in a file and ClamAV will scan those files only. Put on a Cron for every 5 minutes to run. ClamAV's detection is pathetic though and has not caught most of the stuff it has needed to find. So switching over to Sophos Linux, it has done a great job already detecting multiple files of the uploaded files folder that ClamAV had already missed in the past. It takes just 3 1/2 minutes for it to scan through 3500+ files and archives totaling 17 gigs. I have it set to scan the whole directory every 5 minutes. This takes a while, even if it is under 3 1/2 mins. Ideally I want Sophos to only scan new files so it can be set to run every minute, or every 5 minutes, whether that be from it's command line or via it reading a file list. This way newly uploaded malware is taken care of as fast as possible for the security of the end users.  Here is the script file I use for Sophos already: #! /bin/bash
    PATH=/home/user:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    if [[ $UID -ne 0 ]]; then sudo "$0"; exit 0; fi
    # Directories to scan
    scan_dir="/home/user/directory/files/"
    # Virus relocation folder
    virus_vault="/home/user/directory/viruses/files/"
    # Create new log folder if it doesn't exist
    mkdir -p /home/user/directory/viruses/logs/$(date +%Y-%m)
    # Location of log file
    tmp_log_file="/home/user/directory/viruses/logs/$(date +%Y-%m)/sophos-scan-$(date +%Y-%m-%d)-tmp.log"
    log_file="/home/user/directory/viruses/logs/$(date +%Y-%m)/sophos-scan-$(date +%Y-%m-%d).log"
    # Scan files and remove (--remove) infected
    savscan $scan_dir -nc -ss -archive -all -suspicious -pua --quarantine -move=$virus_vault -p=$tmp_log_file
    # Format log
    echo " " >> "$log_file"
    echo " " >> "$log_file"
    echo "-----------------" >> "$log_file"
    echo " " >> "$log_file"
    date >> "$log_file"
    echo " " >> "$log_file"
    echo "-----------------" >> "$log_file"
    echo " " >> "$log_file"
    # move consolidate log to daily file
    cat $tmp_log_file >> $log_file
    # remove temporary file
    rm -f $tmp_log_file
    # make sure virus files are right owners
    chown -R user:user $virus_vault Here is what it's based off, what I did for ClamAV to find new files and scan those only. #! /bin/bash
    if [[ $UID -ne 0 ]]; then sudo "$0"; exit 0; fi
    # Directories to scan
    scan_dir="/home/user/example.com/files"
    # Virus relocation folder
    virus_vault="/home/user/example.com/viruses/files"
    # Temporary file
    list_file=$(mktemp -t clamscan.XXXXXX) || exit 1
    # Create new log folder if it doesn't exist
    mkdir -p /home/user/example.com/viruses/logs/$(date +%Y-%m)
    # Location of log file
    log_file="/home/user/example.com/viruses/logs/$(date +%Y-%m)/clamscan-$(date +%Y-%m-%d).log"
    # Make list of new files
    if [ -f "$log_file" ]
    then
    # use newer files then logfile
    find "$scan_dir" -type f -cnewer "$log_file" -fprint "$list_file"
    else
    # scan last 5 minutes
    find "$scan_dir" -type f -cmin -5 -fprint "$list_file"
    fi
    if [ -s "$list_file" ]
    then
    # Scan files and remove (--remove) infected
    clamscan -f "$list_file" --move=/"$virus_vault" >> "$log_file"
    rm -f "$list_file"
    else
    # remove the empty file, contains no info
    rm -f "$list_file"
    fi
    exit 

    Quick comment...
    Sophos has 'decision caching' to speed up files that haven't changed since the last scan, while also allowing files to be re-checked against the latest threat definitions.

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • Choose File Form Data Create Spreasheet From Data Files

    I am following the tutorial for LC 8 and when I get to the topic titled "Collecting the data in a spreadsheet" it says to "Choose File > Form Data > Create Spreadsheet From Data Files".
    However, when I try to follow that path I do not see a "Form Data > Create Spreadsheet From Data Files" menu option.
    What am I not doing properly? How do I accomplish this task?
    Thanks!

    Thank you so much Paul. I have been trying all day to locate the method by which I could create a spreadsheet using the pdf submit route. I suppose the tutorial in CS4 should have been changed to reflect the changed explanations, but I guess that would be difficult to do. Anyway it worked and I can now do the analysis I need from my customers (lots of pupils!).
    Best wishes,
    Kevin Palmer

  • I have file with 500 pages created from AutoCad file. In all pages, I have different document numbers.The file is not editable in pdf. How to change all the document numbers using "Comment" feature? Any alternate method?  alternate method? I have Adobe Ac

    I have pdf file with 500 pages created from AutoCad file. In all pages, I have different document numbers.The file is not editable in pdf. How to change all the document numbers using "Comment" feature? Any alternate method?  alternate method? I have Adobe Acrobat X Pro and Windows -7 platform.

    Yes, I just want to cover up all the pages for those particular area of document numbers.
    Nothing sensitive about it. I just want to show the correct document numbers on all pages in print out.
    So, I wanted to cover up by comments, but commenting on each page will be difficult. So, I wanted to comment the same on all pages.

  • HT4437 how may I add files to time capsule apart from backup files?

    how may I add files to time capsule apart from backup files?
    I'm able to perform backup (time machine). May I add pictures, texts, movies...?
    Thanks

    not sure if this is a spc. appletv question or if you posted it in the wrong forum but there is no way
    for an appletv to access files directly from an time capsule it can only! access a shared lib from itunes from a computer running and running itunes

  • File reporter questions - pulling data from db / files for o

    I've been trying to find a way to query or pull file and path info for volumes from the file reporter databases without needing to give access to the file reporter app. I have an outside group that I need to provide the file structure to, but don't need to give all of the info to, and need to provide it in the form of a text file. I could script this out, but if file reporter does this also, I don't see the point in duplicating the data out there.
    In reviewing the content of the sqlite databases it doesn't appear that the actual file system info. I see a lot of references to what I think may be files in the directory structure that the databases are located in. looking over the logs and debug files in these directories they look like they may contain what I am looking for, but I'm not sure what can be used to open or extract the data from them. Does anyone know what I would use to open or extract the zcf files located in them?
    so I've made a few attempts at trying to figure out the format these are in, but know they are not sqlite data... not zip or gzip... but definitely some sort of data file.

    On 10/8/2012 4:46 PM, rbgnr111 wrote:
    >
    > I've been trying to find a way to query or pull file and path info for
    > volumes from the file reporter databases without needing to give access
    > to the file reporter app. I have an outside group that I need to provide
    > the file structure to, but don't need to give all of the info to, and
    > need to provide it in the form of a text file. I could script this out,
    > but if file reporter does this also, I don't see the point in
    > duplicating the data out there.
    >
    > In reviewing the content of the sqlite databases it doesn't appear that
    > the actual file system info. I see a lot of references to what I think
    > may be files in the directory structure that the databases are located
    > in. looking over the logs and debug files in these directories they look
    > like they may contain what I am looking for, but I'm not sure what can
    > be used to open or extract the data from them. Does anyone know what I
    > would use to open or extract the zcf files located in them?
    > so I've made a few attempts at trying to figure out the format these
    > are in, but know they are not sqlite data... not zip or gzip... but
    > definitely some sort of data file.
    >
    >
    rbgnr111,
    It sounds like you might be better off exporting a report which suits
    your needs as a CSV file (which can be done from within File Reporter)
    and stripping out unnecessary 'columns' of metadata after the fact. This
    would be a great deal simpler than extracting the data from the database.
    - NFMS Support Team

  • I had a repair done at the apple store where the replaced my hard drive and copied my other hard drive over to the new one.  Everything is fine except the time machine wont reconnect to my old file and is trying create a new file but not enough space?

    I had a repair done at the apple store where the replaced my hard drive and copied my other hard drive over to the new one.  Everything is fine except the time machine wont reconnect to my old file and is trying create a new file but not there is not enough space for both files files? Do I need to do something to have it continue to update my old file instead of recreating a new one?

    Depending on what version of OSX you're running, and how the data was transferred, you may be out of luck.
    If you're running Lion, and your backups were made to a directly-connected external HD (ie, not a Time Capsule or other network location), you may be able to get Time Machine to "associate" the new disk with the old backups.  See #B6 in Time Machine - Troubleshooting, especially the pink box there.
    If you're running Snow Leopard, you might be able to do a full system restore of your backups to the new HD.  See Time Machine - Frequently Asked Question #14 for detailed instructions.  That should leave a "trail" that Time Machine can follow to "associate" the new drive with the old backups.  Unfortunately, that doesn't always work, and there's no way to do it manually, as there is with Lion.

  • When I select files to archive, they move from my file folder, but then I go to the archive folder and it says Empty? Where are those files?

    When I select files to archive, they move from my file folder, but then I go to the archive folder and it says Empty? Where are those files?

    Your account names are probably different on the two Macs. If you know the UNIX command line, open a terminal window and run:
    $ id 
    You should see a line that starts with something like this:
    uid=501(your_user_id_here)
    now check the owner of the folder you copied over:
    $ ls -ld Music
    drwx------+ 8 some_user_id_here  staff  272 May 14 16:08 Music
    Do the IDs match? If not, you could change the ownership. Say your id is "johnsmith"
    $ chown -R johnsmith Music
    Now try and access it with iTunes.

  • Need to add date/time stamp to file name without time change creating new files

    We have setup our application to save data once a trigger event occurs. We also need the date/time stamp as part of the file name. We used Format Date/Time String and concatenated it into the file name. It all works good, but as the time changes (seconds, minutes, etc.) it causes the Write to File to create a new file with the new filename. Is there a way to create the file and save/latch/buffer the time in the file name so that it doesn't create a new file for every second?
    I've attached a shot of the relevant part of our VI. It's all in a big while loop. The data save is in a case/switch so that when it is triggered it starts saving. (The for loop is to split the data up
    into 4 different files). Like I said, it all works except new files are created every second as the time changes instead of just putting it all in one file with the initial time in the file name.
    Attachments:
    TimeInFileNameQuestion.jpg ‏46 KB

    I need a loop in order to use a shift register. I cannot stop the outer while loop (because it would stop the hardware from collecting data), and I cannot add loops inside which bogs down the processor to where the app stops. I've attached a simpler version of my VI which illustrates the problem. While the button is pressed (the trigger) it should save the data (in this case just cycle numbers) into one file with the initial date/time. But, you can see that it creates 1 file/second. I tried using shift registers, but without adding extra loops I can't see how to do it. Thanks
    Attachments:
    FileNameTest.vi ‏29 KB

  • File Name not set when creating new file in EP 6.0 SPS20

    Hi,
    We recently upgraded from EP6 SP15 to SP20. Now when I create a new file or folder in a KM folder, the name that I give for the resource is not taken into account. The display name  of the newly created resource will be <b>New Text</b> or <b>New HTML Document</b> or <b>New Folder</b>, etc. Even if I open the Properties and change it there, it is not getting reflected. But if I select Rename from the Context menu and give a new name, it gets set. What could be the problem?
    Thanks in advance
    Regards
    Ranjith

    Hi,
    It was an issue with the customized PropertiesControl class.
    Regards
    Ranjith

  • Automate 'Load files into stack' and save as new file

    Hello there,
    I hope someone can help me with the following issue:
    I have 300 folders, each containing 100 images which I need to open as layers, change the opacity to 1% for every layer, flatten the image and then save as a new file. So for every folder I would need one new file generated from the 100 originals.
    I know how to do it manually, i.e. load every folder with the 'Load files into stack' command and let an action run for the rest, but that does take some time with 300 folders. Maybe someone knows how to manipulate the 'load files into stack' script so that it does the job independently.
    Thank you for your answers.

    I think you would be better off starting from scratch with a new script for the design and structure of the 'Load files into stack' script is not easy to comprehend.
    I guess that’s sound advice.
    But another point, leroybak:
    What are you trying to achieve here anyway?
    If you want to »blend a movie into one image« like a continuous exposure of the whole movie on photographic paper (and it has been done) changing all layers opacity to 1% might be not altogether the ideal route.
    Instead converting the Layers to one Smart Object and invoking Layer > Smart Layers > Stack Mode > Mean might be better in that all layers contribute to the resulting values equally.

  • Map with 500 pdfs. How to make a new file with only the first pages, new file with second pages etc.

    Hi,
    A client confronted me with the next question:
    I have a map with 500 pdf's in it.
    Is it possible to make a new file with only the first page of each pdf?
    After that to make a new file with only the second page of each pdf?
    And after that the third?
    Etc.
    Is that possible with an action?
    Or are there scripts for?
    I couldn't find them.
    I use an iMac with Acrobat XI.
    Any help is very welcome.
    Thanks in advance.
    Bornholm

    You can extract each page from each pdf as a seperate page.     Once this is done you can select the pages tocombine.
    You would have to write custom a custom JavaScript and programatically code the names to combine if the extracted file pages habvestandars naming that could  be programed. There maybe some security  coding you will have to do because of Adobe restrictions but this all documented in the Acrobat JavaScript Reference.

  • How to read a file and pickup some information from  a file

    Hai all,
    I wrote a beloe program to read a file and write it into another file
    import java.io.*;
    public class Rdata {
    /** Creates a new instance of Rdata */
    public Rdata() {
    public static void main(String a[])throws Exception
    FileReader fr=new FileReader("c:\\java\\attach\\attach2\\resume1.doc");
    FileWriter fw=new FileWriter("C:\\java\\attach\\abc2.doc");
    char ch;
    int i;
    while((i=fr.read())!=-1)
    ch=(char)i;
    fw.write(ch);
    fw.close();
    This program reads the content from resume1.doc and write it into abc2.doc . But in my project I want to read the resume1.doc and and write only peace of information like "keyskills are java,jsp,javamail"
    I mean how to read the entaire file and how to write into another file whisc i require
    Thanks&regards
    radhs

    http://java.sun.com/docs/books/tutorial/essential/io/

Maybe you are looking for

  • Function Module: HTTP_GET

    Hi. I am using FM: HTTP_GET to fetech same data (its a XML file) from web. My program works fine only if executed in foreground. If I execute the code in backgound the job terminates with error: Job started Step 001 started (program ZTEST, variant ,

  • Can't Install Final Cut Studio V3.0

    Hi, I'm currently using a mid-2009 13-inch Macbook Pro running OS X Mavericks 10.9.1. I'm trying to install a retail verison of Final Cut Studio V3.0 that has 2 installs left, but my Macbook ejects the first installation disk about a minute after I p

  • N85 photo gallery problem

    I have a problem with my nokia n85.when I take a picture with my camera, it doesn't appear in a photo gallery...and all my pictures from gallery are gone...how do i deal it? please help...

  • DB Connect, BW on MSSQL, Oracle as external system(NON SAP)

    Hi, Requirement: I want to connect and Extract data from Oracle database (non-sap). BI System Details: 1. BI 7.0 (EHP 1) server is running on MSSQL 2005. 2. I have WEB AS as ABAP only. 3. Operating system Win 2003 server. Oracle Database (NON SAP) De

  • Best Practice for programatically navigating to a page in ADF

    What is the best approach to navigate programmatically to another page in ADF. I can use this in JSF but want to know is there anyother approach for navigation in ADF: FacesContext.getApplication().getNavigationHandler().handleNavigation