Error while using proposed values in a form
Hello Data Citizens,
I encountered a pretty strange error while using proposed values for relation types in a form.
I get some relation type ids from the core api and then use them as the proposed values for a relation type selection in a user form.
The problem is that I get the following error when I want to select a relation type from the selection in the form:
The requested Relation Type(s) was/were not found for id(s) = [7ff7c914-42c2-4319-88df-087a8d136c72].
Which is true because for this UUID there is no relation type. The correct UUID is:
7ff7c914-42c2-4319-88df-87a8d136c728
(notice the 0 behind the last hyphen and the missing 8 at the end)
The interesting thing is that the core api does provide the correct UUID (I checked via console) so this might be a front end issue?
Does somebody have experience with this?
Sincerely,
Stefan
satishkumar_sahoo
·3 years ago · EditedHi Stefan,
Glad to know it worked.
Cheers,
Satish
satishkumar_sahoo
·3 years ago · EditedHi @stefan.busch,
The relation type UUIDs are combined with the relation direction, which can be indicated by the following symbols:
For example, the relation “Asset uses Asset” can be represented as “00000000-0000-0000-0000-000000007030S” to indicate that the first asset is the source of the relation and the second asset is the target.
Before utilizing UUIDs as values for relation type selection in a user form, can you try to concatenate them with the appropriate relation direction?
Regards,
Satish
satishkumar_sahoo
·3 years ago · EditedHi @stefan.busch,
The relation type UUIDs are combined with the relation direction, which can be indicated by the following symbols:
For example, the relation “Asset uses Asset” can be represented as “00000000-0000-0000-0000-000000007030S” to indicate that the first asset is the source of the relation and the second asset is the target.
Before utilizing UUIDs as values for relation type selection in a user form, can you try to concatenate them with the appropriate relation direction?
Regards,
Satish
stefan_busch
OP3 years ago · EditedHello Satish,
I tried concatenating the UUID as a string with an “S” but when i then try to cast it back to an UUID I get an error in the script stating that the string is too long to be converted to an UUID.
What I then tried is to use the concatenated value without converting it back to an UUID and that does indeed work.
Thank you very much!
Sincerely,
Stefan