Skip to main content
Solved

Generate a Global ID with the @UUID() function

  • December 6, 2023
  • 4 replies
  • 747 views

arcvancouver
Contributor
Forum|alt.badge.img+19

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.

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+64
  • Celebrity
  • December 6, 2023

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

image


arcvancouver
Contributor
Forum|alt.badge.img+19
  • 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
Celebrity
  • 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+19
  • Author
  • Contributor
  • December 12, 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.

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