Converting a lead in Salesforce Financial Services Cloud (FSC) fails and the following error appears:
"There was an error converting the lead and referral. Please resolve the following error and try again: FinServ.LeadTrigger: execution of AfterUpdate caused by: FinServ.MoiExceptionWrapper.TriggerException: Something's not quite right. Try your action again, and if the issue continues, contact your administrator for help.: unexpected token: 'FROM' (System Code)"
The steps below resolve lead conversion failures in Financial Services Cloud caused by the FinServ managed package trigger error FinServ.LeadTrigger: execution of AfterUpdate caused by: FinServ.MoiExceptionWrapper.TriggerException, and separately address why a custom field marked read-only remains editable for certain user profiles.
Cause 1: Missing field-level security or CRUD access on fields required by lead conversion
During lead conversion, FSC's MOI framework builds a dynamic SOQL query to read and update related records, including fields such as FinServ__ReferredByUser__c and FinServ__ReferredByContact__c. If the running user's profile or permission set does not grant Read access to one or more fields the query builder expects, FSC silently drops those fields from the field list rather than failing gracefully. If enough fields are dropped, the generated query ends up with an empty or malformed field list, for example "SELECT FROM Account WHERE Id IN (...)", which Apex rejects with an "unexpected token: 'FROM'" parse error. This surfaces to the user as the FinServ.LeadTrigger / MoiExceptionWrapper.TriggerException error. This is the confirmed root cause for this exact error signature, consistent with historical cases of this issue.
Steps to identify and fix the missing field access:
Cause 2: Restrictive organization-wide sharing defaults causing mid-transaction record-visibility loss
In orgs with Private organization-wide defaults (OWD) on Account, Contact, or related FSC objects, sharing rules can occasionally fail to apply quickly enough during the multi-step lead conversion transaction, causing the converting user to temporarily lose visibility into a record the FinServ trigger needs to query, producing the same class of trigger exception. If Cause 1 does not resolve the issue, review sharing:
Cause 3: Custom field marked read-only is still editable for certain user profiles
Field editability in Financial Services Cloud is controlled by field-level security, which is set independently on each profile and permission set. A field can appear read-only on one profile while remaining editable on another, because a profile or permission set assigned to those users grants Edit access to the field. Field editability is not enforced by a single org-wide field setting.
Steps to enforce read-only on a custom field across profiles:
005388903

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.