Blueprism Failing To Read From Clipboard - clipboard

I have a Blueprism process which is generating a pdf report from a CRM application. The process highlights the text, copies and then uses GetClipboard(). It is producing an error of Requested Clipboard Operation did not succeed.
If I run the GetClipboard again it seems to work. This is causing issues at runtime.

Process was running too fast. Essentially the copy had completed when it was trying to run GetClipboard(). Solution was to put a delay between the steps.

Related

i am facing error while running uipath bot related to Excel

I am facing the issue while running EXCEL related bot in the UIPATH tool. The error which I am facing is given here[20.4.1
Message: Job stopped with an unexpected exit code: 0xC0000005
Exception Type: System.Exception
RemoteException wrapping System.Exception: Job stopped with an unexpected exit code: 0xC0000005]
How can I resolve this issue?
Lots of questions in your question...but I've had issues similar to yours before and they were caused by the following:
Kill Excel - doing a kill Excel process while Excel was doing something at the time or in the background. I usually add Delays of 5-10 seconds before doing any kill Excel.
Accessing/performing an Excel activity or action without the necessary data present. So the example that comes to mind is if you try to update a Pivot Table, but the pivot table is linked to another file (call it Source.xlsx)...so if this Source.xlsx was not downloaded, then Excel would prompt an error while performing the update Pivot table activity. So pretty much, if you try to perform an Excel activity without the necessary files or data that you would use on a real scenario, then it will give you an error.
Settings...so from your antivirus to Excel itself, there can be settings "blocking" something that is used to perform the process you want and that could be why you are getting the error.
These are all general answers to a very broad question...my advice is to check again the logic of your bot...debug and check that all files are downloaded/data is present accordingly before doing the Excel activity (you can use break points). You can also try googling about the error# you-re getting :)
Finally, If you decide to use macros of Excel in your bot, make sure that these macros have error handling, otherwise your bot might give unexpected errors or get trapped in a loop...https://excelmacromastery.com/vba-error-handling/ can be used as reference.
Go to Manage Package and select the excel package and install 2.7.2 package and save it.
I faced the same problem and installed v2.7.2 package and it worked for me.
Refer below link for more info.
https://forum.uipath.com/t/remoteexception-wrapping-system-exception-job-stopped-with-an-unexpected-exit-code-0xc0000005/173595/16
screenshot

Kentico's Continuous Integration is very slow

My Continuous Integration is running ver very slow.
After launch with -r "ContinuousIntegration.exe -r" it hangs after "Restoring objects…" and before "Optimizing file repository…". It can last within that state even for an hour. After all everything is imported well...
With a profiler I've found that most time is consumed by CMS.DataEngine.TranslationHelper
Anyone has some ideas what is wrong ? Click here to see the screenshot of profiler
If you have a lot of custom objects or data within those out of the box or custom objects with relationships when you are doing a -r it can take a long time to update your local instance. Simply put, it's rebuilding the whole database with the structure in the CI files. Also, the documentation states:
To ensure that the restore process works correctly, you need to stop your Kentico application before running the restore process. Otherwise you may encounter the following problems:
Deadlocks or data inconsistencies if the system attempts to write to the CIRepository folder while data is being restored from the files
Outdated content in the application's cache if you restore without restarting (can cause inconsistencies in the Kentico administration interface or the website's content)
So be sure to stop your instance when restoring to help with the performance.

IE ierror with parsing html

i get this error HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) when try to run my project in visual studio 2010.
but ONLY when run in virtual mashine!
otherwise same source code doesn't yield same error
NOTE: IE 8 Advance settings are same for both configurations!
help
Have you read KB927917? It describes the situation quite well; it's a more helpful error message than the “Operation aborted” we used to get, anyway. See this blog for more background on what it means.
It's not directly connected to virtual-machine or not; what you have is a race condition, where a script can load too early and try to manipulate elements that haven't been fully loaded by IE's HTML parser yet. Race conditions are inherently difficult to pin down as factors like being in a VM or how fast the server is responding can affect whether the error occurs or not.
You need to narrow down which script is responsible by commenting all the <script> elements out and adding them back in one-by-one until you get the error. Then you need to delay the operation of whatever that script is doing, for example by moving it into a window.onload event handler.

Why do I get "file is used by another process" errors when I debug within Visual Studio?

