The Laserfiche Forms 9.1.x Save To Repository Service Task Will Not Set Any Field Values On A Document If There Is One Invalid Field Value.

May 5, 2014 | KB: 1013481
Forms 9.1

Summary

See the following scenario:

  • A Save to Repository service task contains multiple field mappings.
  • When the process is completed, the resulting document in the Laserfiche repository does not have set field values.

The Windows Event Viewer will contain an entry from Laserfiche Forms Routing Service that looks similar to the following:

    Bad field value ('FieldName1'): Another operation on which this operation depends failed. [9054]
    Bad field value ('FieldName2'): Another operation on which this operation depends failed. [9054]
    Bad field value ('FieldName3'): The parameter is out of range or too long. [9020]
    Bad field value ('FieldName4'): Another operation on which this operation depends failed. [9054]
    Message: Multistatus response. [9039]
    The parameter is out of range or too long. [9020]
    Another operation on which this operation depends failed. [9054]
    Another operation on which this operation depends failed. [9054]
    The parameter is out of range or too long. [9020]
    Another operation on which this operation depends failed. [9054]
    Stack trace: at Laserfiche.RepositoryAccess.EntryInfo.Save()
      at Laserfiche.Forms.CommonUtils.LFHelper.SetValueToTemplateField(EntryInfo lfDoc, String template, FieldValueCollection fvs)

Cause

In the multi-status error response returned when setting multiple field values, look for error messages other than "Another operation on which this operation depends failed." In the above sample, "FieldName3" is associated with a "The parameter is out of range or too long [9020]" error. This issue can occur if the Forms service task is trying to set a field value that is greater than the width of the field definition for FieldName3.

Resolution

Do one of the following:

  • Make sure that Forms is not trying to set a field value that is incompatible with the mapped Laserfiche field.
  • Use the Laserfiche Administration Console to reconfigure the appropriate Laserfiche field to support the desired values sent from Laserfiche Forms.