WebService error after changing an option field

Goyo
Member Posts: 36
Hi. I have a WebService for Job table through a Page. This page was a new page I created for this WebService. I use the WebService from a Web that has been made using .net. The Web was working fine until I modified an option field adding a new value at the end of the OptionString. In the development environment it works fine, but when I updated the production environment, an error pops when I try to modify the option field. In spanish the error is "No se puede escribir 'En proceso' en Integer. ". 'En proceso' is one of the OptionString values (the value the field has now). Translation the error is "You can't write 'En proceso' in Integer".
I've tried to stop and start windows services (IIs, Navision WebServices, Navision Server), to recompile the entire Web, to modify the web page where I get the error... Nothing works, the error still pops.
When I change the value in Navision Classic Client, it's working fine, and the new value is been stored, and in the web page I can see the new value, the error only pops when I try to modify the value of the Option field from the web page through the web services.
Any ideas?
I've tried to stop and start windows services (IIs, Navision WebServices, Navision Server), to recompile the entire Web, to modify the web page where I get the error... Nothing works, the error still pops.
When I change the value in Navision Classic Client, it's working fine, and the new value is been stored, and in the web page I can see the new value, the error only pops when I try to modify the value of the Option field from the web page through the web services.
Any ideas?
0
Answers
-
The calling app need to refresh the wsdl (webservice definition) to understand the new enum value.0
-
kine wrote:The calling app need to refresh the wsdl (webservice definition) to understand the new enum value.
Hello kine. The wsdl file was already updated. The worst of all is that I can't make it fail in my computer. Maybe it's a problem with the Nav object? I think I'll have to create a new page.0 -
Hi
Please have a look here: http://blogs.msdn.com/b/nav/archive/2011/04/28/about-object-metadata-and-why-i-can-t-see-object-changes-in-rtc.aspx
This will sound strange but few of my .NET developers have been telling me that they were not able to see changes, which had been made in NAV, until termination of the whole NAV Server process tree from the Task Manager. So go to the task manager, find NAV Service in the services. Then right click and chose go to process. Then right click and end process tree.
Please validate if your dev environment build version is the same like the live environment build version. I have seen few issues related to this. You might thought that everything is fine, because NAV does not require database recompilation, but the middle tier server is just breaking on that object.
Good luck
KB0 -
how exactly you try to modify the option value? (C# code)
an example for updating option through .NET isrecord.YourOptionFiled = YourService.YourOptionField.OptionValue
-Mihail- [MCTS]0 -
mihail_kolev wrote:how exactly you try to modify the option value? (C# code)
an example for updating option through .NET isrecord.YourOptionFiled = YourService.YourOptionField.OptionValue
Yeah, that's the way I am updating the option.
The error pops in the WebService Update function. And it was working find before modifying the option field.0 -
Hi. We finally found the error (my colleague Pailar). The error pops when the Navision Change Log is activated for the option field. When we deactivate it, it works fine. The problem is that we need the change log to be running.
I've turned ON the Change Log in my database and the error pops in development environment too. It fails only with option fields, if I do the same with text fields, it doesn't fail.
Any ideas on what I should try?0 -
In order to solve this issue, we have used another WebService (with codeunit) just for this field. And it works !!!! Sadly, even though the Change Log is activated, navision doesn't log this change. Does anyone know if changes through web services are logged in navision?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