function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FilikinFilikin 

NPSP data import - Contact Custom Unique ID as an autonumber

Hi,
I am using the NPSP batch data import to import donations.
I want to match on an unique ID, which is an autonumber on the Contact.
I can't include the autonumber in the field mapping and when I run the Process Batch, I get an SOQL error that "SObject row was retrieved via SOQL without querying the requested field: " and the field I want to match on.
Turning off the autonumber and then including the field in the mapping fixes the problem, but is not a solution
AnudeepAnudeep (Salesforce Developers) 
I don't think there isn't any solution other than including the missing field in the Query.

I suggest reviewing this help article that provides workarounds when such issue occurs when accessing a Visualforce page with a standard controller and a custom controller extension