Skip to main content
Solved

Attribute Manager has wrong attibute types


rtreecare
Contributor
Forum|alt.badge.img

I am taking a feature reader (ESRI geodatabase) and putting a feature class through an attribute manager.

 

The feature reader shows the guid fields correctly as guid.

FeatureReader_Shows_Correct_TypeHowever, the attribute manager shows them guid fields as buffer.

AttributeManager_Shows_incorrect_TypeThis is happening for all guid field. I've tried "reset table" and import from dataset in the attribute manager. I've also tried recreating the attribute manager. How can I fix the attribute types to be accuate?

Best answer by markatsafe

@rtreecare​ Internally, FME doesn't have a GUID data type. It's mapped to fme_buffer. The data (GUID value) will be unchanged.

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

5 replies

rtreecare
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • April 6, 2023

I also tried removing the attribute manager. The next transformer (change detector) shows the guid fields as varchar(200). So strange.


Forum|alt.badge.img+2
  • Best Answer
  • April 6, 2023

@rtreecare​ Internally, FME doesn't have a GUID data type. It's mapped to fme_buffer. The data (GUID value) will be unchanged.


hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • April 10, 2023
rtreecare wrote:

I also tried removing the attribute manager. The next transformer (change detector) shows the guid fields as varchar(200). So strange.

Ultimately, FME doesn't care what type the field is. Generally*, the only time it matters is making sure the correct data type is set in the writer

 

*there are some edge cases!


rtreecare
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • April 10, 2023
hkingsbury wrote:

Ultimately, FME doesn't care what type the field is. Generally*, the only time it matters is making sure the correct data type is set in the writer

 

*there are some edge cases!

Thanks. The writer is the ultimate issue and I'm trying to automate the attribute types from the reader. Everything I would try to import the attributes from the reader, guid would be of type string and the feature service writer would fail to update/insert. Seems like manual work is still the best option. ​


Forum|alt.badge.img+2

@rtreecare​ If you're using the FeatureReader, then you can get the schema feature. The schema feature will also have the source types. This will give you the guid type:

attribute{60}.fme_data_type fme_buffer

attribute{60}.name SourceGUID

attribute{60}.native_data_type guid

 

On the dynamic writer, you can choose to use the native types by setting the attribute fme_format_short_name as described here


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