HOT or NOT - What does everyone think about the recent Try/Catch changes?

Hot or Not?

What does everyone think about the recent Try/Catch changes?

  • You no longer get a “Catches” block by default when you first add it to the workflow
  • When you do add a catch, it chooses the System.Exception type by default, which arguably saves a click or two, or does it, since every time you add a new catch, you need to then change that default to something else anyway
  • They’ve changed the way it renders so you no longer see the topmost sequence name when TRY is collapsed
  • They’ve removed the variable name for each catch, so you’re expected to just know there’s a local variable automatically created, and you have no ability to change its name
  • How will the above affect existing automations that may have used custom exception variable names?
1 Like

Without having seen it, tried it or done anything substantial with it, I say Not

The need to change these trivial constructs every or so version, which forces you to unlearn development habits and change it into something new without having actual significant improvements is just inviting error during development just in the name of ‘change is good’.

As a consultant I work for a variety of clients who for various reasons not always work on latest versions, and changes like these makes it all the more anoying where the IDE is different everywhere.

Sure, if a new feature is actually a new feature and ‘ads’ something of value, sure, I’ll adapt. But the change you describe is, on the surface, just useless cosmetic redesign.

For what it’s worth… the “why” behind this, per the 2024 December Community Release notes, is:

“We unified the look of these activities between Studio Web and Studio Desktop

So they have changed how Studio Desktop works to match the newer and arguably less used Studio Web.

Hi @WhatIsRpa.com,

Great feedback :slight_smile:

You’re right - we no longer group all the Catches, but instead allow you to collapse/expand each catch individually:

I understand how this is a bit annoying when adding the consecutive catches. The current behaviour is the result of us already adding that initial System.Exception catch by default, which was not the case previously (and already saves you clicks there).

Would the suggestion here be that the behaviuor for adding the consecutive catches would be better if we did not pre-fill it, but instead let you do it right away after it is added?

You can now rename the Try block if you have to though:

Doesn’t it give even more flexibility?

Indeed, we will see how to adjust this to bring this functionality back.

Normally this is fully backwards compatible, but please let us know in case you encounter any bugs.

Renaming the TRY block didn’t work for me the first time I tried it… but I tried again today and that is working now, so YES that will help a bit.

The behavior for this new Try/Catch differs depending on how you add it to the workflow:

If you drag & drop it (or use the + icon in the workflow), you get a default System.Exception CATCH automatically. That is good.

When you add it by using the “Surround with Try/Catch” menu option… you DON’T get that first CATCH. You must add one manually. That isn’t good.

Bonus: If you want a laugh… click to add a new Catch block, and then hit ctrl-Z :slight_smile:

1 Like

Thank you for this extra feedback and clarification! This is much appreciated.

I played with the T/C in last release a bit. The function “Surround with Try/Catch ” has some gaps:

Another finding

Cheers

2 Likes