Skip to main content
Solved

Target attribute containing a colon with TestFilter


I have loaded some features from an Open Street Map file (.OSM). Some features have the attribute "oneway" and "oneway:bicycle". I'm a able to create a test clause targeting "oneway". When I try to do the same for "oneway:bicycle", I get an error: "Specified attribute does not exist" (see image at the end).

 

This causes the software to show a warning before running the workflow. Strangely enough, the filter is applied perfectly fine! Am I doing something wrong? Or can the warning maybe be a bug?

 

fme-issuefme-issue2

Best answer by ebygomm

Is the attribute actually exposed? Just because it is available in the feature information window doesn't mean it's available on the canvas. It does exist, hence why your workflow still runs, despite the warning, but if it's not exposed you can't reference it in a transformer

View original
Did this help you find an answer to your question?

4 replies

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • February 8, 2023

Try exposing oneway:bicycle prior to your TestFilter using an AttributeExposer.


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • February 8, 2023

Is the attribute actually exposed? Just because it is available in the feature information window doesn't mean it's available on the canvas. It does exist, hence why your workflow still runs, despite the warning, but if it's not exposed you can't reference it in a transformer


  • Author
  • February 8, 2023
dustin wrote:

Try exposing oneway:bicycle prior to your TestFilter using an AttributeExposer.

That did the trick, thank you!


  • Author
  • February 8, 2023
ebygomm wrote:

Is the attribute actually exposed? Just because it is available in the feature information window doesn't mean it's available on the canvas. It does exist, hence why your workflow still runs, despite the warning, but if it's not exposed you can't reference it in a transformer

Adding the AttributeExposer did indeed work, thank you!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings