Path to String in Loop

I’m trying to use the Path to String node inside a loop as follows:
1
The Table Row to Variable Loop Start node creates a Path variable:


The Path to String node doesn’t recognize it:

I’m probably doing something stupid, but I can’t figure it out. I’d appreciate help.

Hi @rfeigel

Did you consider something like this?
afbeelding
gr. Hans

2 Likes

Hi @rfeigel , as per the suggestion from @HansS , there is no need to use a loop to convert the paths as the Path to String node will act on the entire table.

I cannot think immediately of a use case involving a Table Row to Variable Loop Start that would then link back to the original data table, unless you are building some kind of “cross join” process.

Just following up on the conversion of a Path variable, if you do have a use case requiring an individual Path flow variable to be converted, there is the Path to String (Variable) node.

1 Like

Thanks @HansS & @takbb. Today’s my 78th birthday so I’ll claim senility in my defense. The String Manipulation node doesn’t seem to recognize the string flow variable. I want to process the filenames individually because I’m renaming them to write to dynamically configured locations.



3 Likes

Hi @rfeigel,

happy birthday and please don’t demote yourself because of your age, they are levels and you certainly are leaps ahead of us :partying_face: :sweat_smile:

I suppose the issue in your workflow emerges from the missing input connection of the String Manipulation “Extract Subfolder”.

Vs. when connected

Here is the test workflow:

Best
Mike

3 Likes

Hi @rfeigel many happy returns!

What is age, but simply currentIteration in an “Orbit Sun Loop” :wink:

2 Likes

@HansS @mwiegand @takbb
I think I finally figured it out. I want to read a list of csv files with format “Payments_ddmmyyyy”. I want to extract the mmyyyy and create a folder with that name and then write the original file to the appropriate folder. I struggled but this seems to work,

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.