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
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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,
Igor
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I would really like to know more about how RTC- and WS-services use objects and where they are cached.
/Pauli