How to fix in Blue Prism - Exception has been thrown by the target of an invocation - blueprism

I am trying to automatize SAP with Blue Prism.
The thing is that, for now I can write what I want in the fields I have spied (with SAP MODE) in Business Object. When I go to Process Studio and I send the data to the Business Object, it goes fine, until it gets to the Write Stage to use this data in the field from SAP, it does not work. It appears: Failed to perform step 1 in Write Stage 'Escrever o Nome' on page 'Action 1' - Exception has been thrown by the target of an invocation.
*I'm not using Code Stage yet.
Do you have any idea how to fix it?

This specific error is clearly documented within Blue Prism's Knowledge Base:
Why do I get "Exception has been thrown by the target of an invocation" error while using Write stage in SAP?
This error is due to the "sapgui/user_scripting_set_readonly" (SAP GUI
Scripting Permission) profle parameter being set to TRUE[...]
How to resolve your issue
Ask your SAP security team or SAP administrator to set the
"sapgui/user_scripting_set_readonly" to FALSE, and also ensure that
the scripting is enabled in the SAP server and client.
These changes will allow Blue Prism to write into SAP.
Additionally, you really should review section 2. "Installation and Setup" in the Blue Prism's SAP Implementation Guide v1.4, as it has precise instructions that should be followed during installation and initial configuration in order to avoid errors like these.

Related

Missing link error using Blue Prism Code Stage

I am trying to figure out how to use the code stage in Blue Prism. I have been trying various simple code snippets, like "Hello World!" and MessageBox.Show() in C#. The check code option shows no errors, but there is an error for the object that says missing link. Can the code stage be used with MessageBox.Show()? Is Blue Prism expecting a link to Decision or Navigate or some other stage?
to run a simple msgbox in BluePrism code stage you need to make sure that three things are present in your Blue Prism object:
add external reference to .dll files
add namespace import
choose language
The same thing has to be done in standard C# programming - in theory we need to to this line of code:
using System.Windows.Forms;
In BluePrism it's hidden in the options of Box on the page "Initialize", with the name of the process name, date of creation, last changed by.
Double click on the object, and the window should appear with the name "Business Object Properties".
Go to the tab "Code options".
You should see the screen with top part called "External Reference" - add there "System.Windows.Forms.dll"
The second part of the screen is called "Namespace Import" - add there "System.Windows.Forms"
Lastly, on the bottom of the screen you can see a combox, where you can choose a language that will be used in this BP Objects. If you'd like to use C#, then that's something you'll have to choose there.
Please see screen below, as I hope it will help you find the necessary things.
Missing link error message indicates that your diagram is missing a link joiner somewhere. If you have a code stage make sure to double check your stage is in fact connected. If you step over a code stage and it is not connected at end point it will execute the code but throw an error saying failed to find link from STAGE NAME etc etc. Most likely some stage you are running does not have the correct link going from it to the next stage. Make sure to click and move your stage as well to double check there is no other stage underneath it or anything by some off chance

UFT error: Cannot identify the object

I'm using Unified Functional Testing v12.02 (or QTP).
Sometimes while running script i get the below error and sometimes I don't.
Cannot identify the object "..." (of class ...) Verify that this
object's properties match an object currently displayed in your
application.
Tip: If the objects in your application have changed, the Maintenance
Run Mode can help you identify and update your steps and/or the
objects in your repository.
I checked OR and the object itself with Spy tool and they have the same properties.
Sometimes I get the same error in other objects, but if I run again the script it works well.
Can someone explain me what might be the problem?
Im a little bit confused why sometimes i get these errors and sometimes don't.
I'm testing a simple web application (for training purposes)
Also I'm using the following add-ins: Web, Web-SAPUI5, Visual Basic
Mostly object wont be in the readystate. Check State of the Object using
Webedit(googlesearch).object.readyState="complete"
Webedit(googlesearch).object.Load
Webedit(googlesearch).object.Disabled=False

How to add Nagios custom states

