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

Question

Question

Forms not adding Template

asked on July 19, 2021

Hi everyone,
We are seeing an issue where Forms is saving an uploaded document and not setting the Template before trying to apply fields to the meta-data. This isn't that often, I've currently sitting with 4 suspended tasks.

 

On the form in question there are 3 upload fields, set to 250mb per field, allowing JPG, JPEG, PNG, BMP, and PDF. The middle Upload is the one that always gets stuck, on average the docs we are seeing get stuck are 200kb-500kb. It gets re-suspended on each retry, and with a full resubmission of the form from scratch with the same data.

I'm not able to find a reason for it, can someone give me some places to look at to help diagnose the issue?

I'm a full admin for the entire suite and each server. (if that helps)
We are running forms 10.4.4.444

0 0

Answer

SELECTED ANSWER
replied on July 20, 2021

You must resolve the error before a document can be created, and you must have a document before you can assign a template.

There is a tab called Variables which will allow you to see the value of all your variables. Check the value of the variable you have set for Date of Birth. It says that it is not a valid value, so it is likely not a date.

0 0

Replies

replied on July 19, 2021 Show version history

A suspension should always have an error log to go along with it. Check the box to the left of the instance and a small clip board should appear at the upper right, which gives the error details.

1 0
replied on July 20, 2021

Yes, the reason I didn't post the errors I'm getting in the monitor is because they are about the fields for meta-data not being applied because there is no template.

So not really helpful, I need to know why the template couldn't be applied and the log doesn't state that.

If you need to see it, this is the first part of it. This error is only around 70 lines, and only focuses on the fields in meta-data.

An error occurred during the execution of the Save to Repository service task. [LFF5426-ErrorExecuteSTR]

Details:
URL: 
Error: ErrorExecuteSTR
Date: 7/19/2021 8:59:33 AM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 562
Instance ID: 606965
Business Process Name: SR-Student Registration Document Upload-2020.7.24

Other:
Bad field value ('Document Type'): Another operation on which this operation depends failed. [9054]
Bad field value ('Document Description'): Another operation on which this operation depends failed. [9054]

 

This is not useful, because this would be the last error reported back to forms, and not the initial error that would be causing the Template not to be assigned.

Same with the event log on the server, I'm only seeing the error being posted for the 'bad field value'. Not seeing any errors for template issues, regardless of what is being set in the Save to Laserfiche step in Forms.

0 0
replied on July 20, 2021

I have experienced this issue a few times. In the majority of my cases, the "bad field value" indicated that a template field was not large enough to accommodate the text that was entered. Look through the error log and find the actual "bad field," then compare the field size/parameters to what was entered on the form and adjust the parameters if necessary. Then, retry the task.

0 0
replied on July 20, 2021

The documents that are getting generated in the repository have no template assigned to them. So most of the fields aren't there when they are being assigned values, hence the "bad field value". Each of the fields on the template that should be assigned are between 50-100 characters in width, the data being inserted is not getting close to that limit.

I found a previous post on here that dealt with what you are talking about, caused me to run in circles for a few days, the issue I'm experiencing doesn't seem to be the same.

0 0
replied on July 20, 2021

When I've seen that error it is usually indicative of not assigning a value to a required field.

0 0
replied on July 20, 2021

There should be more in the error message, where it tells you exactly which field is causing the problem and why. Can you post the entire thing. These errors are written in such a way that they are confusing to read and you must read the whole thing.

They will say "Another... Another... Another.. Another.." and then finally the real problem.

0 0
replied on July 20, 2021
An error occurred during the execution of the Save to Repository service task. [LFF5426-ErrorExecuteSTR]

Details:
URL: 
Error: ErrorExecuteSTR
Date: 7/20/2021 9:44:14 AM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 562
Instance ID: 596921
Business Process Name: SR-Student Registration Document Upload-2020.7.24

Other:
Bad field value ('Document Type'): Another operation on which this operation depends failed. [9054]
Bad field value ('Document Description'): Another operation on which this operation depends failed. [9054]
Bad field value ('Student ID'): Another operation on which this operation depends failed. [9054]
Bad field value ('Document Date'): Another operation on which this operation depends failed. [9054]
Bad field value ('Last Name'): Another operation on which this operation depends failed. [9054]
Bad field value ('First Name'): Another operation on which this operation depends failed. [9054]
Bad field value ('Middle Name'): Another operation on which this operation depends failed. [9054]
Bad field value ('Date of Birth'): Bad field value. [9017]
Bad field value ('Campus ID'): Another operation on which this operation depends failed. [9054]
Bad field value ('Campus'): Another operation on which this operation depends failed. [9054]
Bad field value ('Imported From'): Another operation on which this operation depends failed. [9054]
Bad field value ('Instance ID'): Another operation on which this operation depends failed. [9054]
Bad field value ('Submission ID'): Another operation on which this operation depends failed. [9054]
Bad field value ('Control Number'): Another operation on which this operation depends failed. [9054]

Stack Trace:
Caught exception: 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)
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)

Inner exception: Laserfiche.RepositoryAccess.MultiStatusException
Message: Multistatus response. [9039]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Bad field value. [9017]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
Another operation on which this operation depends failed. [9054]
   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)

 

Here is what the template looks like.

 

Just to reiterate the document is not getting assigned the template at all before it's assigning the fields. My understanding is that the template needs to be assigned before any fields are, is that wrong?

0 0
SELECTED ANSWER
replied on July 20, 2021

You must resolve the error before a document can be created, and you must have a document before you can assign a template.

There is a tab called Variables which will allow you to see the value of all your variables. Check the value of the variable you have set for Date of Birth. It says that it is not a valid value, so it is likely not a date.

0 0
replied on July 21, 2021

Yeah... I'm apparently blind in one eye and can't see out of the other.

The form was assigning a 6 digit number to the date of birth field, I hadn't set this form up.

 

Thanks for being patient, didn't know forms checked the fields before it assigned the data, was thinking it was in a different order.

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

Sign in to reply to this post.