Skip to main content
Released

Automatic feature definition to preserve data types

Related products:FME Form
  • Mar 11, 2016 12:00 AM UTC
  • 9 replies
  • 77 views

david_r
Celebrity

When setting the output feature definition to "Automatic", it would be nice if the data types were preserved even when the attributes are renamed in the workspace. As it is, all the data types are set to something like "char(200)" if the attributes hitting the writer has been renamed.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

9 replies

embeezy
Contributor
Forum|alt.badge.img+7
  • Contributor
  • Mar 11, 2016 3:54 PM UTC

An example:

 

the data types are retained in the Attribute Manager until just one attribute is renamed. From that moment on all data types are lost and set to "char(200)".

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Mar 11, 2016 5:07 PM UTC

But how could you know the data type if an attribute is created in the workspace (by AttributeManager or any other transformer)?


fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • Mar 13, 2016 6:17 AM UTC

We'd have to give you the option to set the data type in, say, the AttributeManager. And any attributes added by other transformers would need their types added too. We are going to make progress on this in FME 2017, but complete nirvana may take a couple releases.


david_r
Celebrity
  • Author
  • Mar 14, 2016 9:23 AM UTC

I don't mind attributes created inside the AttributeManager to lack data types, but it is unexpected that all existing attributes lose their datatypes if one of them is renamed.


fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • Mar 16, 2016 4:43 AM UTC

Understood. That is a surprise. We'll check into it.


darkspatiallord
Supporter
Forum|alt.badge.img+8

 

When a field is unknown as it comes in via a generic via a generic reader or dynamic attributes, this often is a problem. Especially when writing out to databases that are a bit more picky.

Hi,

 

Were you able to check into it?

 

 


The AttributeRenamer transformer should get an extra option of Type, to be able to quote the data type we wish the output to be in.


LizAtSafe
Safer
Forum|alt.badge.img+26
  • Safer
  • Oct 8, 2024 11:36 PM UTC
Open→Released