"An item with the same key has already been added " error when requesting items using Sitecore Services Client


Description

Requesting an item might fail with an unhandled exception if the requested item has multiple fields with the same name. The issue happens while using the Sitecore Services Client API. A message similar to the following can be shown in the logs:

An item with the same key has already been added

Solution

To resolve the issue, consider the following options: