Some customers who have Search enabled on a Salesforce External Data Source may encounter the following error when attempting to search for a record associated to an External Object through Global Search:
"ODataService: An error occurred while connecting to the external system. Please try again, or contact your administrator about this error. Attempted to reach this URL: https://mycompany.com/ExternalService/vwExternalObject1
This error occurs because Salesforce does not index External Objects locally. Instead, Salesforce makes a callout to the external endpoint for each External Object backed by the External Data Source whenever a search is performed.
Typical Steps to Reproduce:
This error occurs when Salesforce attempts to call out to the external system to retrieve search results for External Objects backed by an OData External Data Source, and the external endpoint returns an error or is unreachable. Because Salesforce does not store or index External Object data locally, all search queries are forwarded directly to the external system.
Salesforce routes search queries directly to the external endpoint. If the external system is misconfigured, unavailable, or returns an HTTP error, the error message will contain "Attempted to reach this URL."
A general diagnostic rule: if the error message contains "Attempted to reach a URL," mentions an HTTP error code, or references a specific endpoint, the issue originates on the external system side — not within Salesforce.
An "Error received: 500" is an HTTP 500 error coming from the external system. With OData, this typically indicates one of the following: the external system does not support OData search, a gateway is redirecting and causing issues with the request, or search is not configured on the external system.
Disable search on the External Data Source by unchecking Enable Search in Setup > Data > External Data Sources > Edit. To control which specific external objects are searchable, select or deselect Allow Search on each individual External Object.
000387806

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.