Documents Locked - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Documents Locked

Last post 07-14-2005 10:58 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-14-2005 08:46 AM

    Documents Locked

    I have an infopath form.
    on submit am submiting to a folder in sharepoint at the same time am trigerring an even in sharepoint when any forms getting inserted to that folder while trigerring events in sharepoint am getting the following error
    "The document you are attempting to edit is locked and cannot be updated. It may be in use by another user or undergoing content indexing "
    but i have not checked out the form nor no body else is using this form
    or is it possible to stop undergoing content indexing
    can someone help on this
  • 07-14-2005 10:58 AM In reply to

    Hi Shyananth and welcome to our forum!
    SharePoint has an implicit locking mechanism. If a user opens a form, SharePoint remembers that they have it open. If they go offline, then the lock expires in 10 minutes. Otherwise, the user has to submit the form or close it. This is a big issue with InfoPath installations on SharePoint. HEre are some best practices for developing SharePoint forms:

    1. For people who only need to read the form, use the XSL Apply tool in the SDK to create a read-only view and a calculated column in the form library to show the data without opening InfoPath.

    2. Create a separate Form B for user comments and put that a separate form library. Form B can then use a SharePoint list adapter or import (Merge Forms) to show a read-only sub-view of Form A. Then, you are not creating a lock on Form A for people who only need to add comments or ask questions. See Issue Tracking for an example of merge. You'll have to tie the forms together using an ID or something.

    3. Use Checkout and Check-in to tell people that you are editing the form (to prevent them from opening it). This is a human solution.

    4. Close InfoPath and/or wait 10 minutes. This expires the lock on SharePoint. This is also a human solution but is a viable workaround.

    5. Create personal views so that people only view the forms that are assigned to them decreasing the form read collisions between users.

    Hope this helps!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.