I’m try to setup the flow that receives file from a FTP server in multiply folders and then send an email with the subject containing the sub folder name. The flow I’ve create is as per below
In the Navis, a script, connector I’ve added the below script however I keep receiving the below message
Formatter [ subfolder_path ] failed in the evaluation of [subfolder_path]. The error was: The value of the attribute could not be accessed: The attribute does not exist.
please can anyone guid me to a better solution or why I’m receiving the message.
The error message suggests that the attribute subfolder_path does not exist in the context where the script is being executed. This means that subfolder_path is either not being set in the flow or is not accessible when the script runs.
When receiving a file from a File or FTP connector, a header named RemotePath is automatically available. This header contains the full path of the file, including its subfolder structure.
If you need the subfolder name, you can extract it from the RemotePath header instead of relying on subfolder_path, which may not exist. Depending on your requirements, you can:
If you need help extracting only the subfolder name, let us know how your file paths are structured, and we can assist with the correct trimming logic.
This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
Review section III of our Privacy Policy for more information on cookies.
To opt out of “sale” or “sharing” of non-cookie data, visit our Privacy Rights Request Form.