Hello experts,
I am still at a learning stage and wouldl like to know on how we can invoke a sap background program from a web page at a button’s click?
Please advise.
SK
Hello experts,
I am still at a learning stage and wouldl like to know on how we can invoke a sap background program from a web page at a button’s click?
Please advise.
SK
Hi Saritha,
I have implemented SAP automation using BAPI calls in Uipath. I can help you if you have any specific queries.
What do you mean by ‘on button click in webpage’? Do you want to start the SAP automation process in the background on a button click?
Regards,
Sruthi YNM
So If I understand you correctly
you need to trigger the process when a user click on the button which is in webpage
For that you can build a unattended bot with the Bapi activities
Later you need to build the webpage button like onclick using Javascript where you need to use Orchestrator API to trigger the process
Also you can take a look on UiPath Apps also, you can build a form and you can configure onbuttonclick and choose the process
Hope this will help you
Thanks
Hi Sruthi,
Yes thats correct. I need to triggere the bapi and send the response to front end application which would display the status.
Regards,
Saritha
Hi Srini,
Thanks for your inputs. will explore more. But if you have any reference links pls do share.
Regards,
Saritha
API reference to start the job
Orchestrator API reference
BAPI activities
Check for UiPath APPS
Hope these help you
Thanks
Hi Srini/Sruthi/Experts
My uipath studio version is 2021.10.4.
After some research I found below 2 accelerators meeting my needs for executing SAP Bapi’s
UiPath Foundation pack for Accelerators for SAP S4HANA
UiPath Accelerator for SAP S4HANA for Basis Administration
I referred to below video for setting it up UiPath SAP Accelerators - Unlock user | SAP S/4HANA | ITSM use-case - YouTube
but am unable to install UiPath.SAP.BAPI.Activities and am getting below error-
12:58:01.3866 => [ERROR] [UiPath.Studio.Launcher.exe] [22] System.Xml.XmlException: ’', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at UiPath.Activities.Api.Workflow.Wizards.WizardExtensions.TryGetDictionary(String dictionaryPath), HResult -2146232000
12:58:01.5243 => [ERROR] [UiPath.Studio.Launcher.exe] [22] System.Xml.XmlException: ’', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at UiPath.Activities.Api.Workflow.Wizards.WizardExtensions.TryGetDictionary(String dictionaryPath), HResult -2146232000
12:58:03.3155 => [WARN] [UiPath.Studio.Launcher.exe] [21] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.3667 => [WARN] [UiPath.Studio.Launcher.exe] [21] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.4257 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.4646 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.4925 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.5215 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.5848 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.6297 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.6576 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:03.7105 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:04.6403 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:04.6563 => [WARN] [UiPath.Studio.Launcher.exe] [17] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
12:58:05.7087 => [WARN] [UiPath.Studio.Launcher.exe] [11] Syntax Service failed to load assembly: Microsoft.Exchange.WebServices.Auth, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
19:09:55.2591 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.2861 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.3250 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.3509 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.3509 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.4077 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.4247 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.4337 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:55.4756 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:56.6983 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:09:56.7093 => [WARN] [UiPath.Studio.Launcher.exe] [14] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:04.3263 => [ERROR] [UiPath.Studio.Launcher.exe] [19] System.Xml.XmlException: ’', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at UiPath.Activities.Api.Workflow.Wizards.WizardExtensions.TryGetDictionary(String dictionaryPath), HResult -2146232000
19:24:04.5106 => [ERROR] [UiPath.Studio.Launcher.exe] [19] System.Xml.XmlException: ’', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at UiPath.Activities.Api.Workflow.Wizards.WizardExtensions.TryGetDictionary(String dictionaryPath), HResult -2146232000
19:24:05.3785 => [WARN] [UiPath.Studio.Launcher.exe] [20] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.4124 => [WARN] [UiPath.Studio.Launcher.exe] [20] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.4471 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.4794 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.4970 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.5214 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.5763 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.6085 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.6262 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:05.6685 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:06.3275 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.UIAutomationNext, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:06.3455 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: UiPath.CV, Version=21.4.4.0, Culture=neutral, PublicKeyToken=null
19:24:08.4052 => [WARN] [UiPath.Studio.Launcher.exe] [22] Syntax Service failed to load assembly: Microsoft.Exchange.WebServices.Auth, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
As a part of pre-requisites, I have installed both SAP Connectors for 32 bit and 64bit and necessary .net framwork dll.
Can you please advise on how to resolve the above issue?
Thanks,
SK
Hello Everyone,
I was able to resolve the above error by following below steps-
reinstalled studio version, so this time the error got changed with sapnco files not found error. this was resolved by referring below link
and it solved the problem for me luckily.
hope it helps others.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.