- Posts: 109
Filename, Directory Name, error
- JD Cox
- Topic Author
- Offline
- User
Less
More
5 years 2 months ago - 5 years 2 months ago #3538
by JD Cox
Filename, Directory Name, error - Post(3538) was created by JD Cox
Thanks for your continued support. Since the recent update I really like the changes you’ve implemented. One issue we’re having is this error, “The filename, directory name, or volume label syntax is incorrect.” when we trying to export only one line of data from our WMS. Although rare, they’ve found a work around by managing the end-of-day process.
I’m creating the filename and directory during the export soI’m assuming it sets that after the first record has run.
I’m creating the filename and directory during the export soI’m assuming it sets that after the first record has run.
Attachments:
Last edit: 5 years 2 months ago by FlowHeater-Team.
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
5 years 2 months ago - 1 year 1 month ago #3539
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic Filename, Directory Name, error - Post(3539)
Hi JD,
I guess you´re using the .NET Script Heater to set the file name of the WRITE TextFile Adapter ? This way is very old and not more recommended to doing this.
A more elegant way is to use FlowHeater Parameter instead of the script. You can use Parameter directly as part of the file name.
e.g. $FILENAME$.csv
Here you´ll find a short example how to set dynamically the WRITE File name by using FlowHeater Parameter: How to set the write TextFile Adapter file name
I guess you´re using the .NET Script Heater to set the file name of the WRITE TextFile Adapter ? This way is very old and not more recommended to doing this.
A more elegant way is to use FlowHeater Parameter instead of the script. You can use Parameter directly as part of the file name.
e.g. $FILENAME$.csv
Here you´ll find a short example how to set dynamically the WRITE File name by using FlowHeater Parameter: How to set the write TextFile Adapter file name
Best wishes
Robert Stark
Last edit: 1 year 1 month ago by FlowHeater-Team.
Please Log in or Create an account to join the conversation.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
5 years 2 months ago - 5 years 2 months ago #3540
by JD Cox
Replied by JD Cox on topic Filename, Directory Name, error - Post(3540)
It does answer my question. I was not using the .NET Script Heater but I was using the Append Heater between the folder path and $FileName$ parameter with a / separator creating the $DIR$ parameter. I removed the Append Heater and added this, $DIR$/$FileName$, to the Filename on the Write side and it works perfectly.
As always, thanks for your help Robert
JD
As always, thanks for your help Robert
JD
Last edit: 5 years 2 months ago by JD Cox.
Please Log in or Create an account to join the conversation.
Time to create page: 0.266 seconds