Hi All,
I’m trying to send outlook mail by passing values from Config Files. But I’m Facing an Error as shown in the screenshot.
I have found few solutions on Forum that didn’t work for me:-
When I try to add default value as " New Dictionary(Of String, Object)" I’m getting error as shown below.
I’m not finding “Dictionary” DataType instead of “IDictionary” DataType.
Thank you in Addvance:-)
postwick
(Paul)
September 12, 2022, 3:38pm
3
You have your ConfigFile variable scoped to SendOutlookMail. You should scope it higher. You probably have more than one ConfigFile variable defined, which causes these kind of unexpected results. Use the Studio search and it’ll show if you have it defined more than once.
Dictionary is there, you just have to search in the browse for types window. It’s under System.Collections.Generic
Hi,
SendOutlookMail is my Custom Sequence Name which is highest scope.
I couldn’t find Dictionary.
You probably have more than one ConfigFile variable defined – Can you elaborate this?
@Vaishnav_Tej please try like this
New Dictionary(Of String, String) From
{
{“sheetID”, “efretbryygdf23r4ty54htrbgfdv”},
{“sheetName”, “testSheet”}
}
postwick
(Paul)
September 12, 2022, 4:56pm
7
You have to select the two types with the two pulldowns at the top.
Joe,
Thank you for taking the time to respond and offer advice for resolving the issue.
I am new to UIPath. As such I was not choosing the variable type from the dropdown shown circled before clicking OK.
That brought UP the error. If I choose the appropriate variable type from the dropdown, say “String”. then all is well.
[image.png]
Regards,
Deochand
Hi,
Even after selecting the two types I’m getting same error “Cannot find this file”
Hi,
Can you explain what is that string meaning after SheetID which you mentioned ?
postwick
(Paul)
September 12, 2022, 5:37pm
10
Are you attaching a file? That’s probably what the error is about.
@Vaishnav_Tej
Its random values…you will put here your own keys and values
Yeah I was just trying out multiple ways & attached file…!!
After deleting the attached file I’m able to solve the error.
Thanks for your immediate response.
system
(system)
Closed
September 15, 2022, 5:42pm
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.