I am Using Nagios XI. Currently My Nagios showing three states of alerts: CRITICAL, WARNING and OK.
I want to add another custom hard state FATAL for some extreme issues like server or any of my component(Java jar component) is down. Currently we are getting the DOWN message when the Host is Down. If the component is down I am getting "URL Status is CRITICAL" But I want "URL Status is FATAL". Is that possible to add a custom State in Nagios? How can I do that?
You can't. The states are built in (along with a fouth state, UNKNOWN, which is generally used if the plugin fails for reasons that probably belong to the plugin itself, not the object being monitored).
The states are intended to mean "requires action immediately (CRITICAL)" and "will probably require action soon (WARNING)". There's nothing left which would make your FATAL state different from CRITICAL, so i suggest you use that.
If you want to pass additional information to operators, you can always do that in the text the plugin provides.
(As Nagios is open source, you could probably modify the source code to allow another state. But this would be a huge task to implement properly, make your installation incompatible with the rest of the world, no plugins except yours would support it, and you'd have to re-apply and rewrite your patches with every new version of Nagios, so i'd strongly recommend against it).
You can't add states. But if you only want to make your alerts stand out more clearly, you can modify the nagios-Stylesheets in /etc/nagios3/stylesheets/ or add custom javascript in /usr/share/nagios3/htdocs/ssi/<nagiospage>-header.ssi and highlight the respective messages from there.

Open a dialog from a Sitecore uiUpload Pipeline process

I'm currently trying to show a SheerResponse.YesNoCancel() dialog within the Save uiUpload pipeline process from Sitecore. The problem appears when I do that call and it throws a NullException. I thought it was weird so I started copying the code from Sitecore's DLL and adding it to my solution. After that, I found that if the property OutputEnable is false it returns a ClientCommand that is NULL and when it tries to add a control to it, the Exception appears. So Fixing that I was able to finish the execution of that method. Anyway I still can't show the dialog. So the question is: Can I show a Dialog from a Sitecore uiUpload pipeline?
Have you tried using Sitecore.Context.ClientPage.ClientResponse.YesNoCancel(), i did something similar to what you are trying to do, but i used Alert(), worked fine for me.
Update: Actually inside uiUpload pipeline you can't call this method, however what you can do is use HttpContext.Current.Response.Write("<html><head><script type=\"text/Javascript\">[Your Java Script</script></head></html>"), you will need to abort the pipeline after this args.AbortPipeline();, not sure if this will help your case or not
No you cannot. From http://sdn.sitecore.net/Articles/Media/Prevent%20Files%20from%20Uploading.aspx:
The uiUpload pipeline is run not as part of the Sheer event, but as part of the form loading process in response to a post back. This is because the uploaded files are only available during the "real" post back, and not during a Sheer UI event. In this sense, the uiUpload pipeline has not been designed to provide UI.
That page was written for v5.1 and 5.2, but I'm pretty sure it still applies. The page claims that you can emit javascript to the page like Ahmed suggested, but it didn't work when I tried it.

Error 5337 submitting InfoPath form to SharePoint

I have some InfoPath 2010 forms with custom code that submits information to SharePoint 2010 form-enabled libraries. One of the forms has a date field, chosen by a picker and stored in a Date/Time column in the library. The form had been working fine for months, but one day it just started failing with the following error:
There has been an error while processing the form.
Click OK to resume filling out the form. You may want to check
your form data for errors.
When I click "show error details", it shows error code 5337 and gives a correlation ID.
When I look up the error in the event log, the details are as follows:
Business logic failed due to an exception. (User: XXX\frank, Form
Name: Miscellaneous Form, IP: , Request:
http://intranet//apps/_layouts/FormServer.aspx
XsnLocation=/FormServerTemplates/Miscellaneous
Form.xsn&Source=/apps/SitePages/expenses.aspx&DefaultItemOpen=1,
Form ID: urn:schemas-microsoft-com:office:infopath:
Miscellaneous-Form:-myXSD-2012-05-14T12-19-23,
Type: FormatException,
Exception Message: String was not recognized as a valid DateTime.)
I am at a complete loss to understand how this problem can have arisen. No aspect of the solution was touched between when it was working and when it stopped. The date format on the InfoPath form is the same as the date format in the SharePoint list column. The system locale and regional settings are consistent everywhere and have not been changed. The problem arose after a slew of Windows updates on the 20th of January, so I'm wondering if one of those might have caused the problem.
The next steps I plan to take are to rebuild and redeploy the form to see if that fixes the problems. However this is code I inherited and it's part of a larger solution, so I'm nervous about redeployment in case I break other things. That's why I wanted to ask here if anyone has come across this or a similar problem before and can to point out something obvious that I might have overlooked.
Thanks for taking the trouble to read this. Any advice would be very much appreciated.
I've faced some issues with InfoPath after Windows and/or SharePoint updates, so you should not rule out that as root cause of the problem. I would check for any known issues using the updates's name.
Regarding the DateTime format, is your custom code setting the DateTime value? If the answer is yes, make sure you are using the following format for the date.
infoPathField.SetValue(dateFieldItem.ToString("yyyy-MM-dd"));
One other thing, can you check the SharePoint LOGS and copy the exception stacktrace?

Resources