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

Question

Question

Inner exception: Laserfiche.RepositoryAccess

asked on March 17, 2021 Show version history

Please Help on this error. it is intermittent error.

 

Search results for "Inner exception: Laserfiche.RepositoryAccess.MultiStatusException Message: Multistatus response. Another operation on which this operation depends failed. Another operation on which this operation depends failed. Another operation on which this operation depends failed. Bad field value. Another operation on which this operation depends failed. Another operation on which this operation depends failed. at Laserfiche.RepositoryAccess.EntryInfo.Save() at Laserfiche.Forms.CommonUtils.LFHelper.SaveDocWithRetry(EntryInfo lfDoc) at Laserfiche.Forms.CommonUtils.LFHelper.SetValueThenTemplate(EntryInfo lfDoc, String template, FieldValueCollection fvs)"

0 0

Replies

replied on March 18, 2021

This error is often because a field value was invalid. Add logic to catch this exception and call GetBadFieldValues() on the entry. This returns a collection of BadFieldValue objects which contain the name of the invalid field and the error code.  Sample code:

try
{
    entry.Save();
}
catch (MultiStatusException ex)
{
    ReadOnlyCollection<BadFieldValue> badValues = entry.GetBadFieldValues();
    foreach (BadFieldValue badValue in badValues)
    {
        string errorMsg = $"Field {badValue.ObjectName} error: {badValue.ErrorCode}";
        Console.WriteLine(errorMsg);

        if (badValue.InnerException != null)
            Console.WriteLine($"InnerException: {badValue.InnerException}");
    }
}

 

0 0
replied on March 18, 2021

Looks like I misread the error, this comes from Forms (I thought it was your SDK application). Check the event log for other errors near this one.

0 0
replied on March 22, 2021

Hi Maxwell,

Could you share completed message of this error? It should contain specific bad field value and may give out some hints.

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

Sign in to reply to this post.