SP-Config Import Error

I am having an issue using SP-Config import, but there is no specific information on why the import is failing.

/beta/sp-config/Import:

{
    "jobId": "7c6446c8-a153-4f45-bd25-84f7dfc1cb8f",
    "status": "FAILED",
    "type": "IMPORT",
    "message": "Import halted because of errors. Download results for error details.",
    "description": null,
    "expiration": "2021-11-24T21:24:49Z",
    "created": "2021-11-17T21:24:49.585Z",
    "modified": "2021-11-17T21:24:53.784Z",
    "completed": "2021-11-17T21:24:53.78Z"
}

/beta/sp-config/import/7c6446c8-a153-4f45-bd25-84f7dfc1cb8f/download:

{
    "results": {
        "SOURCE": {
            "infos": [],
            "warnings": [],
            "errors": [
                {
                    "key": "SOURCE_IMPORT_FAILED",
                    "text": "An error occurred importing source: 'SalesForce'",
                    "detail": {
                        "exceptionMessage": null
                    }
                }
            ],
            "importedObjects": []
        }
    }
}

However, when I run it in preview mode, there are no issues:

preview=true:

{
    "results": {
        "SOURCE": {
            "infos": [
                {
                    "key": "IMPORT_PREVIEW",
                    "text": "Object to be imported: [2c9180846b9a3536016baf5791145beb, SalesForce]",
                    "detail": null
                }
            ],
            "warnings": [],
            "errors": [],
            "importedObjects": []
        }
    }
}

Can you advise how to get more detailed logs to understand what the issue might be?

Hello, From the logs, it appears to be a problem with the schema for the SalesForce source. Would it be possible to get the import json file that was used so we can diagnose further?

Attached is the source file:

tmp7A29.txt (17.9 KB)

Thanks for the file. We’ll try to reproduce.

We were able to reproduce. The problem appears to be this …
The exported source data has exactly one entitlement schema but it is configured to create a Salesforce source which has multiple entitlement schemas. The import data requires that the schemas missing from the data be removed from the created source but they are being referenced by the account schema which is what is making the import fail.
The CollaborationGroup, PermissionSetLicense, Role, ManagedPackage, and PermissionSetGroup schemas are missing from the file being imported.

We are working on a fix to expose the error message, so these types of issues will be easier to diagnose in the future.

1 Like

Hi Lori–

Can you confirm for me that that the SalesForce object is being exported with all of those schemas?