How to fix "CRRRS6546E The specified configuration cannot be found" error when calling DNG Comparison API
We are using Doors Next Generation 7.0.3 (we are using it with ELM) and I am trying to call it's Comparison API since I will eventually use it within a custom widget. I found this example: https://www.ibm.com/support/pages/how-compare-two-configurations-rest-api-ibm-engineering-requirements-management-doors-next . However when I call the API, I get a ""CRRRS6546E The specified configuration cannot be found" error. For example:
Accepted answer
AFAIK the comparison API does comparison between two configurations in the same DOORS Next component - so first: use local configuration urls, i.e. not GC urls; second: make sure to URL encode query parameter values, i.e. the configuration urls. For example your URL should look like: https://server.url/rm/publish/diff?sourceConfigUri=https%3A%2F%2Fserver.url%2Fgc%2Fconfiguration%2F1343&targetConfigUri=https%3A%2F%2Fserver.url%2Fgc%2Fconfiguration%2F1326&includeItems=artifacts
Comments
I didn't know i had to use the local configuration URLS and not the GC URLS. I used the local configuration URLS and that worked, thanks! I honestly don't understand what the difference is between local configuration and global configuration other than the fact that working off the global configuration in ELM allows you to link to different project areas, and that you have to use local configuration URLs and not GC URLS for the comparison API. Are those the only 2 differences?
There are many differences. I guess one difference is that a GC can include multiple contributions from DOORS Next local configurations, so trying to use a GC URL would be ambiguous - isn't specific about which actual local configs should be compared.
1 vote
I updated the comparison API doc on jazz.net wiki to say that both configs must be local. See https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI
1 vote
- Are there existing examples for how to parse through the XML results returned by the comparison API?
- I know you can manually compare streams in DNG via the "Compare Configuration..." option. Is that functionality using the comparison API? If not, what API is it using?
Sorry don't know to both questions, except that there is only one public supported comparison API.