Skip to main content
Question

Attribute Manager changing \\ to /

  • June 4, 2021
  • 2 replies
  • 13 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
Influencer
Forum|alt.badge.img+46
  • Influencer
  • June 4, 2021

Are you creating the file path from an existing attribute?


bubblebeb
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • June 4, 2021

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