Source import through beta/sp-config/import - VA bug

Hello everyone,
I think I faced a bug on the beta/sp-config/import API whilst trying to upload a SOURCE template exported from a working tenant.
The API documentation doesn’t mention anything about cluster while importing a SOURCE; but since a SOURCE can contain a “cluster” object (which contains id, name and type) the sp-config/import API should be able to parse that.
Actually, the “cluster” object gets completely ignored, but the SOURCE gets imported with an empty VA field, which is impossible to do via UI.
After this the only working solution is to:

  1. Retrieve the just imported SOURCE id - which isn’t returned by beta/sp-config/import job submittal
  2. PATCH (Source Path Partial) the imported SOURCE with a JSON like this one:
[
  {
	  "op": "add",
	  "path": "/cluster",
	  "value": {
            "id": "clusterId",
            "name": "clusterName",
            "type": "CLUSTER"
          }
  }
]

Now the SOURCE is configured as would by creating it via API.

I think this is a bug.

Hope this can help anybody out there.

Welcome to the developer community Simone!

Thank you for bringing this to our attention. I created a ticket for our engineers to look into this. I’ll keep this thread updated on the progress.

@szucchi, have you tried adding the cluster ID to the source objects in the exported file before importing it to the new tenant? That might work and save you a step of having to run PATCH calls for each source after the import.

Hi @colin_mckibben

I’m also facing the same issue. I have included the cluster details(cluster name, type and id) to source object but still while importing the source, SP-Config API is ignoring the cluster details present in the import file and creating the source on the tenant with empty VA field.

@Shanmukh ,

I haven’t tried it myself, but if that’s the case then please open a support ticket. The support team will determine if it’s a bug or not and route the issue to the correct engineering team.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.