Loading

Error "Attempt to de-reference null object" within the Click2Create field sets in Maps

Julkaisupäivä: Aug 4, 2023
Kuvaus
When performing the Click2Create action to create new records directly from Maps, sometimes you may notice an error like the one below:
2717 : Attempt to de-reference null object

This error usually occurs when the values for Latitude and Longitude fields are not populated in the Click2Create settings for a particular Object.
 
Ratkaisu

Follow these steps to fix the error:

  1. In Salesforce, navigate to Setup | Installed Packages | Configure for the Salesforce Maps.
  2. Click on Click2Create tab.
  3. Select the Object.
  4. Make sure that the Latitude and Longitude fields in the Field Mappings section are populated with the required custom/standard fields.
  5. Click on Save.

Once saved, reopen the Salesforce Maps app and try using Click2Create. You will notice the error will go away after the field mapping is corrected.


Note: Sometimes you may also notice that upon clicking the Click2Create button none of the fields appear in the Field set. This is because of a limitation within our product which does not allow any type of relational fields such as look-ups to be a part of the Field Set. For example please refrain from using relationships to reference fields between two objects i.e Account ID > Phone_Dial or Account ID > Contact Name on the Field Set and instead use the standard fields.
 
Knowledge-artikkelin numero

000389175

 
Ladataan
Salesforce Help | Article