23-12-22 03:10 PM
Internal : Could not execute code stage because exception thrown by code stage:
Unable to find Account Display Name 'X'.
Public member 'Cast' on type 'Accounts' not found.
Dim aa As List(Of Account) = olNamespace.Accounts.Cast(Of Account).ToList()
23-12-22 05:48 PM
Hi Johan,
I replicated this issue,
it's a namespace initiation issue, and also check the "Account Display Name" field "X" is added I guess
------------------------------
Thanks
Prasanth
Software Engineer | RPA Developer
------------------------------
27-12-22 02:04 PM
27-12-22 04:22 PM
Dim aa As List(Of Account) = olNamespace.Accounts.Cast(Of Account).ToList()
Change it to this:
Dim aa = TryCast(CObj(olNamespace.Accounts), List(Of Account))
Cheers,
Eric
12-04-24 01:51 PM
Hi Eric,
I am having this same issue where it states "unable to find account display name", I have tried all possible variations of the display name I can find, and I have also tried your code change but that didn't work for me
I'm using 'Send Email' on the MS Outlook Email VBO - is there any other solution you can think of?
Thanks
Alex
04-07-24 03:18 PM
Hi Alex,
I'm having the same issue - did you find a solution to this?
Thanks,
Josie
08-07-24 01:52 AM
Thank you @Prasanth_IRPA_Dev. After several hours of research and testing it seems that you had already posted the solution here a while ago :grinning_face_with_sweat:. At first I thought it wasn't going to work because I was forgetting to execute the Initialize action/page manually after the change.