Question

Alternate Key - receiving error

  • 14 September 2020
  • 4 replies
  • 151 views

Userlevel 3
Badge +7

Attempting to set an alternate key on a custom field and receiving the following error:

COMPILE_ERROR2: Error during compilation of LU.

 

Error details: -12801 in \CUSTOM LU

CODE\BILLING_CUSTOMER_JOBS_CLT.CRE\ALTERNATE_KEY

 

Has anyone come across this and come to any solution?


4 replies

Userlevel 5
Badge +11

The column which you are setting as the alternate key, has that already got an index defined?  If so, remove the index and repeat the process of setting the alternate key.

Userlevel 3
Badge +7

None of the columns are indexed, this is what has me stumped.

 

Userlevel 5
Badge +11

Have you got conflicting data i.e. duplicate records against the alternate key column.  If so, you will need to clean up the data first as well before setting the alternate key.

There is a similar thread “Custom Form Primary Key” that highlights a similar if not the same issue.

Userlevel 3
Badge +7

I will look into this, thank you for responding!  This has given me hope!

Reply