Odata doesn't working

ro03
Member Posts: 22
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
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
-
Check the webservice table and make sure each name you typed for each record is unique.
The error is pretty clear.Published web services contain a duplicate service name: Company. Service names must be unique to be supported by OData.0 -
ara3n wrote:Check the webservice table and make sure each name you typed for each record is unique.
The error is pretty clear.Published web services contain a duplicate service name: Company. Service names must be unique to be supported by OData.
Hi,
I have this in the Table:
See image.0 -
Use process of elimination.
Rename Query19 to something else. For Example: MyQ.
If it doesn't work. Remove one record at a time.0 -
Great. Change the topic to fixed0
-
When you start the OData service, NAV automatically adds the Companies list to the OData publications.
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions