You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Forms Archive to Repository and Entry Lock

posted on November 7, 2024

When forms throws this entry lock message on save to repository:

The operation cannot complete because an object is locked. [9045]

Since it is creating a new document I don't understand what was locked. I thought you can only lock and existing entry from changes being made, not lock the ability to create new entries.

I verified they do not have any configuration of parent folder fields set.

Here is the full error details

Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An error occurred during the execution of the Save to Repository service task. [LFF5426-ErrorExecuteSTR]
   at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus, FormsHistoryContext& historyContext)
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)

Inner exception: Laserfiche.RepositoryAccess.LockedObjectException
Message: The operation cannot complete because an object is locked. [9045]
   at Laserfiche.RepositoryAccess.EntryLock.LockInternal(HttpUrl url, LockType type, LockExtent lockExtent, Dictionary`2 additionalHeaders, String etag)
   at Laserfiche.RepositoryAccess.EntryLock..ctor(EntryInfo info, Nullable`1 duration, LockExtent extent, EntryNameOption options)
   at Laserfiche.RepositoryAccess.Entry.MakeDocFolderWithLock(EntryInfo info, EntryNameOption options)
   at Laserfiche.Forms.CommonUtils.LFHelper.CreateNewLFDocument(Session lfDb, String newDocumentName, FolderInfo lfParentFolder, Boolean autoRename, String volume, String ext, Boolean AddExt, Boolean& checkOutVersionDocument)
   at FormsModel.RoutingModels.Services.SaveToLaserficheMetadataHelper.SetupRootDoc(Session session, XmlDocument datasetXml, STLConfigurationObj conf, SaveToLaserficheParameters saveToLaserficheParameters, SaveToLaserficheDocument documentToBeSaved, Boolean isActionHistory, Boolean& documentCheckedOut)
   at FormsModel.RoutingModels.Services.SaveFormToLaserficheStrategy.SaveMainFormToLaserfiche(Session session, XmlDocument datasetXml, STLConfigurationObj conf, SaveToLaserficheParameters saveToLaserficheParameters)
   at FormsModel.RoutingModels.Services.SaveFormToLaserficheStrategy.SaveToLaserfiche(Session session, XmlDocument datasetXml, List`1 STLConfigList, SaveToLaserficheParameters saveToLaserficheParameters)
   at FormsModel.RoutingModels.Services.SaveToLaserficheHelper.OpenSessionAndSave(IEntityContext _AppContext, Int32 STLRepositoryId, LfProfileType profileType, List`1 STLConfigList, XmlDocument datasetXml, ISaveToLaserficheStrategy saveToLaserficheStrategy, String timeZone)
   at FormsModel.RoutingModels.Services.SaveToLaserficheHelper.SaveToLaserfiche(IEntityContext _AppContext, Int32 STLRepositoryId, LfProfileType profileType, List`1 STLConfigList, XmlDocument datasetXml, ISaveToLaserficheStrategy saveToLaserficheStrategy, String timeZone)
   at Laserfiche.Forms.Routing.SaveToLaserficheService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus, FormsHistoryContext& historyContext)

 

0 0
replied on November 7, 2024 Show version history

It could be a lock on one of the folders in the path. Laserfiche will lock folders in the specified path if higher level folders are being moved.

2 0
replied on November 7, 2024

Oh that could explain it, thank you!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.