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
erikdozsaerikdozsa 

Force.com deployment error: Account: No more than 6 columns may be specified in lookupFilterFields

Hello,

 

I am trying to deploy the account object from SandBox to Prod and I am getting the following error:

 

 Account: No more than 6 columns may be specified in lookupFilterFields

 

Could you please help me fix this issue?

 

Thanks so much!

Vinita_SFDCVinita_SFDC

Hello,

 

Are you having more than five lookup filters on Accounts object? The limit is 5, would suggest you to delete one filter and then deploy. Also if you created a filtered lookup on a field that looks up to another object, both objects must be deployed into the organization at the same time. 

However there might a scenario wherein you may not be able to deploy even if both objects were deployed at the same time, nor if the filter was deactivated. If this does't work use the below Workaround :

You are supposed to delete a lookup filter on the Object that pointed to the Accounts object. This will resolve the issue and you will be able to deploy.