Hi,
I am pretty new to UiPath and would love some support… I am currently Trying to get file path from a form But whenever i close the form, it boots the browse file again… and then gives me an error because the form is already closed and cannot find a form to assign Values.
So my question is:
Why is it booting the Browse File again?
And how could i fix it?
Hi @juan.porras1,
Here is my Main Sequence which opens the form, then if i click on Get file Path button it triggers the Browse For File and when i submit… Well that’s when it closes the form and triggers AGAIN the browse for file… Which is problematic the second time.
Browser for file is triggered separately…and not with forms…so…you need to display the form again after browse for files if you need the form to be present…and in set form values if you are trying to set a filepath then as the form is already closed when submitted and no form is present it would fail
Three ways…one as said above instead of set values tey with show form again….
Or on click of submit do not close the form…that you can change on the button properties
Or you can include browseas well in the form embedded
Please, can you explain to me what you mean by including the browse file in the form embeded^ I am pretty new to UiPath and do not understand everything yet.
Instead of having a browse for file activity…you can include that functionality in the form itself…the link provided ahows you how to include the control you need
Get form values will get the value from the from…for each component there will be an argument that is created you just need to link it to variable in get form values
Hi @Anil_G,
I do not think the HTML automatically makes a argument… Which is my concern right now. i can’t seem to get the file path out of the form by using an HTML Component.
Like you posted, my button is the same. So I opened your project as new, and tryed it. And just like I described in my first post, Once I press submit, it closes the Form and then cycles the sequence inside the trigger scope again which Cycles the Browse For File Again but the Form is already Closed…
Here are the steps as it happens (maybe it’ll help to understand better my problem…):
1- MAIN Sequence
2- Show Form
3- Enters Trigger Scope
4- Waits at Local Trigger
5- I Click Get Path
6- Starts Sequence (Inside Trigger Scope)
7- Browse For File
8- Popup for browsing
9- I choose the PDF and press Open
10- Sets Form Values
11- Backs out to Sequence (Inside Trigger Scope)
12- Waits on other input
13- I press Submit
14- It closes the form
15- Starts Sequences (inside Trigger Scope) {!WHY THE HECK DOES IT START THE SEQUENCE BACK?!}
16- Goes to Browse For File
17- Pops Browser for the File
18- Even if I choose the file and press open again
19- It cannot do Set Form Values because the Form is now Closed…
Why is it doing this? Is it my software? I do not understand anymore…
After setting the form values, you need a break activity at the end of the trigger scope activity. This will end the cycle of triggering the browse for file after submitting.
I had the same error scenario, and I suspect it is considering the prior button click as a false positive.