RPA UiPath Frequently Asked – Interview Questions – Set 5

1. Suppose I have a folder full of files, with different formats .i.e .jpeg, .Mp4, .zip, and so on… How can I get only .zip files from that folder?

File management is inevitable in business process automation.

We might want to copy, move or delete files based on a few conditions…!!!
Let’s see how to get the specific type of files from a folder 

_myList = Directory.GetFiles(_folderPath,”*.zip”,System.IO.SearchOption.AllDirectories)

Note:
1. _folderPath is the folder path where you have your files
2._myList will be the variable containing your required files with all the .zip format
3. You can replace “*.zip” with your desired extension if wanted.

Example

Implementation using UiPath :

Let us implement a workflow that displays the names of particular files(.i.e .zip extension files) from a folder.

Step 1:
Drag the “Assign” activity into the design panel and populate it with your folder path
example: “C:\MyFolder”

Step 2:
Drag the “Assign” activity into the design panel and populate it with the above-mentioned code
example: “Directory.GetFiles(folderPath,”*.zip”,System.IO.SearchOption.AllDirectories)”

Step 3:
Drag the “For Each” activity into the design panel and pass the above “files list” variable to it.

Step 4:
Drag the “Message Box” activity into the For Each activity and pass the “item” value into it.

Step 5:
Finally!!!
when we run it, we can see the file names of .zip extension being displayed.

2. Suppose if I use the below codes:

Directory.GetFiles(“D:\SharathRaju\user\Documents\testenviroment\”,”t?st*.xlsx”) 

Which of the following files which be fetched?

1.test123.xlsx

2.test.xlsx

3.ttsttest.xlsx

4.tst.xlsx

Ans:

All the above will be fetched, except tst.xlsx because the question mark(?) in the code didn’t match with the file name, as all of them satisfy the conditions.

Asterisk (*) – replaces zero or more characters

Question mark (?) – replaces a single character

3. Have you ever converted Month number i.e 1,2,3,4… to month name .i.e January, February, March… and vise versa?

>>>> To convert month in number to month in the alphabet. we can use the GetMonthName function:


System.Globalization.CultureInfo.InvariantCulture.DateTimeFormat.GetMonthName(12)

The above will give us “December”

>>>> To convert month in the alphabet to month in number. we can use code snippet:

DateTime.ParseExact(“December”, “MMMM”, CultureInfo.CurrentCulture).Month

The above will give us “12”

Note:

Try to understand the functions being used it, we don’t have to remember the whole code but should be aware of different functions or methods that can actually help us at least.

4. How do you confirm if a given string is numeric?

Validations are something that we have to handle, while we are dealing with particular data.

Similarly in automation too, we check for different validations before performing any task.

The below function can be used to check if a string .i.e “1001”,”ey2”,”sharath” or “999” is numeric or it is not numeric!!!

_booleanResult = isNumeric(_input)

And the output will be a Boolean value.

Note:
1. _input is the argument to the IsNumeric Function
2._boolenResult returns the true or false value based on the input.

5. What is the minimum time required for project implementation in RPA?

I have personally worked on projects ranging from a week to 2 months depending on various factors.

Based on the complexity and scale of the project, the minimal amount of time needed for an RPA (Robotic Process Automation) project might vary significantly. While larger, more complex projects may take many months or longer to complete, smaller, simpler tasks could just take a few weeks like one or two including the post-live support.

The following variables may affect the minimal amount of time needed for an RPA project:

Project size: A bigger project that has to automate more actions and procedures will often take longer to finish than a smaller project and even the number of approval needed would add up the time.

The complexity of the processes and tasks being automated: If the processes and operations being automated are complicated or and doesn’t have the application stability would require more efforts, the project may take longer to complete.

Resource accessibility: The project’s completion time may be prolonged if the project team is overworked or if securing resources or permissions takes longer than expected.
So communication between groups or teams plays a major role.

The quality of the automation solution: A poorly planned, designed, or implemented automation system fail so it’s very important to build stable solutions and this may need more time to create and build automations, which might cause the project’s schedule to be extended sometimes.

In order to guarantee that an RPA project is finished within an acceptable amount of time, it is crucial to thoroughly plan and scope it with proper communication.

6. Suppose if I have three XAML files in my project as shown below. i.e. Main.xaml, login.xaml and logout.XAML

If i want to run logout.xaml to be executed first rather than main.xaml, when I click on RUN option

What changes should I make?

By default, all the UiPath projects are configured to execute main.xaml first whenever we try to run the automation.

But it can be changed by modifying the project.json file that is available to us for every project.