Using Visual Studio 2010 beta, when I run my application within the IDE for debugging, it works perfectly the first time. However, after closing the debug session, either by closing the application or clicking the stop debugging button, all subsequent attempts to debug the application fail with:
Error 1 Unable to copy file "obj\Debug\Application.dll"
to
"bin\Debug\Application.dll".
The process cannot access the file
'bin\Debug\Application.dll'
because it is being used by another
process.
Handle.exe from SysInternals does show handles open, but even if I close the handles, the error doesn't go away. Any attempts to delete the file manually result in an "Access Denied" error message.
To fix this, I have to completely restart Visual Studio, afterwhich the Debug session will work once and stop again.
I'm not entirely sure when this started happening, but I'm pretty sure it's fairly recently.
UPDATE: After I force close the handles on Application.dll, I get the following error from VS:
Error 1 Unable to copy file
"obj\Debug\Application.dll"
to
"bin\Debug\Application.dll".
The requested operation cannot be
performed on a file with a user-mapped
section open.
What the heck is a "user-mapped section"??
UPDATE 2: It appears that this problem occurs when I have a Form open in Design view when trying to debug. I'm going to do some more troubleshooting and then post my results.
UPDATE 3: I think I've narrowed it down to a form using a UserControl.
To be honest with you, it sounds like a bug in VS2010. For some reason it isn't closing the open handles when the debugger stops. Killing the VS process automatically closes those handles, allowing you to access the file again. As a work around, you might look at unlocker it's free and works exceptionally well. I know that's not a great answer, but it should be faster than restarting VS. You might to consider sending a bug report too...
Unlocker doesn't work on 64-bit OS, LockHunter does though.
Here is how I solved this problem
*I open the project Properties,
*select the build tab,
*Clear the output path,
*and buid(this will create the dll in the root folder)
*come back to the output path and select browse(browse to the bin directory to either debug/release)and voila!
As per Error: Cannot access file bin/Debug/… because it is being used by another process answer by TarmoPikaro, sometimes Visual Studio creates multiple msbuild.exe ghost processes, which persist after build. These ghost processes seem to be causing file locks.
Solution 1 - Kill ghost MSBuild.exe's
Killing msbuild.exe's is a one time solution, it needs to be done per build basis.
You can kill the processes as follows mrtumnus:
taskkill /f /im MSBuild.exe
Solution 2 - Disable parallel builds in Visual Studio
You can disable parallel build once and for all:
Tools > Options > Projects and Solutions > Build and Run > "maximum numbers of parallel project builds" - by default it has value of 8, switch it to 1.
Of course builds are bit slower now, but mileage may vary depending on your use case.
This is related to
Error: Cannot access file bin/Debug/... because it is being used by another process
I've seen the Windows Indexing Service cause this. Disabling it helped. Virus scanners can also be at fault. Mutliple Application.Close() calls can supposedly cause this, too.
Of course, since it always works the first time, I suppose these are unlikely.
Had the same problem. The following things helped
Closing all design files while debugging
using unlocker
Also my application opens a port. While debugging an exception was thrown and program quit. While ending the program I closed the port. That helped too.
But definitely, bug with VS2010.
I encountered the same problem and in my case I had the file in question open in Visual Studio. Closing all files helped.
I faced the same error and I was stuck in it for many days. Finally resolved the issue.
I was working on a project that had many class libraries added in it. I added the reference of these libraries to my main project and mistakenly added reference to same project to itself. So when I removed self reference, it worked.
I had this issue myself. I had the project properties window open and that apparently creates a file lock. Even after I closed the window the file lock remained and I had to restart VS.
P.S. I'm using VS 2019. Just posting this for anyone having the issue I had and coming to this post.
If you get this error on VS Code;
Click on terminal screen and use "Ctrl + C" for stop running.

Crystal reports crashing visual studio

Ive got a C# 2.0 app that launches the Crystal Reports viewer and displays some reports. If I run this in Debug or Release mode OUTSIDE of visual studio, it runs fine. If I debug this through Visual Studio 2005, the report will pop up, but then a minute or two later VS freaks out on a ContextSwitchDeadlock, also telling me that no symbols have been loaded for any call stack frame so i can't debug it.
This likely has something to do with the fact the report is being launched on another thread. The reasons for this are a little convoluted but I'll try to explain in case it's important:
We have a long-running process that runs on a background thread. When the process is done it launches reports. If it(the background thread) just calls Show(non-modal) on the report viewer forms, it will then terminate and kill all those report forms immediately. So instead it launches one child thread per report and calls it with ShowDialog(modal). That way the forms are all seemingly non-modal to each other, but when the user closes the LAST one, the background process thread now has no child threads and it can terminate.
Does this makes sense, and does anyone have any idea why I'd be getting the ContextSwitchDeadlock MDA inside VS, but no exception is thrown when the code runs standalone?
Try renamining you c:\temp\ directory - There is a know issues that if there is an XML file in the c:\temp\ Crystal Reports Crashes and you cant open them..
I think you answered your own question... it has to do with how your running it in a separate thread.
Delete or move any .xml files in your c:/temp folder if you have one. They cause database expert to crash VS
Got the same problem. It's been known to cause database Expert to cause VS to crash also due to some xml file being in your c:\temp directory. First option is, to empty the c:\temp directory (worked for me). Second you can try to rename your temp directory to "MyTemp" or something similiar. And last but not least you can try setting your project to use 4.0 Framework not the client version.
P.S:#John Cruz Nope he didnt, I don't work with separate threads in my project and got the same ContextSwitchDeadlock-Error.

Resources