Skip to main content
April 6, 2021
Question

Error when creating record type

  • April 6, 2021
  • 3 replies
  • 0 views

My database has a primary key and it is unique.

CDT has been created from the database, and with same primary key as database.

But when I create a record type from this entity, I get UI error when saving the record type. What can cause this?

The System Has Encountered an Error

HTTP Code: 500 APNX-1-4198-000 Error Evaluating UI Expression Expression evaluation error [evaluation ID = 8OWKHVBV] : [valid:false,syntaxError:false,value:Expression evaluation error: An error occurred while executing a save: Expression evaluation error at function a!rtd_sanitizeRecordType [line 549]: Keys must be unique (case insensitive match) [createdby]]

    3 replies

    April 7, 2021

    Is it possible you're trying to auto-generate the primary key in two places?  Through the primary key definition in your CDT as well as a sequence setup in the database itself?  

    April 7, 2021

    thanks for replying. a teammate found the cause. database is using the same field name twice. so cdt also has duplicate fiels names.

    April 7, 2021

    Glad you found it!