Salesforce field level security deployment fails most often because fieldPermissions live on profiles and permission sets, not on the field itself, and a deploy can push a new field without pushing the access that lets anyone see it. The field exists in the org. Nobody can read it. Support tickets follow within the hour, and the root cause rarely shows up in the deployment log because the deploy technically succeeded.
This is the gap between metadata existing and metadata being usable. A new custom field deploys cleanly, validation passes, tests run green. Then a sales rep opens a record and the field just isn't there. No error, no warning. The field is hidden because its fieldPermissions entry never made it into the package, and Salesforce defaults new fields to invisible for every profile that wasn't explicitly granted access in the metadata you shipped.
Why Field-Level Security Deployment Behaves Differently From Other Metadata
Most metadata types are self-contained. A validation rule deploys with its formula and its error message baked in. A flow deploys with its logic intact. Field-level security is relational by design: it connects a field to a profile or permission set, and both halves have to travel together or the connection means nothing.
The practical consequence is that FLS deployment success depends entirely on what you remembered to include, not on what Salesforce enforces automatically. There's no referential check that says "this field has no visibility anywhere, stop the deploy." The platform lets you ship a field into total invisibility and calls it a successful deployment.
I'd argue this is the single most underrated failure mode in Salesforce release management. Teams spend hours hardening validation rule logic and test coverage, then lose a sprint to a VP who can't see a field that's been live in production for three days.
Profiles vs Permission Sets in the Deployment Package
Admins who manage access through profiles directly embed fieldPermissions inside the Profile metadata type. Every field grant, every object-level permission, sits in one large XML file per profile. Deploy the profile, and you deploy whatever field access was captured at the time you retrieved it, which means any field added after that retrieval is missing unless you re-pull the profile before packaging.
Permission-set-based orgs handle this more cleanly, since each PermissionSet metadata component carries its own fieldPermissions block and deploys as an independent unit. But cleanliness here is relative. If a new field needs a new entry in an existing permission set, you still have to edit that permission set's XML and include it in package.xml, or the deploy ships the field with zero reference to it anywhere.
- Profiles bundle access for an entire role in one file, so a missed retrieval step silently drops every field added since the last pull.
- Permission sets isolate access by function, which limits blast radius but still requires an explicit update every time a new field needs a grant.
- Mixed orgs running both models double the places a grant can go missing, since nobody checks both consistently.
The Deployment Order Problem Nobody Talks About
Field-level security references two things that have to already exist: the field and the profile or permission set. Deploy the fieldPermissions entry before the custom field metadata lands, and the reference fails outright. Deploy the field without the fieldPermissions entry, and the reference never gets made at all. Both outcomes look fine in a deployment success message.
Metadata API deploys process components inside a dependency graph it builds automatically, which usually handles field-before-permission ordering without intervention. Change sets are less forgiving. A change set built from a partial selection can include the fieldPermissions reference for a field that wasn't added to the same change set, and the deploy either errors on a missing reference or, in looser configurations, silently drops the orphaned permission.
This is exactly the kind of ordering failure that manual change set building invites. Someone selects the new fields. They forget the profile update sits in a different change set because it was edited on a different day. Two deploys later, the fields are live and invisible, and the person who built the change set has moved to a different task entirely.
Security Review Fields That Everyone Forgets
Certain fields carry extra weight: anything flagged for encryption, anything referenced in a sharing rule criteria, anything tied to a validation rule that checks field values other users can't see. Deploy the field without matching FLS, and you get a validation rule throwing errors that reference data the user triggering the rule literally cannot view. That's a support ticket with a confusing story attached, and it eats twice the diagnostic time of a normal access issue.
Fields used in formula fields deserve a second look too. A formula field can reference a hidden field and still calculate correctly, since formula evaluation ignores FLS entirely. Users then see a calculated value derived from data they're not permitted to see directly, which isn't a deployment bug exactly, but it's a security review failure waiting to surface during an audit.
Multi-select picklists and lookup fields compound the problem further. A lookup field deployed without FLS doesn't just hide a value. It can break related list rendering on the parent object, since the platform won't render a related list row referencing a field the user has no access to, and the related list silently shows fewer records than actually exist.
How to Deploy Field-Level Security Without the Guesswork
The fix starts with treating fieldPermissions as a first-class dependency of every new or modified field, not an afterthought bolted onto a change set at the last minute. Any deploy that introduces a field should carry its full access matrix in the same package: every profile and permission set that needs to see it, bundled with the field metadata itself.
DeployEzee resolves this by mapping metadata dependencies before a deploy runs, not after a user reports a blank field. It traces which profiles and permission sets reference a given field, flags any field in the package with no corresponding fieldPermissions entry, and surfaces the gap before the deploy fires. That single check removes the most common cause of post-deploy access tickets, and it does it without requiring an admin to manually cross-reference profile XML against a field list.
Sandbox testing has to mirror production's actual permission set assignments too, not a convenient subset. A field that's visible to System Administrator in a sandbox full of admin-only test users tells you nothing about what a standard sales rep will see in production. Testing with a representative, lower-access user profile before the deploy ships catches the gap that a clean validation log never will.
Building a Repeatable Field Access Checklist
Teams that stop treating FLS as a one-off cleanup task and start treating it as a deployment gate see the ticket volume drop fast. The checklist is short but it has to run every time, not just when someone remembers.
Confirm the field exists in the target org's metadata before the fieldPermissions reference deploys. Confirm every profile or permission set that needs visibility is included in the same package.xml, not a separate change set built on a different day. Confirm a non-admin test user can actually see the field in the target sandbox before promoting to production, and confirm formula fields referencing hidden data get flagged during the security review step rather than discovered during an audit.
None of these steps are complicated individually. What breaks teams is doing them inconsistently across dozens of releases a year, which is precisely the kind of repetitive dependency check that should be automated rather than remembered.
Frequently Asked Questions
Why does a new Salesforce field show up as blank after deployment?
The field metadata deployed successfully but its fieldPermissions entry for the relevant profile or permission set did not travel with it. Salesforce defaults new fields to hidden for any profile that was not explicitly granted access in the deployed metadata. The deploy log shows success because the field itself deployed fine; the access grant simply never existed in the package.
Do change sets handle field-level security deployment reliably?
Not consistently. Change sets depend on manual component selection, so a fieldPermissions reference can be included without the field it points to, or vice versa, if they were added to the org on different days. Metadata API deploys with a proper package.xml handle dependency ordering more predictably, since they resolve the full reference graph rather than relying on what an admin remembered to click.
Should field access be managed through profiles or permission sets?
Permission sets isolate access by function and are easier to audit and deploy independently, which makes them the stronger long-term choice for most orgs. Profiles still control baseline access and are harder to avoid entirely, so most mature orgs run a mix: minimal profile-level access plus permission sets layered on top for specific field and object grants.
Can a formula field expose data a user does not have access to?
Yes. Formula field evaluation ignores field-level security on the fields it references, so a formula can display a value derived from a hidden field even though the underlying field itself stays invisible to that user. This is not a deployment bug, but it is a common security review gap that surfaces during audits rather than during testing.
How can teams catch missing field-level security before it reaches production?
Test every new field with a representative, lower-access user profile in the sandbox, not just with a System Administrator account. Automated dependency checks that map fields against their required fieldPermissions entries before a deploy runs catch the gap earlier and remove the need for manual cross-referencing of profile XML against a field list.