DC Setup - Custom Field error when linking Sandbox license

Last published at: July 11th, 2023

Custom Field error when linking Sandbox license

When linking or having linked a sandbox to your Duplicate Check license, you might get an error stating

"Custom Field *** is configured in a scenario, but custom fields are not licensed."

To solve this, perform a hard license refresh in the Sandbox. Execute the following code in Developer Console > Debug > Open Execute Anonymous Window:

Database.executeBatch(new dupcheck.dc3LicenseBatch());