Skip to content
+1-888-319-3663

HELP ARTICLE

SalesForce update map returning the message ‘No record was found to update.’


A quick article to assist in resolving a common error message when creating a map to SalesForce.

First, we should address how SmartConnect sends data to SalesForce. SmartConnect connects to SalesForce using the SOAP API. For every record SmartConnect makes two calls to the web service. The first call is a SOQL query to check if the record exists, and the second call will create or update the record.

The SOQL Query

SmartConnect will run a query in SalesForce to return the Id of any existing records. The query will search using one of two logics. The first option, is a query with a where clause for each record used in the grouping of the destination. The second option is a query with a where clause using an External Id field.

*Note that if you map a field that is setup in SalesForce as an External Id, that field will be used in the lookup, and not the fields used in the grouping.

Trailing Spaces

We commonly see an issue with trailing spaces when the data source is GP. GP will put trailing spaces into fields which will cause a mismatch when mapping to SalesForce.

The workaround is to use a trim in your data source such as the following.

RTrim(RM00101.CUSTCLAS) As CUSTCLASS

Case Sensitivity

SalesForce Ids are case sensitive, so if you have saved the SalesForce Id to another system, make sure it has not changed the case.

External Id

If the issue isn’t one of the other two, then it is likely you have mapped a field that is setup in SalesForce as an External Id. Check in SalesForce to verify if there are any External Id fields on that object.

RECENT POSTS


Configuring Salesforce Integration User
Business Central Extension Publish Error
Re-registering a Change Data Source in Business Central on SmartConnect.com
Moving SmartConnect 21 to a new server
eConnect error 4628 - The Tracking Number (Tracking_Number) is empty

POPULAR POSTS


SSL Security error using OLEDB Connection
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms
Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))
The server process could not be started because the configured identity is incorrect.
Using WINSCP and a task to upload or download files from an SFTP site

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships Partner All Hands Call Popdock promotions release Salesforce Salesforce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training Zendesk

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.