As we can see, the main field’s value is set to main.xaml and replacing it with logout.xaml and then saving the project.json file with allow us to achieve our expected output which is to launch logout.xaml instead of the default main.xaml whenever the project runs.(Note: Please use notepad to edit it and relaunch the UiPath studio if needed)

7. Can you please explain something about version control?

Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. It allows multiple people to work on the same files simultaneously and tracks the changes made by each person.

Version control systems typically have a central repository where all the versions of the files are stored, along with metadata about each version, such as the date it was created, the person who created it, and a description of the changes made.

There are several types of version control systems, including centralized version control systems and distributed version control systems.

In a centralized version control system, all the versions of the files are stored in a central repository, and users check out a copy of the files they want to work on, make their changes, and then check the files back in to the repository.

In a distributed version control system, each user has a local copy of the entire repository, including all the versions of the files. When a user makes changes to a file, they commit the changes to their local repository and then push the changes to the central repository. This allows users to work offline and to have a complete history of the project on their own computers.

Some of the version controls that the UiPath supports are GIT, TFS, and SVN.

8. Can’t we use just Python instead of RPA for automations?

Python and RPA (Robotic Process Automation) are two different technologies that are often used for automation tasks.

Python is a general-purpose programming language that can be used to build almost any type of software, including web applications, desktop applications, data analysis tools, and more, and can also be used for automation purposes. It is known for its simplicity, readability, and flexibility, making it a popular choice for beginners and experienced programmers alike.

RPA, on the other hand, is a type of software that is designed specifically for automating repetitive, rule-based tasks. RPA tools typically allow you to automate tasks by “watching” what a user does and then replicating those actions in the background. They do not require any programming knowledge, as automation is typically created by recording and replaying actions through a user interface, which can help us automate different applications like SAP, Web apps, Windows apps, and so on.

In general, Python is a more powerful and flexible tool than RPA, as it allows you to create custom software solutions from scratch. RPA is more focused on automating best suited for scenarios where you need to automate a series of predefined actions and build rapid solutions by using low code tools thus cutting down the development time.

Both Python and RPA can be useful for automating tasks, but they are best suited for different types of automation needs. If you need to automate complex processes or build custom software solutions, Python may be the better choice. If you are looking to automate simple, repetitive tasks, RPA may be the more appropriate option as it provides drag-and-drop functionalities.

specific tasks and is

9. How do you think the organizations used to automate manual tasks before the existence of RPA?

RPA, or Robotic Process Automation, is a relatively new technology that has only been around for a few decades. Before RPA, there were a variety of different approaches that organizations used to automate business processes. These approaches included using custom-developed software, Macro-based automations, scripts, Business Process Management (BPM) systems, and other tools to automate tasks that were previously performed manually.

One common approach to automating business processes before the advent of RPA was to use custom-developed software. This involved writing code to perform specific tasks, such as data entry or report generation. This approach had the advantage of being highly customizable, but it required a lot of time and effort to develop and maintain the software.

Another approach that was used before RPA was to use scripts to automate tasks. This involved using a programming language, such as Python or Bash, to write a script that would perform a specific task. This approach was generally easier to implement than custom-developed software, but it was still relatively time-consuming and required programming skills to develop and maintain the scripts.

Overall, there were a variety of different approaches that were used to automate business processes before the advent of RPA. However, RPA has become increasingly popular in recent years due to its ability to automate a wide range of tasks quickly and easily, without the need for custom software development or programming skills.

10. What is Uipath Orchestrator and its benefits?

UiPath Orchestrator is a web-based platform that enables organizations to deploy, schedule, monitor, and manage their UiPath Robotic Process Automation (RPA) processes and resources. It is a key component of the UiPath platform and provides a centralized, cloud-based environment for managing the entire RPA process.

Some of the benefits of using UiPath Orchestrator include:

Scalability: UiPath Orchestrator makes it easy to scale up or down the number of robots in use, depending on the needs of the organization.

Monitoring and control: UiPath Orchestrator provide detailed monitoring and control over RPA processes, allowing organizations to track the status of their processes and identify any issues that may arise.

Collaboration: UiPath Orchestrator enables organizations to collaborate on RPA projects by providing a centralized platform for sharing resources and information.

Security: UiPath Orchestrator includes robust security features, such as role-based access control and data encryption, to ensure that sensitive information is protected.

Integration: UiPath Orchestrator can be easily integrated with other systems and applications, making it easy to automate processes that span multiple systems.

Overall, UiPath Orchestrator is a powerful tool that helps organizations streamline and manage their RPA processes, enabling them to improve efficiency and reduce costs.

Leave a Reply

%d bloggers like this: