CustomMetadataLoader icon indicating copy to clipboard operation
CustomMetadataLoader copied to clipboard

Web service callout failed: WebService returned a SOAP Fault: Cannot flip on commit allowed, disabled by:Commit Not Allowed By DBContext:Protect.Apex.Transaction.Contract

Open sfscgjohnson opened this issue 4 years ago • 1 comments

Getting the below message when trying to Create/Update a MetadataType from CSV

Web service callout failed: WebService returned a SOAP Fault: Cannot flip on commit allowed, disabled by:Commit Not Allowed By DBContext:Protect.Apex.Transaction.Contract-1641932008379 Error Id: 1284665686-420684 (-2026009058) faultcode=soapenv:Server 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

User is SystemAdmin (me), I have CustomMetadata Permission Set and have Modify All Data.

sfscgjohnson avatar Jan 11 '22 20:01 sfscgjohnson

After trying several times it just suddenly started working.

sfscgjohnson avatar Jan 14 '22 15:01 sfscgjohnson