Error loading CustomMetadata records with null values for Number fields
Error Message detail
Web service callout failed: WebService returned a SOAP Fault: '' is not valid for the type xsd:double faultcode=soapenv:Client faultactor= El error está en la expresión '{!upsertCustomMetadata}' del componente apex:commandButton en page custommetadatarecorduploader: Class.MetadataService.MetadataPort.upsertMetadata: line 9261, column 1 Class.MetadataUtil.upsertMetadataAndValidate: line 131, column 1 Class.MetadataUtil.transformToCustomMetadataAndCreateUpdate: line 97, column 1 Class.CustomMetadataUploadController.importCSVFileAndCreateUpdateCmdRecords: line 127, column 1 Class.CustomMetadataUploadController.upsertCustomMetadata: line 52, column 1
It's not just Number fields. Any field without a value will be ignored which means all other values will shift left and get populated in the wrong field.
I've proposed a simple fix here, which works for me. Interested to hear if it breaks anything else?
https://github.com/forcedotcom/CustomMetadataLoader/commit/1a6c01a51c462ec3b67f3d5ff5f7e3aa74a62e73