Hello there,
I have a piece of C# code inside a Code object that converts MM/dd/yy date format to proper dd/MM/yy, the Input is the US date format as plain text from a Data Item, while Output is the converted date format, stored in a separate Date Data Item. The conversion works in Visual Studio as expected, however when I try to run it in BP I always get the error "Internal : Could not create an instance of the code class because the class is not compiled" when it reaches the Code object.
I have the required libraries added under Initialize -> Code Options -> Namespace imports, also tried calling all relevant parts of my code through their full path, same result.
The error makes me believe that I've missed some basic switch/setting, but ran out of ideas as what could that be.
I have a piece of C# code inside a Code object that converts MM/dd/yy date format to proper dd/MM/yy, the Input is the US date format as plain text from a Data Item, while Output is the converted date format, stored in a separate Date Data Item. The conversion works in Visual Studio as expected, however when I try to run it in BP I always get the error "Internal : Could not create an instance of the code class because the class is not compiled" when it reaches the Code object.
I have the required libraries added under Initialize -> Code Options -> Namespace imports, also tried calling all relevant parts of my code through their full path, same result.
The error makes me believe that I've missed some basic switch/setting, but ran out of ideas as what could that be.
Code:
string dateOne = ToConvert; // ToConvert is my input variable from the Data Item
... rest of the code ...
ConvertedDate = conv; // ConvertedDate is the Output value that goes into a separate Data Item