Skip to main content

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!

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


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


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


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 

 


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


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 !

 


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.


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

 

Thanks all for the assistance.


Reply