Udiar
(Udi Or)
October 19, 2022, 3:28pm
1
Hello everyone,
I have an activity which writes the current date to Excel cell.
The activity is: UiPath.Excel.Activities.ExcekWriteCell.
The value is: Now.ToString(“dd/MM/yyyy”)
It used to work fine, but recently UiPath displayed a message suggesting to convert the project from Windows Legacy to Windows, I converted but then that activity stopped working and it issues this error:
The message details are:
{
“message”: “Write Cell: Date: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.”,
“level”: “Error”,
“logType”: “Default”,
“timeStamp”: “18:11:44”,
“fileName”: “FastSubmission”,
“processVersion”: “1.0.0”,
“jobId”: “2775c061-0ee3-4d7f-bef7-DELETED”,
“robotName”: “DELETED@gmail.com-attended”,
“machineId”: DELETED,
“organizationUnitId”: DELETED
}
My UiPath details:
Please advise.
Thank you very much for your help.
Gokul001
(Gokul Balaji)
October 19, 2022, 3:31pm
2
Hi @Udiar
Just Retry the Date in that activity. Issue is Double Quote "
Hi,
In windows legacy, it seems double quote is normalized and any double quote characer is accepted. However, at this time, in windows (.net6) ,in fact, only " (0x22) is accepted to express string literal. To make matter worse, it seems to occur only compiling. (Expression validator don’t raise an alert.)
FYI, the following is sample for reproducing. The first Assign uses " 0x42 and second Assign uses “ and it fails in compiling.
Sample20221013-2.zip (2.1 KB)
[image]
Regards,
Regards
Gokul
Udiar
(Udi Or)
October 20, 2022, 5:37am
4
Without quotes it issues an error:
Gokul001
(Gokul Balaji)
October 20, 2022, 5:38am
5
HI @Udiar
Use Double Quote in the Date Format
Now.Tostring("dd/MM/yyyy")
Udiar
(Udi Or)
October 20, 2022, 5:40am
6
I tried (with and without quotes) but it issues an error:
With quotes
Without quotes
Gokul001
(Gokul Balaji)
October 20, 2022, 5:42am
7
Instead of Copy paste Type the Date format and Double Quote manually
Or Downgrade the package and check it @Udiar
Now.Tostring("dd/MM/yyyy")
Hello @Udiar
Instead of Today , use ToString . You are using Today in the expression instead of ToString.
Now.ToString(“MM/dd/yyyy”)
Thanks
Udiar
(Udi Or)
October 20, 2022, 10:40am
9
I can’t check it because now I’m getting a new error regarding the ExcelApplicationScope itself:
I get too many issues since I accepted the UiPath suggestion to convert from Windows Legacy to Windows (one of them is a very prolonged compiling, like 15 minutes…).
Could you please advise and explain how can I revert my project to Windows Legacy?
Gokul001
(Gokul Balaji)
October 20, 2022, 10:49am
10
Check out the thread @Udiar
After creating a new project with the targetFramework of Windows, I am unable to copy its activities to a different project that uses the older Windows-legacy framework. I am also unable to invoke the new workflow from the Windows-legacy framework project.
How can I change the targetFramework back to Windows-legacy project?
[UiPathLegacy]
I created a project as Windows compatibility and need to convert it to Windows-Legacy. Is there a tool/utility to do this? Rebuilding all my workflows by hand is going to take a long time.
Also, I’m using UIPath Community 2021.10.4
Thanks,
Matthew
Regards
Gokul
Gokul001
(Gokul Balaji)
October 20, 2022, 10:53am
11
In the your project open the Project.JSON file and update it @Udiar
“targetFramework”: “Legacy”
1 Like
Udiar
(Udi Or)
October 26, 2022, 10:08am
12
Thank you, but this resulted in a bunch of errors, so I reverted it.
I’m still looking for a solution.
Udiar
(Udi Or)
October 29, 2022, 4:29pm
13
The solution was to Update Dot Net version (from 4.6 to 6) and to Remove temporary files in UiPath system.
I think its the migration from windows legacy to windows.
Thanks
Udiar
(Udi Or)
October 31, 2022, 4:20am
15
That’s for sure, as I mentioned at the beginning.
@Udiar
Then can you confirm the dependent packages are updated to the latest version?
Thanks
@Udiar ,
Is your Issue resolved after applying the Solution mentioned ? If so, Would request you to Close the Topic by marking your Post as the Solution.