I have 1 requirement; on SAP screen, dynamic errors appear in red background. I have to count those errors (Text in red background). How would I search text in red background ?
Addiitonally, error always comes in German language and rest data in English Language.
Are the cells recognized in UiExplorer?
Can you inspect them and check the attributes - hopefully something will differ for a red cell vs a white cell?
In this case it wonât work. We should build an activity for this. Hope there is an workaround. For example recognizing the language using the cognitive activities or check that the text is different from a predefined white text list.
as vinay @vvaidya said use coordinates here although make sure before using it to maintain same coordinates maximize your screen so you will get always same coordinates text.
Just use indicate on scren in Get Visible Text activity then if you will click F3 mouse pointer will be converted to select a clipping region on the screen then if you will navigate to that bottom text then you will get a coordinates in properties.Uipath will get visible text from that coordinates only.
I have tried these approach 3 times when nothing was detecting and still works fine just with some more cases handling and some of my logics.
I understood but I donât want text. I just want to count texts which are in red background.
So what you said I tried as an work around and I got full text of particular region and I removed the standard texts i.e. in english language; only dynamic texts which are errors Iâm getting. but Again I have to count how many errors are there. Can we break get full/visible text output in array or something ?
What i am saying you can still count by using counter just do like this way.
The text you are getting it should follow some standard to display error like some words so you can check if text contains that words then increase your counter and other options
if you are aware with error message which will occur like mostly on all possible manner then just match those text with your get text output and then increase counter.[quote=âChand, post:12, topic:6574â]
dynamic texts which are errors Iâm getting.
[/quote]
[quote=âChand, post:12, topic:6574â]
Can we break get full/visible text output in array or something ?
[/quote]
I have not worked much with UIPATH, however I have with Blue Prism and Iâm an SAP Security Consultant by nature. What I would to is execute the report and then save it as an xls file. Then you can automatically remove âtransaction recordedâ or âtransaction executingâ in UIPATH then you can count anything else as an error instead of just colour scrapping. Most of the reports I automatically generate with BP in SAP I export and manipulate in excel as this is more effective and then you have evidence (raw file/edited file) you can follow up if needed in the future. The process might be a little longer but I believe itâs best practice doing it this way when dealing with SAP.
Use Error Management to determine how TRANSACTION processes errors that occur when a script file is run.
On the Main menu, click Tools, and then click Options. In the list, click Error Management.
When an attempted upload produces errors, the rows with errors are not uploaded to SAP and the related error messages from SAP security are returned to the log field or column that was specified.
We took export of all the records in .htm file and we are creating Excel file dynamically using âExcel Application Scopeâ then we call .htm file in that excel file by using âimport data from webâ instead of web address. We gave .htm file address and then counting cells in red color.