phil.t
(Phil T)
December 16, 2024, 7:37pm
1
Hello, I am new to UiPath and I try to follow this tutorial:
“build the process - part one” here:
when I enter the output in the editor:
outputCoffee\sales+DateTime.Now.ToString(“yyyy-MM-dd”)+“.xlslx”
and when I press “save”, it hang the studio, the editor become all blank and remain black forever…
:
first time I press Save I get this popup error:
second time I press Save I get this black window
I tried several times I always get this same behavior.
Any help will be appreciated, as with no error message I have no idea.
As a reminder, I had some installation issue to install the studio, so maybe the studio is not installed correctly event if it starts and seem to work fine.
Thank you
Can you doble check if this outputCoffee\sales is correct?
Try to create an Assign activity that will hold your workbook path.
Add a log message and observe if is having a valid path.
Then try to add that variable in the Excel activity.
Let us know the outcome.
If you still have the issue, a fresh Studio re-install would be necessary.
phil.t
(Phil T)
December 16, 2024, 11:17pm
3
Thank you for your reply. Sorry, as I said I am new to UiPath
(I mention I am a developer) and your suggestions are not all clear for me.
I tried to add double quotes around the path, this helped a little and I went one step further.
now, studio no longer hang with the black window. I get this error:
I have the log file but I don’t know how to attach it to this post.
the first error I see is:
16:43:46.5984 => [ERROR] [UiPath.Studio.Project] [16] System.IO.FileNotFoundException: Could not find file ‘C:\Users\phil\Documents\UiPath\CoffeShop.local.globalvariables\GlobalVariablesT1PNoYwrqg.dll’.
however, this path do exist:
I double checked the output folder, it’s valid:
begining of log file
15:51:34.2635 => [WARN] [UiPath.Studio.Project] [4] Studio version: 25.0.157-cloud.18912+Branch.release-s157.Sha.7489f58f146d342879812d8004994f9c67c3982f.7489f58f146d342879812d8004994f9c67c3982f
16:42:16.4876 => [WARN] [UiPath.Studio.Project] [4] Studio version: 25.0.157-cloud.18912+Branch.release-s157.Sha.7489f58f146d342879812d8004994f9c67c3982f.7489f58f146d342879812d8004994f9c67c3982f
16:43:46.5984 => [ERROR] [UiPath.Studio.Project] [16] System.IO.FileNotFoundException: Could not find file ‘C:\Users\phil\Documents\UiPath\CoffeShop.local.globalvariables\GlobalVariablesT1PNoYwrqg.dll’.
File name: ‘C:\Users\phil\Documents\UiPath\CoffeShop.local.globalvariables\GlobalVariablesT1PNoYwrqg.dll’
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at UiPath.Studio.JitAssemblyCompiler.GlobalVariables.GlobalVariablesPathUtils.<>c__DisplayClass1_0.b__0()
at UiPath.Studio.JitAssemblyCompiler.GlobalVariables.GlobalVariablesPathUtils.ExecuteWithTryCatch(Func1 func), HResult -2147024894 16:43:55.1654 => [ERROR] [UiPath.Studio.Project] [1] OnDesignerViewLoaded: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException: Failed to create a 'Cursor' from the text '/System.Activities.Presentation;component/Resources/ReadyToPan.cur'. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\phil\AppData\Local\Temp\WPF\oo0ru1tx.p50' is denied. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode)
at System.IO.Strategies.OSFileStreamStrategy…ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileHelper.CreateAndOpenTemporaryFile(String& filePath, FileAccess fileAccess, FileOptions fileOptions, String extension, String subFolder)
at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
at System.Windows.Input.CursorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateObjectWithTypeConverter(ServiceProviderContext serviceContext, XamlValueConverter1 ts, Object value) at MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter1 ts, Object value, XamlMember property)
at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter`1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)
— End of inner exception stack trace —
I already reinstalled studio maybe 10 times, it doesn’t help.
Thank you for your help
Phil
phil.t
(Phil T)
December 17, 2024, 4:35am
4
I tryed again, when I save in the editor, I get this in the log:
Try to close entire Studio and reopen your code then perform your actions.
outputCoffee\sales+DateTime.Now.ToString(“yyyy-MM-dd”)+“.xlslx”
outputCoffee and sales these both are variables ?
if these are variable do not keep double quotes.
phil.t
(Phil T)
December 17, 2024, 5:42am
6
Yes, I added the double quotes. I am sure the path is valid.
When I run the project the Excel is created. So this is not the problem.
To clarify, I made a video screen capture.
Please view this video:
video screen capture of problem
I mention I removed and re-installed the studio many times, it does not help
thank you
can you try to give entire path
outputCoffee\sales+DateTime.Now.ToString(“yyyy-MM-dd”)+“.xlslx” instead of this
you can enter entire path means c:\Documents\…etc…like this.
maxzz
(Max Well)
December 17, 2024, 6:53am
8
Hi,
outputCoffee\sales+DateTime.Now.ToString(“yyyy-MM-dd”)+“.xlslx”
If this one ‘outputCoffee’ is a variant and ‘sales’ is a your file name which you want to set, you can try like that:
outputCoffee+“\sales”+DateTime.Now.ToString(“yyyy-MM-dd”)+“.xlsx”
I guess another one is there is the extension name is ‘xlsx’
phil.t
(Phil T)
December 17, 2024, 7:30am
9
Hello,
Sorry, but it is clear the path is not the problem. I say so because when I execute the project the excel file is created.
Please view the video screen capture I provided, you will see clearly my problem.
Without the video it is difficult to explain and understand.
here is the link again:
video screen capture of problem
thank you
outputCoffee\sales+DateTime.Now.ToString(“yyyy-MM-dd”)+“.xlslx” Check This
phil.t
(Phil T)
December 17, 2024, 3:43pm
11
Hello,
As I said above, I already corrected this yesterday
but this is NOT the problem, I am really sure.
Did you view the video I sent (link above) ? if not, please view it.
You need to view the video to understand clearly the symptom I am having.
thank you
phil.t
(Phil T)
December 18, 2024, 7:02am
12
UiPath support, could you please help ?
Again, I am just trying to follow a UiPath official academy lesson but it clearly doesn’t work for me.
thank you
phil.t
(Phil T)
December 19, 2024, 7:18am
13
Hello,
UiPath Support, it seem you don’t want help ?
If I receive no help for what seems to be a bug, I consider it is a very bad sign for this product and I am seriously wondering if I should continue.
phil.t
(Phil T)
January 3, 2025, 11:01pm
14
Not solved, I was hoping help but obviously it wont happen …
Hi Phil,
Can you please run Process Monitor from https://download.sysinternals.com/files/ProcessMonitor.zip as Administrator without any filters while you are replicating the issue from the video? Provide the PML file to analyze.
We need to know why you are having an access denied on %temp%/WPF
I am pretty sure that a third-party tool in your system is creating you that behavior (with file lock and access denied) and in the end you are getting a “The type initializer for ‘ActiproSoftware.Products.SyntaxEditor.CustomCursors’ threw an exception.”
Try to add a Full Control for Everyone on your %temp%/WPF folder and make sure that that folder is not set to read only.
Try to install in your project also UiPath.UIAutomation.Activities.24.10.10.
The UiPath Forum is a great place for community members to share their knowledge and help each other out in their free time. However, if you need official support, please raise a support case through the UiPath Customer Portal .
sharazkm32
(Sharaz K M)
January 4, 2025, 4:36am
17
Appreciate your effort to create a video and post it here
Could you please try to uninstall and install again and see whether you are facing the same issue.
Anil_G
(Anil Gorthi)
January 4, 2025, 5:18am
18
@phil.t
Looks like a bug…just to make sure it works other ways…can you try below steps please
Open the advanced editor using plus sign beside where you are clicking
This opens a similr window try to wdit the value there and try saving to check if the error no more appears
Cheers
phil.t
(Phil T)
January 6, 2025, 11:51am
19
thank you for your suggestion. I already removed and reinstalled several times it did not help. Including with a full manual clean up to be sure to remove everything.
phil.t
(Phil T)
January 6, 2025, 12:00pm
20
thank you for your suggestion.
I tried, it is the same, I get the same error message first try, and black window second try.
1 Like