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

Question

Question

Forms only allows one submission at a time

asked on December 8, 2016 Show version history

I have a public-facing form to book inspections. After submitting the form, the user is automatically redirected back to the inspection form to submit another if necessary. Each time a form is submitted, the application is saved to the repository and a short workflow runs.

The problem is that it takes about a minute before the workflow runs and if I try to submit a second form (from the same PC or a different one), the 2nd submission is completely ignored and never shows up as a task. If I wait until it gets processed, the 2nd submission will submit correctly. I suspect this has to do with some sort of delay between our internal server and the web server running the public Forms installation; however, this is a big problem for us as it seems it can only handle one submission at a time.

Update: The Save Application to Repository task seems to be the process holding all of this up. It does save to the repository, but it takes nearly a minute to do so.

Update 2: If I run the process on the primary Forms server, there is no delay; even when I try to submit several forms very quickly, each of them run successfully and none fail to process.

0 0

Replies

replied on December 8, 2016

I'm not sure what the initial issue is, but you could create a simple HTML file that gets redirected to instead of the form. Add some JavaScript to the HTML file to delay using a setTimeout value and then after that value redirect to the Form. Not sure if it's the best solution, but in theory it should work.

1 0
replied on December 8, 2016

Thank you for the reply. Unfortunately, it's a little too long to have a user to sit and wait for (roughly one minute). Also, if another user submits an application during this period, theirs is ignored. I submitted two forms at roughly the same time, one from my phone, another from my PC. Only the first one came through despite the form submitting successfully on the client side.

0 0
replied on December 8, 2016

That doesn't sound right at all. I would open a help ticket with your VAR so they can look into it further.

0 0
replied on December 8, 2016

You should check the Event Viewer on the Forms Server to see if any errors are reported. That's usually where I start when troubleshooting.

Also, if you have any custom JavaScript on the inspection form, comment it out and try to see if you can reproduce the issue.  Typically, when storing the form to the repository takes a long time, it's because there are long-running scripts on the page, which Forms waits for before eventually timing out. Perhaps that is what is happening here.

It's also worth testing with a brand new Forms Business Process that contains a blank form.

1 0
replied on December 9, 2016

No Laserfiche errors are found on the public Forms Server nor primary Forms Server for unfortunately, aside from a couple failed login attempts.

I commented all of the JS (and verified no custom JS was running), but still no luck.

I created a BP from scratch with two processes: Save to Repository & an Email user task. I ran the form three times in succession but the same problem occurs--only one came through. As soon as I take that Save to Repository task out, the email comes in immediately and the tasks are created without issue.

I also ran the Save to Repository and Email tasks parallel to each other with no luck.

If I run the process on the primary Forms server, there is no delay; even when I try to submit several forms very quickly, each of them run successfully.

This is great feedback however, thank you.

0 0
replied on December 8, 2016

Are you using the "Automatically load the next task if the same person is assigned to it"? And you have save to repository service task between the message start event and the user task? Each of your submission should be processed but it may be some delay for processing the second submission. Please check whether the task will appear in the tasks list.

1 0
replied on December 9, 2016 Show version history

The "Automatically load..." open is disabled. Enabling this option didn't change anything either.

Yes, the Save to Repository task is in between the start event and the workflow task, but I've also tried in parallel without success.

It would be okay if there was a bit of a delay, but unfortunately, any submissions after the first are ignored (and never process). Only the submission after the first submission is saved to the repository actually gets processed.

0 0
replied on December 10, 2016

I'd recommend talking to your VAR so that they can open a support case. The issue seems more complex than can be resolved here. smiley

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

Sign in to reply to this post.