Hi everyone,
I have created a small project, in which a Notepad is opened and a specified text is printed and later saved.
In this i have created manually(without using recorder). But there is an problem it seems, i have specified to press save button but the root is actually not able to do that.
The same i have created using desktop recording, which is working fine. I have compared both of them. Even the selectors are same in the case of desktop recording and manual one but don’t understand where the problem is??
Help me out!!! I am sharing the file which i have created.
Note*** the file contains two tabs ,the tab named main is manually created one and the tab named sequence is desktop recorded.
I hope, you know the activities available to write a text file instead of doing all this you mentioned. Why don’t you save the file using that activities?
Coming to the file attached, project.json is not enough to open the workflow. You need to attach the corresponding xaml file
@HareeshMR,
Yes i am aware of the ‘write text file’ activity, but i am a starter and just practising, just want to know whats the error is compared to recorded one? this is my first trial of a project.
I have added the Xaml Files also: project.json (753 Bytes) Main.xaml (12.8 KB) Sequence Trial.xaml (11.6 KB)
The issue is , you are using close application to close notepad, so it will close the application and then executes the next steps. So, instead of close application, try using the click on the cross to close so that it will click on the close window and executes the next steps.
@HareeshMR ,
can you tell me how can i dynamically update the file name while saving. For example the first file should be “demo1”, next one should be “demo2”, next “demo3” and so onn…
Create a integer variable and assign value as 1… Then in for loop, use path exists activity as “demo” + count.tostring variable, if path exists, then increase the variable value by 1. Again check until the path does not exists.
what should be the condition in for loop?
And i am placing this foor loop in the attach window’ notepad.exe save as’
created a varible named ‘variable1’.
@HareeshMR, First of all, I have a file saved with name Demo1, on my desktop.
Before the DoWhile loop , i can see you have assigned count as 1 & PathExist = False, this is fine.
then ,in the Dowhile Loop, you have incremented the count value by 1 and stored it in count, this is also fine
In the next step path exists You have specified path as “D:\UiPath\notepad automation\Demo” + count.ToString + “.txt” , for which the path exists checks if there is any file available or not (In this, My doubt is (1). the path which u specified doesn’t have any file and even if i change the path it is not showing any effect.)
In the if condition if the pathexsists is false it should create a new demo file with name as demo2, right? (My doubt here is (2). In the previous step we have updated the count value by 1 so it should be demo2, but even the demo 2 file is not getting saved in the specified location(even after me creating a new folder in specified location )
and one more thing as we are incrementing the count value the pathexists sholuld always be false that means new files with names as demo 2, demo3, etc should continue but this is not happening. and the file should get saved in D drive, right? even this is not happening.
pls correct me if i mis-understood First of all, I have a file saved with name Demo1, on my desktop.
Below are the responses i am getting when i run the program file shared by you.
Everything is correct bro. What you understand is also correct.
First of all, I would like to clear you one thing.
In the first file which you are referring to , I have used the do while loop after saving the file because, I hope you will understand the flow and create your own workflow using the same. But you just ran the same. That’s where all the confusion starts.
for Doubts…
The path I gave is in my local. So you have to replace the path with yours
This is due to the above explanation.
If you use the recent workflow i attached today, you will clearly understand the flow.
The recent workflow I attached has the activities in sequence and if you run that, your filename will be changed automatically. @murali.s
@HareeshMR
Thanks for the help, but i did not receive your recent work flow. and btw i will create my own workflow and try analysing it. Thanks once again!!!
@murali.s,
No problem, Contact me at any time or even you can message me directly
And I’m learning UiPath from last 8 months and I find many oppurtunities for a certified RPA developer. So, we need to complete the academy exercises and RPA certification as early as possible.
Thank You so much @HareeshMR, you have given a new boost to my dreams, I will complete the certification as well!!! Yo were so helpful, Thank you once again!!!