Error in Excel when going from DEV to PROD

Hi all

I appologize if this question has been raised before - but I could not find anything related in the forum.

I have a strange issue (probably not). I have been working on a robot which in the first part works entirely within Excel ordering the input data. Now it is stable and works like a doll on my PC but when moved to the production PC, I run into trouble with my selectors:

Eksport_Kelio_Fravær has thrown an exception

Source: Click ‘EXCEL7’

Message: Cannot find the UI element corresponding to this selector: <wnd app=‘excel.exe’ cls=‘XLMAIN’ title=‘export.xls [Kompatibilitetstilstand] - Excel’ /><wndcls=‘EXCEL7’ title=‘export.xls [Kompatibilitetstilstand]’ />

Exception Type: SelectorNotFoundException

UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: <wnd app=‘excel.exe’ cls=‘XLMAIN’ title=‘export.xls [Kompatibilitetstilstand] - Excel’ /><wnd cls=‘EXCEL7’ title=‘export.xls [Kompatibilitetstilstand]’ /> —> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector: <wnd app=‘excel.exe’ cls=‘XLMAIN’ title=‘export.xls [Kompatibilitetstilstand] - Excel’ /><wnd cls=‘EXCEL7’ title=‘export.xls [Kompatibilitetstilstand]’ />

at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)

at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)

— End of inner exception stack trace —

at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)

at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)

at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

The Excel version is exactly the same on both PCs but I am running the “Studio” version of UiPath whereas the production machine has the “Community version” until the license has been received. Could this be a matter

I have tried with and without “Excel application scope”. I have tried running it as a robot package as well as from the UI. I have tried deselecting the selectors in different combinations and now I have no more ideas as to what could be wrong.

Any ideas?

Thanks in advance,

Torben

you need to check the Excel selectors in both prod and dev environments, they don`t match.

I forgot to write, that I made a new “indicate on screen” on the PROD machine. Which made that step work. Checked the selectors afterwards - and they were exactly the same as the ones on the DEV machine.

I would be really happy if I could avoid changing all those “Indicate on screen” as it would make maintenance a pain. Also - as i understand - the “picture” itself doesn’t do anything. Its the selectors that matter.

Thanks for your input :slight_smile: