Skip to main content
Solved

Keep the fme_time Schema When Using Conditional Values

  • January 27, 2023
  • 4 replies
  • 26 views

krystalp
Contributor
Forum|alt.badge.img+3

I have 3 datasets that are fme_time schema type and I want to use the AttributeManager Conditional Value to set if/else statements depending on which time values are missing. When I do this, the resulting attribute type is fme_varchar and not fme_time. If I create a new attribute and point to just any one of these attributes, the new resulting attribute is still fme_time. So it appears the conditional value setting is changing it and I can't figure out how to change it back to a time. I have tried parsing, formatting, casting and nothing changes the varchar back to time. Are there any ideas to fix this?Condition Statement and attributes 

Showing original attribute is fme_time 

Showing resulting conditional result is fme_varchar 

Showing resulting simple field creation from time field is still fme_time 

Best answer by dustin

I don't have answer for you in any of the official releases of FME, but in the beta version of FME2023 (build 23215), I can confirm that the new 'type' parameter in the AttributeCreator and AttributeManager does in fact change the type to fme_time.imageimage

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.

4 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • 627 replies
  • Best Answer
  • January 27, 2023

I don't have answer for you in any of the official releases of FME, but in the beta version of FME2023 (build 23215), I can confirm that the new 'type' parameter in the AttributeCreator and AttributeManager does in fact change the type to fme_time.imageimage


krystalp
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 7 replies
  • January 27, 2023

I don't have answer for you in any of the official releases of FME, but in the beta version of FME2023 (build 23215), I can confirm that the new 'type' parameter in the AttributeCreator and AttributeManager does in fact change the type to fme_time.imageimage

Thanks for checking that. Are you able to test with it being in a conditional value? That’s where I was having issues.


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • 627 replies
  • January 27, 2023

Thanks for checking that. Are you able to test with it being in a conditional value? That’s where I was having issues.

Yes, confirmed that it still works as expected with a conditional statement.


krystalp
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 7 replies
  • January 27, 2023

Thanks for checking that. Are you able to test with it being in a conditional value? That’s where I was having issues.

Great. Looking forward to 2023 coming out. :)