Loading

Salesforce Error No More Than 10 Columns May be Specified in searchResultsFields

Дата публикации: Jun 22, 2026
Описание

When validating or deploying a Change Set in Salesforce, you may encounter the following error:
"No more than 10 columns may be specified in searchResultsFields."

This error indicates that one or more objects included in the Change Set have a Search Result Layout configured with more than the maximum allowed 10 fields. Salesforce enforces a 10-field limit on the Search Result Layout for each object, and deployments that include an object exceeding this limit will fail validation.

Решение

How to Identify the Problematic Object

There are two methods to identify which object's Search Result Layout exceeds the 10-field limit:
Option 1 — Salesforce Setup Menu:

  1. In Salesforce, go to Setup > Object Manager
  2. Select the object you are deploying in the Change Set
  3. Click Search Layouts
  4. Open the Search Results layout and count the columns

Option 2 — Change Set XML Review:

  1. In the Change Set, click View next to the object file
  2. Select Details to inspect the XML
  3. Count the entries within the <searchResultsFields> node
⚠️ Important: The Name field does not appear in the XML of the Change Set file, but it still counts toward the 10-field limit. If the XML shows 10 fields, you actually have 11 (including Name) and must remove one.

Resolution Steps

  1. Identify the object(s) in the Change Set with more than 10 Search Result Layout fields
  2. In Salesforce Setup, reduce the fields in the Search Result Layout to 10 or fewer (including the Name field)
  3. Save the updated layout
  4. Re-add the object to the Change Set (or refresh the Change Set) and re-run validation
  5. Deploy the Change Set after successful validation

Mobile Consideration

For the Salesforce Mobile App on iOS and Android, only the first 6 fields from the Search Result Layout are displayed in the mobile app, regardless of the 10-field maximum allowed for desktop. When reviewing search layouts, consider both desktop and mobile user experience.

Дополнительные ресурсы

Salesforce Idea - Search Layouts only limited to 10 columns

Salesforce Help:

  Search Layout Guidlines

  Edit Your Search Layout

 

Номер статьи базы знаний

000386771

 
Загрузка
Salesforce Help | Article