-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load of metadata from db failed for metadata of type:Profile and file name:admin. #672
Comments
Here's the scratch org definition: { |
I too am seeing this error. Ive even went as far as ignoring profiles in the |
@shetzel Is there any workaround to this problem? I am also facing the same issue. |
Hello everyone, same issue here. When we create a scratch org from the org shape based off of our Production Org, we have the same issue : We currently have no workaround, and it prevents us to switch to the use of Salesforce DX the way we want to use it. Any update on that particular issue ? More info on my side if it can help : sfdx -v sfdx plugins --core Thanks |
I have tried using the "hasSampleData": "true", in the project-scratch-def.json file and it solved my issue of fetching profiles from scratch org, not sure what is the underlying issue. |
It did the trick for me, thank you for posting that, helpful workaround ! |
It's been a while, but I saw someone else has reported this using ANT, so I'm sure this is not a CLI problem (the error comes from the Metadata API itself) https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A9379SAB I'm going to mark this as owned by another team. If you can still reproduce it, open a support case to get that team's attention. |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
I'm closing this one as stale. We recommend ignoring Profiles via |
Summary
I am attempting to use the Beta Org Shape functionality to build a scratch org from my production org's shape. I am running into the following when I attempt to pull after pushing my repo:
sfdx force:source:pull
ERROR running force:source:pull: 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:admin.
I am not sure where it got the profile with the lowercase name "admin" but that word doesn't appear anywhere in my repo.
Steps To Reproduce:
sfdx force:org:shape:delete -u DevHub
Delete shapes for org with name: [email protected]? Are you sure (y/n)?: y
Successfully deleted shape(s) from org: 00D500000006eI1EAI.
sfdx force:org:shape:create -u DevHub
3SR3n0000008OIAGA2 scratch org configuration (shape) was created in the source org.
sfdx force:org:shape:list
=== Org Shapes
ALIAS USERNAME ORG ID SHAPE STATUS CREATED BY CREATED DATE
────── ──────────────────── ────────────────── ──────────── ──────────────────── ────────────────────────────
DevHub [email protected] 00D500000006eI1EAI Active [email protected] 2020-10-11T20:27:46.000+0000
sfdx force:org:create -f config/sfcm-scratch-def.json
Successfully created scratch org: 00D2D000000DiDMUA0, username: [email protected]
sfdx force:config:set defaultusername=[email protected]
sfdx force:source:push -f
Job ID | 0Af2D00000WfuxWSAR
SOURCE PROGRESS | ████████████████████████████████████████ | 403/403 Components
=== Pushed Source
...Repo loaded...
scromie@6SBGW33:~/projects/sfcm$ sfdx force:source:status
=== Source Status
STATE FULL NAME TYPE PROJECT PATH
────────── ─────────── ─────── ────────────
Remote Add AppSwitcher AppMenu
Remote Add Admin Profile
sfdx force:source:pull
ERROR running force:source:pull: 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:admin.
Expected result
I should have gotten a successful result of the source coming into my local.
Actual result
I got the error indicating the pull process couldn't pull the "admin" profile from an internal db.
Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.75.1 wsl-x64 node-v10.20.1
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):
salesforcedx 49.13.1
OS and version:
Windows 10 with WSL (Ubuntu 18.04)
The text was updated successfully, but these errors were encountered: