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

Question

Question

The given key was not present in the dictionary Error Web Client

asked on June 24, 2019

I know this has been posted before but I have been seeing this message pop up after some of my users try to apply a custom Stamp. The document then gets locked and the only way to remove the lock is from the management screen by an admin. 

Here is the full error from the event viewer.

The given key was not present in the dictionary.
Operation: /laserfiche/DocumentService.ashx/SaveEntry
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.Standardize
  WebAccessServices.HttpHandlers.DocumentService.SaveEntry
  System.RuntimeMethodHandle.InvokeMethod
Exception details:
  Message: The given key was not present in the dictionary.
  Stack trace:    at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
   at Laserfiche.WebAccess.Common.Util.AnnotationUtil.ApplyAnnotationChanges(DocumentInfo entryInfo, PageInfo page, DocumentPageCache pages, AnnIDInfo annIDInfo, IDictionary`2 annIdMapping, IDictionary`2 annChanges, WebAccessSession waSession, String repositoryName, HttpContext context, List`1& changedAnnotationTypes, List`1& warnings)
   at Laserfiche.WebAccess.Common.Util.AnnotationUtil.SaveAnnotationChanges(String repoName, Int32 docID, WebAccessSession WASession, HttpContext context, List`1& changedAnnotationTypes, List`1& warnings)
   at WebAccessServices.HttpHandlers.DocumentService.SaveEntry(String repoName, Int32 documentId, Int32 curPageNum, String strCurPageId, MetadataChanges changes, GeneralChange[] generalchanges, AnnotationChanges[] annchanges)

  Session: jpngsmke

Its random and hard to recreate. Once I remove the lock and have the user sign out and back in, everything works normal. 

Web Client is at 10.4.0.309

Thanks for the help. 

 

 

0 0

Replies

replied on June 24, 2019

I was able to recreate the issue, this is the second message that goes with the first one. 

The given key was not present in the dictionary.
Operation: /laserfiche/DocumentService.ashx/SaveEntry
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.MakeWebServiceReturn
  WebAccessServices.HttpHandlers.BaseWAIHttpHandler.ProcessRequestInternal
  WebAccessServices.HttpHandlers.BaseWAIHttpHandler.ProcessRequest
Exception details:
  Message: The given key was not present in the dictionary.
  Stack trace:    at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
   at Laserfiche.WebAccess.Common.Util.AnnotationUtil.ApplyAnnotationChanges(DocumentInfo entryInfo, PageInfo page, DocumentPageCache pages, AnnIDInfo annIDInfo, IDictionary`2 annIdMapping, IDictionary`2 annChanges, WebAccessSession waSession, String repositoryName, HttpContext context, List`1& changedAnnotationTypes, List`1& warnings)
   at Laserfiche.WebAccess.Common.Util.AnnotationUtil.SaveAnnotationChanges(String repoName, Int32 docID, WebAccessSession WASession, HttpContext context, List`1& changedAnnotationTypes, List`1& warnings)
   at WebAccessServices.HttpHandlers.DocumentService.SaveEntry(String repoName, Int32 documentId, Int32 curPageNum, String strCurPageId, MetadataChanges changes, GeneralChange[] generalchanges, AnnotationChanges[] annchanges)

  Session: b3dc0qqv
 

0 0
replied on November 19, 2019

Hello Lucas,

 

Did you ever get a resolution to this.

 

I am seeing this in my LF 10.4.1 WC and we have a customer who is seeing the same issue in the WC 10.3.1 WC.

 

Thanks,

Jeff Curtis

0 0
replied on November 21, 2019

Hello Jeff, 

I'm not sure how we resolved it. I haven't seen this error in a while. 

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

Sign in to reply to this post.