Loading

Receiving Error When Creating Lookup Field on an Object(s)

Data pubblicazione: Apr 2, 2026
Descrizione

When attempting to create a Lookup relationship field in Salesforce, you will see the error:

An internal server error has occurred. Error ID: XXXXXXXXX-XXXXXX (-1680058168)

Risoluzione

The error occurs because the 'Add Related List' option triggers an internal conflict on certain objects. To successfully create the Lookup field, disable this option during field creation and add the related list manually afterward.


1) Navigate to the object where you want to create the Lookup field (for example, Work Order) in Setup > Object Manager.

2) Click Fields & Relationships, then click New.

Setup > Object Manager showing the Fields & Relationships page for Work Order with the New button highlighted

3) Select Lookup Relationship as the Data Type and click Next.


New Custom Field wizard showing the Lookup Relationship radio button selected as the Data Type  
4) Choose the related object for the lookup (for example, Visit) and click Next.
New Custom Field wizard showing Visit selected as the related object for the Lookup Relationship  
5) Fill in all required fields and click Next.

New Custom Field wizard showing required fields filled in with the Next button highlighted  
6) Adjust Field-Level Security as needed and click Next.

Field-Level Security step showing profile permissions configured for the new Lookup field with Next button highlighted  
7) On the Page Layouts step, assign layouts as needed and click Next.

Page Layouts step showing layout assignments for the new Lookup field with Next button highlighted  8) Important: Before saving, uncheck the Add Related List checkbox, then click Save. This prevents the internal server error from occurring.

Final step of the New Custom Field wizard showing the Add Related List checkbox unchecked before clicking Save  
9) After the Lookup field is created successfully, manually add the related list back to the object's Page Layout.
Fields & Relationships page for Work Order showing the newly created Lookup field listed successfully  
After the lookup field is created successfully, manually add the related list to the object's Page Layout.

Numero articolo Knowledge

002234041

 
Caricamento
Salesforce Help | Article