Skip to main content
Solved

Generate a Global ID with the @UUID() function


arcvancouver
Contributor
Forum|alt.badge.img+9

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
Did this help you find an answer to your question?

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • December 6, 2023

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

image


arcvancouver
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • December 6, 2023

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


takashi
Influencer
  • Best Answer
  • December 8, 2023

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+9
  • Author
  • Contributor
  • December 12, 2023
takashi wrote:

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!  😉 


Reply


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