Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Error when loading a relationship field #82

@AndiMcLaughlin

Description

@AndiMcLaughlin

I have a zip code metadata type that has a reference field referencing a city relationship metadata type. i was abe to load my records for the city file with city and state but the zip code file referencing the city record is giving me this error. Do I need to use a different API field name or use API name as data value or is it not possible to load mdt records with a relationship to another metadata record field? Very much appreciate a response as this is the file I really do not want to load manually!

Web service callout failed: WebService returned a SOAP Fault: Must specify the name in the CustomMetadataType.CustomMetadata format, Current Name: Council_City_Zip., Required Delimiter: . faultcode=soapenv:Client faultactor=
Error is in expression '{!upsertCustomMetadata}' in component apex:commandButton in page custommetadatarecorduploader: Class.MetadataService.MetadataPort.upsertMetadata: line 9261, column 1
Class.MetadataUtil.upsertMetadataAndValidate: line 158, column 1
Class.MetadataUtil.transformToCustomMetadataAndCreateUpdate: line 124, column 1
Class.CustomMetadataUploadController.importCSVFileAndCreateUpdateCmdRecords: line 144, column 1
Class.CustomMetadataUploadController.upsertCustomMetadata: line 52, column 1

An unexpected error has occurred. Your development organization has been notified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions