Try-Catch block help, Workflow goes straight to the catch sequence

activities
studio
trycatch

#1

Duplicate.xaml (17.6 KB)
Hi,

Can you tell me why the attached workflow goes straight to the catch block?

Regards,
Paolo Catapang


#2

Hi @pcats,
i can’t download your workflow
can you share screenshot
Regards,


#3

Duplicate.xaml (16.3 KB)
1.zip (122.7 KB)

Hi attached the screenshots as well as an updated workflow

Thanks Hermanth


#4

Hi @pcats,
Your giving File_Date as variable in inside the assign
error
But your actually defined variable as
asse
So cahnge that assign value as file_date like that
Correction
After that You will get the solution

Regards,


#5

Hi @pcats,

I have ran your workflow on my machine, it is going to catch block after encountering an error in try block, which is perfectly fine, to test this give write line after first few activities and try to print the values.

Reg,
Sarthak


#7

Fixed that discrepancy with the variable name. it is still going through the Excel Application Scope which is causing the problem(known through commenting the excel application scope out). I have no idea why it is causing an exception to occur.


#8

Hi @pcats,
copy that sequence what you done inside the try catch and paste it outside
and run that sequence.
if any exception comes means it showing in pop-up box.
copy that pop-up box and share it here.

Regards,


#9

Hi Hermanth,

I just found the error. It was a mistake of mine as the excel file i was getting the values from were empty.(because there were 2 excel files in the folder specified)

Regards,
Paolo