- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-11-21 06:31 PM
This is driving me crazy. I have text in a data item (three paragraphs, not separated by a break). As part of my process, I read a larger body of text from an HTML page and save that in another data item, let's call it report. When I search the report data item for the text in the data item using Instr, the result is false. I can see the text in the data item.
I've tried Replace to remove all spaces. It works in process studio but not in control room.
Any ideas how to compare a large number of lines of text in this way?
Thanks in advance
Bernadette
------------------------------
Bernadette Stroeder
S&P Global
------------------------------
Answered! Go to Answer.
Helpful Answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-11-21 11:20 AM
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-11-21 10:53 AM
I think the main problem here will be the size of the text comparison, the greater the number of characters the greater the risk of error. You can mitigate this by removing unnecessary spaces as you have done but it still might not resolve the issue. Can you provide the details of the calculation you are using for comparison so we can provide more help?
------------------------------
Michael ONeil
Technical Lead developer
Everis Consultancy
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-11-21 11:20 AM
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-11-21 01:51 PM
Hi Bernadette,
I had faced similar issue in one of our past projects. I tried comparing after a Lower(Trim(text)). Converting everything to lower makes it a little convenient
Give it a shot
------------------------------
Susamay Halder Consultant
Consultant
Bruce Power
+1(437)217-1086
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-11-21 06:29 PM
Hi all,
Thanks so much! It seems to be a combination of things. A lot of text and number characters in the data item to be searched (+11,000) plus synchronization in control room. So I had to rethink the approach. I created four separate data items containing the text to be searched for, then applied the InStr function for each in a single decision stage linking them with AND. This seems easier for the process to handle.
It works now in control room but I'll continue testing. Can you please tell me whether this might have been the issue InStr(Lower(Replace("Text", Chr(32), "")), Lower(Replace("Data Item", Chr(32), ""))>0
I'm writing on my mobile, so apologies for too many or too few brackets! 😃
thanks again
Bernadette
------------------------------
Bernadette Stroeder
S&P Global
------------------------------
