[SalesForce] Deployment failing with “Could not resolve list view column: CORE.USERS.SAML_SUBJECT” on the User object

I am trying to deploy metadata to dev sandbox to another sandbox using Jenkins. I am getting an error as below:

[sf:deploy] Component Failures: [sf:deploy] 1. objects/User.object
(User.ActiveUsers) — Error: Could not resolve list view column:
CORE.USERS.SAML_SUBJECT (line 406, column 16)

Please let us me if anyone faced the same issue and please suggest the solutions.

Best Answer

Based on the column name "CORE.USERS.SAML_SUBJECT" it's complaining about something that is a standard user field in the source sandbox. If you're getting an error deploying to another sandbox it's likely that the field is only available if a specific feature is activated and it hasn't been activated in the target sandbox.

Most likely you'll need to first enabled SAML in the target org, go to setup and look for the single sign on settings, and then enable them. Once enabled give your deploy another try and see if it goes through.

Alternatively you might look at writing a pre-deploy script that strips that particular line from your User.object xml prior to deployment.