Check Position of My Word and Delete Lines before and after it's related line

Hi @hsendel , please check the workflow. (31.8 KB)

Mark it as solution if you got it

Nived N :robot::robot::robot::robot:

Happy Automation :blush:

1 Like

Thanks @NIVED_NAMBIAR, i will check and let you know :+1:

1 Like

Hello @NIVED_NAMBIAR, Seems there is a missing package as per the bellow error msg :

That is split string activitiy provided by workflow manager package , I had disabled it

U can use this to split the string

Already I had used the string manipulation to split the string

So delete that split string activitiy. I add that activitiy for testing ,

I will share the updated workflow now

Nived N :robot:
Happy Automation

@NIVED_NAMBIAR, It’s deleting everything including line where my word exists !!!

Hi @hsendel
please check the workflow
In this workflow, u can see sample text file in which there are many lines
i am searching misquote word i had assigned the word to input variable
and at last it is writing back to same text file (31.8 KB)

for ur clarification u can see that which word u want to search u want assign in input variable, in my case i had assigned with “misquote” u can see in image

Hope it helps

Mark it as solution if got it

Nived N :robot::robot:
Happy automation

1 Like

Unfortunately the result is an empty file even I delete the following error part from process :

sample.txt (1 Byte)

Hi @hsendel

Did you tried my updated workflow

Did u put the word u want to search in input variable

I was able to run it successfully

Please check my previous reply

Nived N :robot:

@NIVED_NAMBIAR, Of course I follow the last process you shared, and in attached file the video demo.Please Check it

How it happened so

In my case it was working fine

why so

view my entire workflow sequence


Nived N

Strange!!! I see you’re using newer version of Studio, Can this be an issue?

I got it, the activity I delete is “While” which is not present in my process, You asked me to delete it


1 Like

Can you make print screen for this part and variable used I will add it in my process

earlier what i was try to tell u delete is the split string activity, which actually i had disabled it since i used another code to split the string based on new line

If you got, mark it as solution too

Nived N

Happy automation

@NIVED_NAMBIAR, Coud you pleas help on the remaining issue related to “Break” Activity :

Main.xaml (13.4 KB)

Hi use break activitiy there

But there is no “ForEach” Activity in our Process !!!

Or u can increase time by one instead of break activitiy there

So that it can break out of loop

1 Like

I appreciate your efforts but still not working :sob: