Problem:
An error occurs: “Attempt to de-reference a null object”.
This can happen in several situations, for example when opening an embedded page link, when creating a new record from a related object list, or when creating a new job.
Answer:
This error indicates that an Object, Record Type, or Field is not available anymore in the Org, but is still configured somewhere in the Duplicate Check Setup.
A situation that occurs relatively often is that in DC Setup an Object Filter refers to a field that does not exist anymore, or no field was selected in the first place.
To find and solve the cause of the error:
- In DC Setup, at left, click Setup Check to see if there are any configuration problems, and click Fix All if needed.
- In DC Setup, open the Object where the error occurs.
Go to the <Object> Settings tab, click Show Advanced Settings, and scroll to Object Filter.
Make sure there is no empty field reference there. - In the case of Record Types, it is recommended to change their settings in DC before removing them from the Org.
In DC Setup, open the Object where the error occurs and go to the Record Types tab.
Set all settings to 'nothing selected' for the record type that will be deleted.
If this doesn't solve the problem, don't hesitate to contact Plauti Support! We're glad to help.