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

Invalid Cross Reference Key #40

Open
JodieM opened this issue Apr 25, 2018 · 3 comments
Open

Invalid Cross Reference Key #40

JodieM opened this issue Apr 25, 2018 · 3 comments

Comments

@JodieM
Copy link

JodieM commented Apr 25, 2018

I'm trying to import data that has a lookup to another Metadata type.
I am getting the error.

Error occured processing component ChildObject.NameOfRecord. In field: ParentObject__c - no CustomMetadata named ParentObject.Name found (INVALID_CROSS_REFERENCE_KEY).

The importer requires ParentObject__c to be there, and I've set the ID of the Parent Object as the value in the column ParentObject__c, but that's causing the error.

How do I import child CMDT object records?

@guenthmn
Copy link

+1 I am getting the same error tried with both parent object ID and fully qualified name.

@thebrettbarlow
Copy link

thebrettbarlow commented Sep 18, 2018

I was getting the same error, but it worked when I used the DeveloperName of the parent custom metadata type instead of the Id

@yasarshaikh
Copy link

I was getting the same error, but it worked when I used the DeveloperName of the parent custom metadata type instead of the Id

This answer helped me. New learning :-) Custom Metadata requires DeveloperName, not IDs 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants