Skip to main content
Solved

Generate a Global ID with the @UUID() function

  • Dec 6, 2023 5:53 PM UTC
  • 4 replies
  • 1063 views

arcvancouver
Contributor
Forum|alt.badge.img+20

Hi all, I want to save a step in my workspace by using AttributeManager to generate an ESRI Global ID (aka, a UUID with "{}" in the string value) with the @UUID() function. I do this with the @TImestamp() function, but I don't quite understand the syntax...

 

@UUID(SIMPLE,UUID_FORMAT,[GLOBAL_ID|UUID_ONLY])

 

I've tried a bunch of different options, but how would I skip the "SIMPLE,UUID_FORMAT," options? All I want to stipulate is the GLOBAL_ID option.... thanks!

Best answer by takashi

Hi @arcvancouver​ 

Try this syntax

@UUID(SIMPLE,UUID_FORMAT,GLOBAL_ID)

In addition, in FME 2023, traditional UUIDGenerator has been promoted into UniqueIdentifierGenerator which has an option to generate GUID.

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.

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Dec 6, 2023 6:50 PM UTC

All you need to do is wrap the @UUID() function in "{}"

image


arcvancouver
Contributor
Forum|alt.badge.img+20
  • Author
  • Contributor
  • Dec 6, 2023 9:23 PM UTC

heh, that's what I was contemplating but shouldn't FME Function should do that with the GLOBAL ID option?


takashi
Celebrity
  • Best Answer
  • Dec 8, 2023 1:13 PM UTC

Hi @arcvancouver​ 

Try this syntax

@UUID(SIMPLE,UUID_FORMAT,GLOBAL_ID)

In addition, in FME 2023, traditional UUIDGenerator has been promoted into UniqueIdentifierGenerator which has an option to generate GUID.


arcvancouver
Contributor
Forum|alt.badge.img+20
  • Author
  • Contributor
  • Dec 12, 2023 12:34 AM UTC

Hi @arcvancouver​ 

Try this syntax

@UUID(SIMPLE,UUID_FORMAT,GLOBAL_ID)

In addition, in FME 2023, traditional UUIDGenerator has been promoted into UniqueIdentifierGenerator which has an option to generate GUID.

That works, thanks @Takashi Iijima​ - kudos for making sense of the support documentation for this! Gotta say though... the solution posed by @hkingsbury​ involves a lot less writing, ha!  😉