I am using Infopath 2007 and DBXL 2.3.
I have a document type in DBXL. The users access the documents via SharePoint DataViews, I have created some screens using SharePoint designer, and they utilize DataViews into the SQL database. The DataViews have hyperlinks to the documents - i.e the dbxl link This is working well.
The key user would like to be able to delete documents without having to contact me.
In order to give this functionality - without access to DBXL, I have created a form library in SharePoint, where I map the DBXL documents and I have ticked Propogate delete. Only the key user has a menu option to get to this library, although other users appear to need contribute rights for the mapping to work.
This seems to work well most of the time . But I have started to get some errors - see below. The Form library for deleting is called DeleteNPAPRequests and I seem to get these errors when I am editing the document using the hyperlink from the DataViews not when I am trying to delete the document from the DeleteNPAPRequests library.
Is what I am trying to do a suitable solution ? I really do not want to give access to the DBXL Catalog - I think it would cause confusion.
Are these errors caused because I am keeping the document open too long ? I have noticed I have autosave on, would that be affecting it?
Thank you
Catharine
Message: Caught exception checking out SPListItem. http://....../DeleteNPAPRequests (DocType = 'Request', DocId = 2781)
Microsoft.SharePoint.SPException: The file "DeleteNPAPRequests/2781.xml" is checked out or locked for editing by ...... ---> System.Runtime.InteropServices.COMException (0x8107090E): The file "DeleteNPAPRequests/2781.xml" is checked out or locked for editing by .....
at Microsoft.SharePoint.Library.SPRequestInternalClass.CheckOutFile(String bstrUrl, String bstrWebRelativeUrl, Boolean bCheckoutToLocal, String bstrLastModified)
at Microsoft.SharePoint.Library.SPRequest.CheckOutFile(String bstrUrl, String bstrWebRelativeUrl, Boolean bCheckoutToLocal, String bstrLastModified)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Library.SPRequest.CheckOutFile(String bstrUrl, String bstrWebRelativeUrl, Boolean bCheckoutToLocal, String bstrLastModified)
at Microsoft.SharePoint.SPFile.CheckOut(Boolean bCheckoutToLocal, String lastModifiedDate)
at Microsoft.SharePoint.SPFile.CheckOut()
at Qdabra.Dbxl.Domain.SharePointObjectModel.Save(SharePointListItemMapping mapping, SharePointDocumentData doc)
The stack trace was: at Microsoft.SharePoint.Library.SPRequest.CheckOutFile(String bstrUrl, String bstrWebRelativeUrl, Boolean bCheckoutToLocal, String bstrLastModified)
at Microsoft.SharePoint.SPFile.CheckOut(Boolean bCheckoutToLocal, String lastModifiedDate)
at Microsoft.SharePoint.SPFile.CheckOut()
at Qdabra.Dbxl.Domain.SharePointObjectModel.Save(SharePointListItemMapping mapping, SharePointDocumentData doc).