Unable to pull custom Profile from "empty" EE scratch org
Last updated 2022-02-10 ·Reference W-4512089 ·Reported By 20 users
When you create a custom profile in an Enterprise Edition Scratch Org, you may receive an error when retrieving source to into your SFDX project
1. Create sfdx Project
sfdx force:project:create -n TestProject
2. cd to Project
3. Create scratch org
sfdx force:org:create edition=enterprise -a Scratch1
4. Open Scratch Org
sfdx force:org:open -u Scratch1
5. Create Custom Profile in Scratch Org
Setup->Manage Users->Profiles->New Profile
Existing Profile Standard User
Profile Name TestNewProfile
6. Pull Scratch Org Source (Notice Error)
sfdx force:source:pull -u Scratch1
Error: ERROR: Metadata API received improper input. Please ensure file name and capitalization is correct. Load of metadata from db failed for metadata of type:Profile and file name:testnewprofile.
There are a few options to work around this issue:
1. Save the profile after creating it.
Edit (no actual edits necessary)
2. Use a non Enterprise Edition scratch org
sfdx force:org:create edition=developer -a Scratch2
3. When creating the Enterprise Edition scratch org, create it with sample data
sfdx force:org:create edition=enterprise hasSampleData=true -a Scratch6
Reported By (20)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.