Skip to main content
Solved

Can you do an UPDATE fme_db_operation using a field of type GUID as the Update Key?

  • Sep 11, 2017 2:20 PM UTC
  • 5 replies
  • 134 views

I am trying to use a GUID field to update records in an ArcSDE Writer. It seems to work perfectly when using an integer field for the Update Key, but when I use a field with type=guid the update does not go through.

Best answer by nathanatsafe

Different versions of FME treat GUIDs slightly differently, including possibly adding or dropping the surrounding { } characters, which can confuse a writer or a transformer like the ChangeDetector. The behaviour also varies slightly between File GDB and ArcSDE GDB. Close inspection of the attribute before the writer, as @david_r suggested, should reveal discrepancies if this is the root issue. Such an issue can be fixed with an AttributeManager.

View original
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.

5 replies

david_r
Celebrity
  • Sep 11, 2017 2:40 PM UTC

Which version of FME are you using? Older versions of FME didn't fully support GUID fields, but I believe FME 2016 and later should be able to do it.

I also suggest inspecting the contents of the GUID attribute just before the writer to make sure it contains a valid value.


  • Author
  • Sep 11, 2017 4:04 PM UTC

Using FME 2017.0.

The GUID looks to be a valid value.


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Sep 11, 2017 4:43 PM UTC

The GUID field is a character field. Are you using quotes in the right way?


steveatsafe
Safer
Forum|alt.badge.img+16

Using FME 2017.0.

The GUID looks to be a valid value.

Is it an old workspace being run in 2017? Re-add the writer might help. I'm not certain though where the GUID handling improved so this may not help at all. I have seen this work recently.

 

 


nathanatsafe
Safer
Forum|alt.badge.img+9
  • Safer
  • Best Answer
  • Sep 11, 2017 7:03 PM UTC

Different versions of FME treat GUIDs slightly differently, including possibly adding or dropping the surrounding { } characters, which can confuse a writer or a transformer like the ChangeDetector. The behaviour also varies slightly between File GDB and ArcSDE GDB. Close inspection of the attribute before the writer, as @david_r suggested, should reveal discrepancies if this is the root issue. Such an issue can be fixed with an AttributeManager.