Skip to content
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

force:cmdt:record:insert causes deployments to fail if there is a Metadata Relationship data type #544

Open
louisskelton opened this issue Aug 5, 2020 · 9 comments
Labels
area:custom-schema bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.

Comments

@louisskelton
Copy link

louisskelton commented Aug 5, 2020

Summary

Using force:cmdt:record:insert generates XML with Metadata Relationship data types tagged as xsi:type="xsd:undefined". When deploying the resulting Custom Metadata Records the following error is received:

ERROR running force:source:deploy: Deploy failed

Replacing xsi:type="xsd:undefined" with xsi:type="xsd:string" fixes the issue.

Steps To Reproduce:

  1. Create two metadata type objects linked with a Metadata Relationship
  2. Create CSVs for both metadata types
  3. Run force:cmdt:record:insert to create XML Custom Metadata Records for each Type
  4. Deploy Custom Metadata Records

Expected result

Deploy should be successful

Actual result

Deploy fails with ERROR running force:source:deploy: Deploy failed

Additional information

Replacing xsi:type="xsd:undefined" with xsi:type="xsd:string" in the XML generated with force:cmdt:record:insert fixes the issue.

Version: sfdx-cli/7.68.6-d37008df83 darwin-x64 node-v12.18.3

@clairebianchi clairebianchi added the owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. label Oct 6, 2020
@clairebianchi
Copy link
Collaborator

@louisskelton I will share your issue with the cmdt team. Thank you

@SalesforceRocks
Copy link

@clairebianchi this issue also occurs for force:cmdt:record:create. Can you have someone create a bug report and pass it to the right team? I guess it's the same issue. The solution is the same.

@Yeackley
Copy link

Yeackley commented Mar 3, 2021

I'm currently hitting this issue as well trying to create records from CSV file. Any updates?

@shetzel
Copy link
Contributor

shetzel commented Mar 4, 2021

I've asked for an update from the cmdt team. I'll pass along any details they give me if no one responds here directly.

@shetzel shetzel added the bug Issue or pull request that identifies or fixes a bug label Mar 4, 2021
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-8969685

@github-actions
Copy link

github-actions bot commented Mar 4, 2021

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.

@sudhakar6
Copy link

any update on this , or is there any workaround available except the Replacing xsi:type="xsd:undefined" with xsi:type="xsd:string" in the XML

@colinregan1
Copy link

Any update?

@gongambino
Copy link

Hi Github community - I'm the Salesforce PM for the Custom Schema area which owns CMDTs. Unfortunately due to other competing priorities, we don’t currently have it on our roadmap to resolve this issue. Hopefully, the identified workaround gets most customers out of this situation.

In order for us to get this prioritized we would need to see overwhelming feedback on the Trailblazer Community / IdeaExchange and/or large volume of high-severity support cases.

@preddivari preddivari added the area:mdapi This is an issue for MDAPI server side team. label Sep 22, 2023
@iowillhoit iowillhoit added area:custom-schema and removed area:mdapi This is an issue for MDAPI server side team. labels Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:custom-schema bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.
Projects
None yet
Development

No branches or pull requests