Skip to main content
Question

Why features aren't showing up as user attributes in CSV writer.


jp12212
Contributor
Forum|alt.badge.img+4

This is a simple one but I'm new to this, I just want to output a CSV of the feature data as shown in the image one, in the other image (CSV writer) there is only three showing up. How do I get all to show up so I can export all of them?

 

Can someone please explain what I'm doing wrong here?

FMEQ1FMEQ2Thanks!

8 replies

j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • August 30, 2023

Hi jp, perhaps rather than an attributekeeper, you may want to try attributeexposer if there are missing attribute. Also on the output writer (feature type), there is another tab called 'format attributes'. You can tick/expose these if you want them written out in addition to those specified on the user attribute definition


jp12212
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • August 30, 2023

Thanks for the info. I've just had a look into it and am getting the same problem.

 

Tried attribute exposer but it's all autocad related and doesn't have the ones I need. I literally just want to send the attributes shown beneath to a csv writer.

 

I tried and they won't show up when I open the csv writer.

If I manually type them into user attribues, they add a 00 at the end and won't translate.

They are not showing up in 'format attributes'

 

I think there's something basic I'm missing here as this shouldn't be this hard.

FMEQ3 

FMEQ4 

Cheers


j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • August 30, 2023

OK i think the attributeexposer looks about right. Inspect the results of this transformer and check all the values are there. Then connect it to the writer.

Remove any '....00' records in the attributedefinition

Write the output and inspect to see if the format attributes have indeed written


jp12212
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • August 30, 2023

It's still not working, have tried a few diff. ways and they won't show up in the attribute exposer. Can't select anywhere in the CSV writer either..... stumped.

 

FMEQ5 

 


j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • August 30, 2023

So the output is not writing the CSV as per what expections? You want a mixture of user attributes, these need to be passed to the writer.... and format attributes - which you either expose before the writer OR tick them on in the writer format attribute tab

 

 

Perhaps you can share your workspace. If you run it with feature cache, you can go File Save As > Template. Tick on feature cache. Attach the fmwt


jp12212
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • August 30, 2023
j.botterill wrote:

So the output is not writing the CSV as per what expections? You want a mixture of user attributes, these need to be passed to the writer.... and format attributes - which you either expose before the writer OR tick them on in the writer format attribute tab

 

 

Perhaps you can share your workspace. If you run it with feature cache, you can go File Save As > Template. Tick on feature cache. Attach the fmwt

I've just attached, thank you !

 


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • September 2, 2023
jp12212 wrote:

I've just attached, thank you !

 

Hi @jp12212​ fme* attributes can't be written out to CSV2. I don't remember the reason but this is likely intentional. Use an AttributeCopier instead of an AttributeExposer to set those format attributes to more meaningful field names.


jp12212
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • September 11, 2023

I somehow got this to work - I clicked between 'manual', 'automatic' and 'dynamic' under attribute definition under user attributes.

 

Thanks all for the assistance.


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