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

Question

Question

Save to Repository step is not working on my process

asked on December 12, 2022

I have created a new process and I have started to test this process, The error I am receiving is at the save to repository step.

I have provided the right save location details, however the process always suspends at this stage. This is the first save to repository step in this process. The form is not getting saved in the temporary location which I have provided.

The temporary location is the same location I have used in all other process for the form to be saved before a input is provided to create a seperate folder for the request. It works in every other process but not in the new process I created.

I have attached the screenshots of the error and save location details of save to repository step.

In save setings I have tried both options, 1. save the submitted form from this process step and 2.save a form with current process data

I get the same error always only for this process. My Main concern is , its not even getting saved in the repository, the other processes which use the same repository is all working fine. The initial location for other processes is the same Temporary folder, but it has a different sub folder, because its a different request and I have mentioned the right location in the save location step.

Kindly advise how I can fix this error.

Image1.JPG
image2.JPG
image3.JPG
image4.JPG
image5.JPG
Image1.JPG (114.18 KB)
image2.JPG (153.06 KB)
image3.JPG (164.22 KB)
image4.JPG (156.81 KB)
image5.JPG (107.75 KB)
0 0

Answer

SELECTED ANSWER
replied on December 13, 2022

Is there Javascript in your form? If so, try removing it and see if that makes a difference

1 0
replied on December 13, 2022

That worked Steve, thank you very much.

I did have a javasript to rmeove the comments section from the form. I removed this and the task is proceeding to next steps and not getting suspended. 

I removed this javascript without hesitation because it was not working either. I could still view the comment box on the form.

Do you have a solution to remove the comment box from laserfiche forms?

Please assist. 

Thank you

1 0
replied on December 13, 2022

I noticed removing the custom JS resolved the STR issue for you. Any uncaught exceptions thrown on the page will cause STR to suspend, so make sure your custom JS is safe. 

Some Notes: 
Is your form using the New form designer or the Classic form designer? The new form designer has its own set of API and does not contain jQuery for free DOM manipulation, and thus you cannot modify the form like in classic form. 

On the classic form you can hide the comment section like so: $('.comment-section').hide().

0 0
replied on December 13, 2022

Hi Joey,

Am using the new form designer, is there a way to remove the comment box on new form designer? could you help me with the code please.

thank  you.

0 0
replied on December 13, 2022

For new form, try custom CSS if you just want to always hide the comment section. 

Form > Theme > CSS

 

#comment-container {
    display: none;
}

1 0
replied on December 14, 2022

Hi Steve,

I came across this error again but this is at the last stage, and it gave me the same error. however I have removed all javascript on the forms, the only code I have is on theme >css. I dont think this theme setting affects because in the previous stages the files were saved in repository.

Does this have anything to do with the save location details. I have not provided a folder ID, I have mentioned the additional path.

I have attached the screenshots , kindly advise.

 

Image10.JPG
image11.JPG
image12.JPG
Image10.JPG (170.74 KB)
image11.JPG (127.29 KB)
image12.JPG (160.37 KB)
0 0
replied on December 14, 2022

Hi Pallavi, 

May I see your JavaScript and CSS section?

Your form is reporting the following error: 

Error: Uncaught Exception: Error: SyntaxError: Private field '#comment' must be declared in an enclosing class

0 0
replied on December 14, 2022

When testing your form for STR task. One tip is to open the form during preview mode or User Task runtime, and open the Developer tools from Chrome (press F12). Then inspect if your see and red exceptions. 

0 0
replied on December 14, 2022

Hi Joey, 

Thank you for the quick reply.

No I am not uploading .png files, but still am getting the error. the error has reoccurred

here is the  CSS section screenshot and Javascript is empty. I do have a custom HTML. 

let me know if this is an issue?

thank you.

image13.JPG
image14.JPG
image15.JPG
image13.JPG (222.16 KB)
image14.JPG (217.24 KB)
image15.JPG (176.02 KB)
0 0
replied on December 14, 2022

Hi Joey, 

I am not very familar with coding so I dont know how to debug the red exceptions.

kindly advise.

thank you

0 0
replied on December 14, 2022

Hi Pallavi, 

The CSS I provided does seem to work with STR based on my internal testing. Your setup looks OK. Could you try publishing your process and run a new instance to test? Was your failure from old versions and you are re-trying?

0 0
replied on December 14, 2022

Hi Joey, 

I published the process and am still receiving the same error. Does it have anything to do with the save location details?

 

image16.JPG
image16.JPG (160.54 KB)
0 0
replied on December 14, 2022

It's still reporting the following error: 
Error: Uncaught Exception: Error: SyntaxError: Private field '#comment' must be declared in an enclosing class\n" +

Could you confirm all the forms in the process has custom JS removed? Especially anything that references '#comment' Make sure you check the correct form from the step that' used. As a last resort, try removing the CSS I provided as well. 

 

 

0 0
replied on December 14, 2022

I forgot to remove custom JS on two forms, its removed now and am no longer receiving the error. Thank you Joey. I have added the CSS you provided and its not causing any error.

Thank you so much.

0 0
replied on December 14, 2022

however I do have a task which is stuck in draft stage in my taks list. This task is already complete. how can I remove this? 

image17.JPG
image17.JPG (122.16 KB)
0 0
replied on December 14, 2022

That is a bug that we are currently working on fixing for the next cloud release (405074). It happens when you use the New Form and submit it too quickly many times, causing a dangling draft. If you wish to remove it, please open a support ticket as we need access to your account. 

0 0
replied on December 14, 2022

Sure I will. thank you Joey

0 0

Replies

replied on December 13, 2022

Hi, 

Is your form being saved using a File Upload field with display images, and having .PNG file type uploaded? If so, this is a bug we are currently working on deploying tentatively this Thursday. 

1 0
replied on December 12, 2022

I'd suggest you turn off Generate Pages for your attachments first to see how that affect things. If the Document is a PDF and has security applied to it, that might impede it from processing the attachment. Also check that you have security access to the folder and Metadata fields. Try processing a form without the attachment to see if the behavior changes.

0 0
replied on December 12, 2022

Hi Steve, 

Thank you replying.

I did try with turning off the page generation and without attaching any files. Its not saving the laserfiche form. I have full access to the temporary folder and there is no metadata fields applied to it. Its so unusal because, even with turning off the laserfiche pages, I get the same error. Its unusual because every other process is functioning without this error. I have attached the error screenshot with turning off the page generation. Kindly advise.

image6.JPG
image6.JPG (155.53 KB)
0 0
replied on December 12, 2022

Does the ProcessAutomationUser have access rights to the Temporary folder? That is the what the BP would use for rights to save to the folder.

0 0
replied on December 13, 2022

Where do I check to find this out? As far as I know , I have admin rights and I can create new/edit/delete process and I have access to all folders in the repository.

0 0
replied on December 13, 2022

In the Repository, at the top level, under Show Security, add the ProcessAutomationUser and set the Scope to This Folder, SubFolder and Documents and give them full rights as you would any user/group.

This should give your Process Automate BP's and Workflows all the rights they need to be able to perform actions in the Repository

0 0
replied on December 13, 2022

Hi Steve, 

I have added the process automation user to access the repository, however the task is still getting suspended at the stage save form and attachments. I receive the same error. Kindly advise.

image7.JPG
image8.JPG
image9.JPG
image7.JPG (65.24 KB)
image8.JPG (121.47 KB)
image9.JPG (143.43 KB)
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.