Modul 6 Debugging Error Handling
Modul 6 Debugging Error Handling
Academy
Trainer Kelas 6
Tsabita Al Asshifa Hadikusuma
Kris Sujatmoko
Lead Instructor UiPath Academic Alliance
T.081322880881
Modul 6:
Debugging & Error Handling
Debugging a
Workflow
• Automation debugging
• Troubleshoot, Debug, and Modify processes
• Debugging actions
• Setting breakpoints
• Logging
• Logging levels
• How to do logging?
Automation Debugging
Debugging is the process of identifying and removing the errors which prevent the project from
functioning correctly. In UiPath Studio, debugging is
Breakpoints
• Used when the user wants to pause the debugging process at a
specific activity that might be causing execution issue
• Used to check the state of a project at a given point
Logging
Logging is the process of keeping logs of various events that occur during project execution. There are
three types of logs:
Studio Logs
Robot Execution Logs
• Diagnostic log messages generated by Studio
regarding its behavior
Robot Logs
• Diagnostic log messages providing information
related to the Robot and its context
Generated by default Generated according to
Default when the execution of a
User- the process designed by
Logs project starts and ends Defined the user in Studio
Orchestrator Logs Logs
• Diagnostic log messages generated by
Orchestrator regarding its behavior
Logging Levels
There are six levels of logging:
Verbose
Critical Level Error Level Warning Level Information Level Trace Level
Level
Indicates critical Indicates errors Indicates events To know the To collect To log message at
issues wherein a after which a that may have an progress of a information for activity start and
robot may not robot retries for adverse impact on a robot at each developing or end, plus values of
recover and stop recovery and robot’s performance stage of debugging the variables and
working moves on execution arguments
How to do logging?
Logs are applied using the Log Message activity.
1 3
Fatal (Critical) Log Message Warn Log Message
2 4
Error Log Message Info Log Message
• Display a message to the user, showing the available balance in his bank
account and log this action at Info level.
• Ask the user to enter the amount he wants to withdraw and log the response
at Info level.
• If the requested amount is greater than the available amount, then
• Log an error message, “User does not have enough amount”.
• Display a message to the user, “You are trying to withdraw more than
the allowed amount.”
• Log a fatal error message, “Invalid amount entered. Process
terminated.”, and terminate the process.
• If the requested amount is less than the available amount, then
• Display a message to the user, “Your remaining amount is $x”.
• Log an Info level message “Remaining amount displayed to the user”.
Error Handling
• Errors and Exceptions
• Error handling activities
• Global Exception Handler
Errors and Exceptions
Errors are events that hamper the regular execution of the program. Based on their source, there are
different types of errors:
Errors Exceptions
Errors are events that hamper Exceptions are a subset of
the regular execution of the errors that are recognized
program. Based on their (caught) by the program,
source, there are different categorized and handled.
types of errors: The two types of exceptions
• Syntax errors are:
• User errors • Application (System)
• Programming errors (bugs) Exception
• Business Exception
Error Handling Activities
Error handling is the mechanism for identifying and addressing the errors in a program. Some of the
important error handling activities are:
Error
Handling
Activities
Throw Rethrow
Throws a user-defined exception Takes an existing exception that has been
encountered and regenerates it at a higher
level
Error Handling Activities (Contd.)
Terminate Workflow
Terminates the workflow when the
task encounters an error
Global Exception Handler
The Global Exception Handler is a type of workflow designed to determine the behavior when
encountering an execution error at the project level.
Debug tab
1. Activate Picture in
Picture mode
2. Run the process
UiPath Assistant
1. Open Context Menu
of a process
2. Click Start in PiP
Best Practices
• Best practices to build a project
Best practices
The best practices for building a good project are:
Analyze the process thoroughly, identify the requirements and plan accordingly
Break the process into smaller workflows for a better understanding of the code, independent testing, and reusability
Group the workflows of the project into different folders based on the target application
Use libraries for creating and storing reusable components for the projects
Use logs in production to get relevant information regarding critical moments, or when specific data is needed
Pengantar Debugging Otomasi
• Debugging Otomasi
• Aktivitas Debugging
• Panel Debugging
• Masalah otomatisasi umum
Debugging Otomasi
Proses mengidentifikasi dan menghapus kesalahan yang mencegah proyek berfungsi dengan benar.
Di Studio, debugging adalah
Berguna untuk
memverifikasi data yang Dilakukan pada
didapat setiap aktivitas tingkat aktivitas,
selama eksekusi file, & proyek
Dilakukan dengan
menggunakan opsi yang
tersedia di Ribbon
Debug Digunakan untuk menemukan
& menemukan masalah
dengan mudah dalam alur
kerja yang kompleks
Aktivitas Debugging
Aktivitas untuk debugging adalah:
Abaikan Istirahat
7 Abaikan pengecualian & eksekusi 10 Jeda debugging, aktivitas tetap
disorot, gunakan Continue untuk
dari aktivitas berikutnya untuk
men-debug alur kerja melanjutkan debugging
Breakpoints
• Digunakan ketika pengguna ingin menghentikan sementara proses debugging pada aktivitas
tertentu (yang menyebabkan masalah eksekusi)
• Pengguna mengidentifikasi & mengoreksi kesalahan
• Melanjutkan
Panel Debugging
Berbagai panel untuk debugging adalah:
01 02 03 04 05
Panel Penduduk
Setempat
• Menampilkan properti
atau aktivitas & variabel &
argumen yang ditentukan
pengguna
• Hanya terlihat saat
debugging
Panel Tumpukan Panggilan
Panel Breakpoints
• Breakpoints menjeda debugging
pada aktivitas yang
menyebabkan masalah eksekusi
• Menampilkan semua breakpoint
dalam proyek saat ini
• Pengaturan Breakpoint:
disesuaikan secara individual
untuk setiap bagian breakpoint
yang diaktifkan
• Kondisi
• Hit Count
• Pesan Log
Panel Pengamat
Panel Pengamat
• Menampilkan nilai variabel,
argumen, ekspresi yang
ditentukan pengguna dalam
ruang lingkup
• Hanya terlihat saat debugging
Panel Langsung
Panel Langsung
• Digunakan untuk memeriksa
data
• Mengevaluasi variabel,
argumen, pernyataan
• Hanya terlihat saat debugging
Masalah Otomasi Umum
Beberapa masalah umum yang terjadi dalam proses otomatisasi adalah:
Berisi semua aktivitas dasar Berisi semua aktivitas dasar Memungkinkan pengguna Berisi aktivitas yang
yang digunakan untuk yang digunakan untuk untuk dengan mudah membantu pengguna untuk
membuat proyek otomasi & membuat proyek otomasi & mengotomatisasi proses menggunakan API Google,
memungkinkan robot untuk: memungkinkan robot untuk: untuk manajemen & IBM, Stanford, dan Microsoft
• Memanipulasi tabel data • Mensimulasikan interaksi pemeliharaan mesin virtual & memungkinkan robot
• Berinteraksi langsung manusia Citrix sesuai permintaan untuk:
dengan direktori & file • Melakukan otomatisasi melalui hal-hal berikut: • Menerjemahkan teks dari
gambar & teks • Server baru dari templat satu bahasa ke bahasa
• Membuat pemicu berbasis • Opsi untuk mengambil lain
perilaku UI Screenshot mesin virtual • Mengekstrak informasi
• Melakukan interaksi • Mulai ulang, yang relevan dari sepotong
peramban nyalakan/mematikan daya teks yang diberikan
Panduan Aktivitas UiPath
Berisi aktivitas yang bekerja Berisi kegiatan yang Berisi aktivitas yang Berisi aktivitas yang
dengan Windows Credential membantu pengguna untuk memungkinkan pengguna memfasilitasi otomatisasi
Manager & memungkinkan mengotomatisasi semua untuk: tugas-tugas yang
pengguna untuk: aspek Microsoft Excel & • Membuat formulir input berhubungan dengan surat &
• Menambah & menghapus memungkinkan pengguna khusus (untuk memungkinkan pengguna
kredensial untuk paket untuk: mengumpulkan data dari untuk:
autentikasi Microsoft • Membaca informasi dari pengguna manusia) • Kirim, terima, hapus email
tertentu sel, kolom, baris • Menampilkan pesan • Kirim lampiran
• Ambil kredensial • Menulis ke spreadsheet panggilan khusus
lain
• Mengeksekusi makro
• Mengurutkan data &
menambahkan informasi
tambahan
Panduan Aktivitas UiPath
Berisi aktivitas yang dirancang Berisi aktivitas yang dirancang Berisi aktivitas yang
untuk mengekstrak data dari file untuk terhubung ke terminal & memungkinkan pengguna untuk:
PDF & menyimpannya ke dalam bekerja secara efisien di • Melakukan permintaan
variabel string & memungkinkan dalamnya & memungkinkan
menggunakan protokol tertentu
pengguna untuk:
pengguna untuk: ke API web apa pun yang
• Mengambil teks, bidang
• Mengekstrak data dari seluruh mendukungnya
• Posisi layar, tombol kirim, teks
dokumen atau rentang • Tunggu teks atau bidang • Memanipulasi file XML dan
halaman (properti Range) tertentu muncul sebagai JSON
• Gunakan aktivitas berbasis pemicu • Mengotomatiskan berbagai
OCR untuk mengekstrak data • Terhubung ke lingkungan komponen perangkat lunak
dari dokumen yang dipindai tertentu menggunakan aktivitas dengan sedikit usaha
Terminal Session
(menggunakan API)
Panduan Aktivitas UiPath
Python Sales Force SAP BAPI OCR Layar Landasan Alur Kerja
Memungkinkan pengguna Memungkinkan pengguna Memungkinkan pengguna Menawarkan OCR berbasis Menyediakan
untuk memanggil skrip & untuk mengotomatisasi untuk terhubung ke sistem pembelajaran mesin untuk fungsionalitas untuk aliran
metode Python dalam alur proses Salesforce SAP & menggunakan layar kontrol, penanganan
kerja apa pun langsung dari (manipulasi file & catatan, aktivitas Invoke SAP BAPI peristiwa, & berkomunikasi
UiPath eksekusi laporan) dengan aplikasi dan
layanan
Panduan Aktivitas UiPath
Layanan Domain VMware Layanan ML Omni Page OCR Word Visi Microsoft
Direktori Aktif
Layanan Web Aktivitas Azure Pemahaman Microsoft Direktori Aktif Azure Google Vision
Amazon Dokumen ML Dynamics 365
Ringkasan
03 Tinjauan Studio
05 Antarmuka
Pengguna Studio
06 Fitur Studio