You are viewing limited content. For full access, please sign in.

Question

Question

Rename Entry help :

asked on June 8

Hi, 


I am stuck with trying to to a simple file rename.

I keep getting an "Invalid Object Name" error

Basically I am reading a PDF, extracting its text and taking out the 5th line which is a name. 

 

Then I am putting that name in a rename task . The name extracts seemingly fine.

 

 

However I do notice the token still contains spaces. When checking after the workflow, and also a second line.

 

 

What am I missing here?

 

Thanks

Workflow ver 

0 0

Replies

replied on June 8

Hi Shan,

The Remove function is to remove items from a multi-value token, not remove characters in a text. If you want to remove spaces, you can use Pattern Match activity with this option, all spaces and line breaks will be removed:

 

0 0
replied on June 8

Hi Zhujie,

 

Thanks for your help I have got a little further. When I use the \S+ it at least brings back "Jane", which the Replace task then seems to accept. I am still missing the last name but I think I have found the problem is that when I reference the retrieve document text index 5, its coming up as a Token with 2 lines, which the Replace task doesn't seem to like.

 

Any idea why it comes back with two lines? when each line should be in its own token?

 

 

0 0
replied on June 9

Did you set it "all matches (combined with no spaces)"?

1 0
replied on June 9

Oh, I was actually trying to do it through a regular token, thats what I was missing.

 

How would I be able to keep the space between the first and last name?

0 0
replied on June 9

You may use the Trim function to remove any white spaces before or after the text.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.