NAV WS does not see objects changes
paurola
Member Posts: 43
We have a NAV Web Service running on a stand alone server on DMZ on a production environment. A table change (a field was added) was made and the object was imported into the database. Objects were compiled, database synchronized and the WS on DMZ server was restarted. When a user tries to insert a record through a browser application he gets an error stating that "cannot insert NULL value" in this new field...
The insert code in NAV codeunit has nothing to do with this new field (type code), so NAV should insert the default empty string automatically when inserting a record into that table. I traced the actual SQL Statement that is created by NAV and it DOES NOT include this new field (the SQL Statement that NAV uses in order to insert the record through ODBC should have ALL the fields from the table whether or not any data is put into them). The server has other WS:s running for different databases and applications so the server cannot be rebooted right now. I am desperately stopping and starting the Web Service but the table change just does not get "published" for the WS.
The service for the RTC clients is on a different server and records can be inserted into the table without problems. The new field is also there.
Any ideas what I should try next?
EDIT: NAV 2009 R2 build 32775
/Pauli
The insert code in NAV codeunit has nothing to do with this new field (type code), so NAV should insert the default empty string automatically when inserting a record into that table. I traced the actual SQL Statement that is created by NAV and it DOES NOT include this new field (the SQL Statement that NAV uses in order to insert the record through ODBC should have ALL the fields from the table whether or not any data is put into them). The server has other WS:s running for different databases and applications so the server cannot be rebooted right now. I am desperately stopping and starting the Web Service but the table change just does not get "published" for the WS.
The service for the RTC clients is on a different server and records can be inserted into the table without problems. The new field is also there.
Any ideas what I should try next?
EDIT: NAV 2009 R2 build 32775
/Pauli
0
Comments
-
Did you try by restarting both NAV Service and Web service?0
-
Mohana: Yes we did - or at least I think we did... there are quite a few NAV Services on that server so I have to recheck that we got the right one.0
-
Do not forget that you need to follow this procedure:
1) Stop WebService service
2) Stop the main Service
3) Start the main Service
4) Start WebService service
(of course, 2 a 3 could be "Restart") If you do it in different order, it could lead into situation, that nothing is reloaded...0 -
Hi Kine,
is that really the case that the web service depends on the NAV server service running? I actually believed that those services are independent and that I may run the web service as standalone?
Thanks ahead for clarification,
Igor0 -
:-k Since first time I was sure that I cannot run the WS service without the RTC service. I have tried it now, and I can.
But still, I am not sure, if the services are not usig some "shared" things when running both from same folder through same .exe. I remember, that when I had problems with the changes not detected, only one thing helped - restarting BOTH services in this order. When I restarted one, and than second, it still used old versions of objects. Looks like "shared" object cache is used and until one service is running, the cache is not refreshed... but I can be wrong... 0 -
I always first stop both and then restart them just to be sure....Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
This case is complicated because there are services running on multiple servers against the same database. This particular server is just for the Web Services and there is another running the services for the RTC:s. If I create a new object and publish it as a new web service, it is immediately refreshed but changes to existing tables are not... It may be so that if there is a service somewhere holding on to the objects, they will not be refreshed - perhaps this happens on the database level...
I would really like to know more about how RTC- and WS-services use objects and where they are cached.
/Pauli0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

