Skip to main content
Question

Attribute Manager changing \\ to /

  • Jun 4, 2021 9:00 AM UTC
  • 2 replies
  • 37 views

bubblebeb
Contributor
Forum|alt.badge.img+6

I have used an Attribute Manager to create a new attribute for a file path.

The path is for example c:\\FME\\data\\myworspace\\sourcefile.html

The output from the Attribute Manager is c:\\FME\\data/myworkspace\\sourcefile.html

 

It is outputting a random / in the middle of the path rather than \\.

This results in the path failing to work.

 

I can use a string replacer after to correct it but it is not working correctly.

Any ideas on why it does this would be great.

2 replies

ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Jun 4, 2021 9:29 AM UTC

Are you creating the file path from an existing attribute?


bubblebeb
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Jun 4, 2021 10:24 AM UTC

Are you creating the file path from an existing attribute?

Partially yes. I am basically doing this

c:\\FME\\data\\myworkspace\\@Value(User) sourcefile.html