We are updating item information in D365FO through OData using entity EcoResReleasedProductV2. When we perform update for any item which has a '/' or '#' in the item id, the response is: No HTTP resource was found that matches the request URI '<URL>/data/EcoResReleasedProductV2(ItemNumber='35/45',dataAreaId='USMF')?cross-company=true'). No route data was found for this request. If we update any item which doesn't have those 2 characters, it works fine. It throws error only when these characters are included in the index fields of the entity, as those fields are passed in the URL. How to resolve this issue?
These characters have special meaning in URL, therefore you must encode them if they appear inside data. For instance, / should be encoded as %2F.
You utilize System.Web.HttpUtility.UrlEncode(), for example.
We tried this & still it gives the same error.
One more issue we are facing is "System.Net.WebException: The underlying connetion was closed: An unexpected error occured on a send". This error occurs randomly & we are unable to integrate anything. Then after a few hours, it gets resolved on it's own. We tried restarting DIXF service & IIS, but issue persists for a few minutes to few hours once it starts.