Executing Swagger Rest SmartObjects: "An item with the same key has already been added Source: SourceCode.HostServer.Lib" error when executing the REST Service Instance Broker SmartObject
kbt149147
PRODUCTIssue
An item with the same key has already added. Source: SourceCode.HostServer.Lib error is raised when executing the REST Service Instance Broker SmartObject:
Symptoms
This error is raised due to an incorrect configuration on the Swagger json file
For example (Duplicate entries):
Troubleshooting Steps
Do a comparison of the working Swagger json file and the non-working Swagger json file and you will notice that there are duplicate or incorrect values specified.
To correct this:
- Rename the duplicate entries or change your Swagger json file as needed.
- Then navigate back to the SmartObject Tester Tool and refresh the REST Service instance & SmartObjects.