"CultureInfo" is not defined

Hey guys,

I have a variable “Culture” that is supposed to translate the English name of the month into German. The Assign has the value: New CultureInfo (“de-DE”)
My variable type is: System.Globalization.CultureInfo
Unfortunately, the following error message appears: “CultureInfo” is not defined.

2017-12-16 20_48_54-

Thank you very much

3 Likes

Hello,

You either have choice between importing the namespace System.globalization not to have to write (so you current assign would work) or specifying it on the expression as follow)

New System.Globalization.CultureInfo(""de-DE)

Cheers

5 Likes

ok, and how can I import the namespace System.globalization?

Thanks :slight_smile:

1 Like

Hi,

You have description for it in this knowledgde base (as for most of the UiPath subject)

Cheers

7 Likes

perfekt, thank you

Hi Guys,
I am beginner and the Studio receive to me with this similar error, please how do you think i can solve it?
PD: already is installed the System.Globalization library, also I changed the regional settings, did set United States as Format and location, but it did not work.
Thank you very much. :slight_smile:

Hi guys,
The problem has been solved when I changed the language to English (United States), the server was in Spanish(Colombia), before that, I was trying with Spanish(United states) but not work. Greetings.