Hi Guys,
When i try to open the Odata web service in IE i get this:
The server encountered an error processing the request. See server logs for more details.
I get this message in windows logbook when i try to open the ODATA web service
Server instance: NAV2013ITWTest
Session type: UnknownClient
Session ID: N/A
User: ROCWBLOCAL\ros
Type: System.NotSupportedException
Message: Published web services contain a duplicate service name: Company. Service names must be unique to be supported by OData.
StackTrace:
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataMetadata.AddResourceType(ResourceType resourceType)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataMetadataProvider.AddCompanyServiceMetadata()
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataMetadataProvider.CreateResourceTypesForPublishedServices(NavConnection connection)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.NavServiceHelper.<>c__DisplayClass1.<ExecuteOperation>b__0(NavConnection connection)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.NavServiceHelper.ExecuteOperation[TResult,T1,T2](String companyName, ODataOperation`3 operation, T1 parameter1, T2 parameter2)
Source: Microsoft.Dynamics.Nav.Service.ODataServiceProvider
HResult: -2146233067
Do i need to do more for i can use this? Or do i need an developer license?
I hope you can help me!
Thx
0
Answers
The error is pretty clear.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Hi,
I have this in the Table:
See image.
Rename Query19 to something else. For Example: MyQ.
If it doesn't work. Remove one record at a time.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Hi.
I renamed the services with numbers it works now.
Thx!
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
You can check it by retrieving the list of OData publications:
http://localhost:7048/DynamicsNAV70/OData
So, if you will add the Company to the Web Service table by yourself (with service name Company), it will dublicate the automatically added service. And that is what was the error message about.