Can't open Excel file downloaded from the internet

Hi everyone,

I’m currently working on an automation in UiPath Studio X that downloads an Excel file from the internet, and after it’s downloaded, I need to send it via Outlook.

However, I’m facing an issue. According to our corporate policies, every document must have a classification label (e.g., Internal, Public, etc.). I haven’t found any built-in features in UiPath that support setting these values. My workaround has been to open the Excel file, click “Enable Editing,” and manually set the classification type.

Unfortunately, I keep encountering this error: “Indicate in Excel failed. Error: Invalid index. (0x8002000B (DISP_E_BADINDEX))”

I need to resolve this because when I try to send the file via Outlook, a dialog box from Titus (our classification tool) appears, and I haven’t found a way to automate interacting with it.

Any suggestions or solutions would be appreciated!

It seems the issue was related to Excel’s Protected View. I’ve found a temporary workaround by adjusting the Trust Center settings to automatically trust files downloaded from the internet. However, I’m concerned this may not be a secure option. If anyone has alternative suggestions, I’d appreciate hearing them!

@ahmadov_kamal ,

Try opening it from the internet

If it opens, there is a problem with your pc

@ahmadov_kamal,

Instead of indicating can you try if any shortcut is there for enable editing

Thanks,
Ashok :slight_smile:

@ahmadov_kamal

Welcome to the community

  1. Are you using click and all inside use app/browser only? If ao try indicating menu items etc which might work properly
  2. If not you can go eith sending mail via smtp or office365 so that this restriction might not trigger

Cheers