Page 1 of 1

Sort Job Folder By Name

Posted: Tue Feb 06, 2024 3:14 pm
by jcarden
Hello!

I am trying to make a requirement for incoming files and folder to have a 6 digit job number at the start of the name.

I can get this to work on individual job files, but on job folders it always errors out.

I have included my regx in the attached screenshot. I am not sure what I am doing wrong in the scenario.

Screenshot 2024-02-06 at 9.10.32 AM.jpg
Screenshot 2024-02-06 at 9.10.32 AM.jpg (227.03 KiB) Viewed 3158 times

Re: Sort Job Folder By Name

Posted: Wed Feb 07, 2024 9:34 am
by magnussandstrom
Maybe you can do it like this instead?

flow.png
flow.png (48.61 KiB) Viewed 3078 times

Re: Sort Job Folder By Name

Posted: Wed Feb 07, 2024 12:46 pm
by rhd_ole
Have you tried omitting the .* in your expression

Code: Select all

^/d{6}

Re: Sort Job Folder By Name

Posted: Wed Feb 07, 2024 2:21 pm
by freddyp
What you neglected to mention was that your screenshot comes from the outgoing connection of a "Submit hierarchy". I have to admit I had to search a bit to see what you were talking about. What this and also Magnus's reply illustrate is that you are using a feature of "Submit hierarchy" that not a lot of people are using.

You say that it errors out, but what is the exact error message in the Switch messages? Or does the "Submit hierarchy" element go into an error state?

What does the folder structure look like? Is it possible that there are folders that match with files inside that do not match? Or the other way around that there are folders that do not match with files inside that do match?