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

Question

Question

Process Insights Reports locked

asked on January 23, 2020

We recently updated to Forms 10.4.2.381 and were excited to start playing with the new Process Insight Reports. However, we've noticed that sometimes when we pull the report and then click on the details to see the specific instances some of the instance status' are "Locked". And even though the report is filtered for "this month" it is showing a few instances from back in August 2019? Has anyone else seen this or knows whats causing it?

 

Also, it would be nice if we could go back further than January 2020 in these reports :)

0 0

Replies

replied on January 24, 2020

Hi Cassandra, thanks for reporting the issues. Which insight chart did you find the issue? By instance status are locked, do you mean on the right detail pane, the instance link was disabled? If possible, do you mind sending a screenshot?

0 0
replied on January 24, 2020 Show version history

This one was the Workload report (see attached screenshot). If we close out of the instances list and then reopen the "locked" instances will be back to normal (completed/in progres...) and the August instances will be gone. Sometimes we have to close/reopen a couple of times before if is corrected.

0 0
replied on January 24, 2020

Sorry, attached screenshot here.

Laserfiche Insight Report Error.png
0 0
replied on January 24, 2020

Thank you for the information! We will try to reproduce the issue on our side and investigate the root cause.

1 0
replied on February 28, 2020

Hi Cassandra, a quick update: this issue has been passed to development team. For now, if you want to get rid of the lock status, you could try the following two workarounds:

  • Find out the instances contain the locked tasks from instances list, open the instances details and reassign the task to another user then reassign back to the original user, the original user can submit form again to complete the task.
  • Find out the instances contain the locked tasks from instances list, use the new skip action in Forms 10.4.2 to skip those locked user tasks to move to next step.
0 0
replied on February 28, 2020

Thank you for the update! Just some additional info for the dev team:

We've found that the tasks that are locked were in instances that have already been completed (we have not continued to verify this once reporting the issue). It's why we were so confused they were showing status locked.

 

Please let me know if you'd like us to do further testing to assist.

0 0
replied on October 10, 2023

Is there a SQL query we can run against the Forms database to find all Locked tasks?

2 0
replied on June 5

Reviving Blake's question, as I ran into this recently as well.  Unfortunately, the instances were manually resolved so I can't do this anymore however I assume it's the values within [LF_Forms].[dbo].[cf_bp_main_instances].[status] driving that. I don't have any broken ones left, however if you sort by status in SSMS, I would think there is a numeric value that represents the status of "locked".  Any chance anyone from Laserfiche could confirm and identify the value so I could query to determine any broken instances in the future?

0 0
replied on July 29

I just ran across some more instances today that had a status of locked. I took a screenshot that shows they have been locked since 1/9/2025 (last assigned date). It would be extremely helpful if there was a built-in report to find these or process to take care of them automatically.

1 0
replied on August 1 Show version history

What is the numeric value of the locked status in the database?

How do I run workload report on all instances filtering by locked status?

How do I get notified when a task enters locked status permanently?

If the user has already completed the task, rather than restarting it, how do we move the process forward?

Why do the processes show In Progress and the Tasks Status in the process just shows Assigned if it is actually locked?

Process Tab

Tasks Tab

1 0
replied on August 3

Locked user task has status = 2 in db table [cf_bp_worker_instnc_to_resume].

"If the user has already completed the task, rather than restarting it, how do we move the process forward?" - can you please check there is any entry in db table [submission_recovery]?

We didn't intend to expose the locked status in Forms site as user tasks are not expected to be locked. It could happen if task was submitted when routing service was stopped, but once routing service was back, it should auto recover the submission and mark the user task completed.

So we would show locked user task as in progress/assigned. The one showing locked was likely not handled properly.

If you have encountered cases that user task would be locked even when routing service was operating normally, please let us know.

0 0
replied on August 4

For us, this probably happened when we were restarting the Routing service, but the submissions did not auto recover as you said should happen. I ran the query on the [cf_bp_worker_instnc_to_resume] table, and I got back 24 rows, some of them dating back to 2024.

We do not have any entries in the [submission_recovery] table.

In this case, I am glad that you are showing the locked status or else we would never know that something wasn't working.

0 0
replied on August 4

I have gone through all the ones I received back from the [cf_bp_worker_instnc_to_resume] table with a status of 2. 4 of them are on a Workflow Task step and 2 of them have instances that show as completed and so do all the steps. For the 2 that show completed, there are 2 terminated user tasks that were restarted. How do I correct these?

0 0
replied on August 4 Show version history

I found many rows by searching for status=2 in the database, however when I search the task or instance pages for worker_instance_id or last_submission_id I don't get any results.

I do not see a column which tells me the name of the process or the process ID the task is locked under.

There is a column which shows Due Date though so I could search for Due Status Overdue and reduce the results to under 3,000 and sort by status.

However when I sort by status it is surprisingly not sorting alphabetically so I can not group the locked tasks.

When you sort by a column, what is it sorting by that would put I before L and after? By sorting this way, the locked tasks are spread all over the report.

We are encountering cases with locked tasks when the routing service is operating normally but in our case only in this specific build 12.0.2503.10378. Both customers reporting this have the same build.

0 0
replied on August 5

If the [cf_bp_worker_instnc_to_resume] is linked to an worker instance that has moved on, or not linked to a valid instance, then this entry should be of no use.

As for sorting, locked is just treated as in progress; we did not expect that the "locked" status would show on this list. We could support it if it is indeed needed.

I tried reproduce the issue for both user task and workflow service task, however it should not happen if both forms and routing service function normally.

I could only suspect that error happened on routing service processing the submission request, so it consumed the recovery data but failed to set the status.

If you see the issue happen frequently, can you please turn on debug log to collect info and errors, and open a support ticket with the logs? Thanks.

0 0
replied on August 5

Rui, thank you for that information. How would I correct the ones I mentioned previously? I don't want to just leave them because that makes creating a report to find these that much harder.

0 0
replied on August 5 Show version history

It's better to first check if there is any related entry in [cf_bp_instance_approvers] table, and if there is any, make an archive by inserting same data in to [cf_bp_instance_approvers_archive] table and delete the original one.

Then perform similiarly on the [cf_bp_worker_instnc_to_resume] entry, archiving it into [cf_bp_worker_instnc_to_resume_archive] table with [archive_reason]=2.

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

Sign in to reply to this post.