In SAS® Environment Manager (on the SAS® Viya® 2023.12 release), an issue occurs when you promote a JSON file from a source to a target environment. As a result, the import of some objects included in the JSON file might fail with the following message:
The id in the request body does not match the id of the requested resource.
This error might occur if your JSON file contains an object with the same name as an existing one on the target environment but with a different URI.
For example, in the following scenario, you have a SAS® Studio Flow in the SOURCE environment. The SAS Studio Flow is called Flow.flw. This object has a specific URI, as shown in the following image:
On the target environment, a SAS Studio Flow with the same name already exists, but it contains a different URI.
In this scenario, you want to create a JSON file on the source environment and import it into the target environment.
When importing the JSON file, you might receive the following error:
The id in the request body does not match the id of the requested resource.
As a result, the import of the SAS Studio Flow fails, as shown in the following image:
To work around this error, delete the object with the same name from the target environment before importing the new one
Note that this problem does not occur if the promoted objects contain the same name and the same URI.