I have a project with a scratch org created using some profiles that date from the MDAPI days. The profiles look good in the org.

Having added some record types, I expected:

sfdx force:source:pull

to do a good job of pulling the profiles back. But the profiles are about 1/3 the size of the original ones, and are missing many elements such as applicationVisibilities and recordTypeVisibilities needed for the source to be pushed in our CI (Continuous Integration) environment.

Resorting to:

sfdx force:mdapi:retrieve

and doing some manual cut and pasting of just the profiles appears to solve the problem.

What is your experience in this area? Is there something I have missed here (release notes, known issues)? I am using the latest version of SFDX and the plugins.


Just added a field and did another sfdx force:source:pull with this result:

Element                  Pull Result
*******                  ***********
applicationVisibilities  missing
classAccesses            missing
fieldPermissions         expected 1862, but only 1368
layoutAssignments        missing
objectPermissions        missing
pageAccesses             missing
recordTypeVisibilities   missing
tabVisibilities          missing
userPermissions          OK
userLicense              OK
  • Application visibility might be related to W-2881774 ("Unable to retrieve AppMenu.Switcher)? But I don't see how record type visibility could be affected. Out of curiosity, what is missing from those? – Renato Oliveira Mar 21 '19 at 21:49
  • 1
    Hi @RenatoOliveira, I've added what I'm seeing to the question in a PS. Very weird. – Keith C Mar 22 '19 at 10:24

I went to the Metadata Coverage Report and searched for Profile. It showed up two Known Issues for Profile:

Those might explain some of the dependencies that you are encountering.

| improve this answer | |
  • 1
    Thanks Daniel - a useful page in general too. Looks like for now it has to be sfdx force:mdapi:retrieve. – Keith C Mar 28 '19 at 7:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.