Bot executing commented code

Hello Team,

I am not sure why but when I am debugging my code bot is skipping some activities and directly moves to commented activities to run.

Can anyone please help ?

Thanks,
Prathamesh Patil

Are you trying with RunFromThis Activity??

Normal scenario - It should skip the commented code.

@ImPratham45

can you recomment it and check…this is not usual behaviour

cheers

I checked not sure what is the issue
Also I observed that there are some files created automatically


And these are many in numbers…

@ImPratham45

okay first issue I see is you are using a one drive location…

please copy the code to any local folder …one drive sync locations can create such issues

cheers

I don’t think it will impact in debugging steps.

Bot should not execute the part which is in comment section.

@ImPratham45

Ideally i agree…the resolution was for those extra files and all…may be that might trigger some wierd behaviour as well

Cheers

I have deleted those for testing… But still having same issue :man_shrugging:

Kindly move your code to local from one drive and give a try for testing

Hello it was not issue of where the files or project code is. I had a call with UiPath support team. We found that even after deleting activity it was running that code. Strange, but then we removed all auto created files and degrade system activity package and now it is running.

@ImPratham45 , try to comment that area and re create same block of code and execute. It will work. Make sure you are not copying the above code. try to re create only that skipping block and it will work.

We tried everything
Commenting deleting moving…

But at the end only this worked.

Oh ok that means you updated package has some bug which is preserving and not recognizing the commented part as a comment and entering into execution.

It would be helpful for everyone, if you could able to post what version of package has given this issue. So that rest of the members will avoid to download that version of package

Update package UiPath.system.activities

What version you got issues?

Check If “Continue on Error” is Enabled
If an activity has ContinueOnError set to True, UiPath will skip errors without stopping execution.
Select the skipped activities and check the Properties panel for ContinueOnError.
If it’s True, change it to False and debug again.