Skip to main content
New Participant
Apr 6, 2021 9:06 PM UTC
Question

Error when creating record type

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

    Inspiring
    Apr 7, 2021 4:15 PM UTC

    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?  

    New Participant
    Apr 7, 2021 5:13 PM UTC

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

    Inspiring
    Apr 7, 2021 5:13 PM UTC

    Glad you found it!