Hello,
I am currently working on designing a system that at first only should be runned on the NAV Classic client.
However in the short future we will proparly have to make it web-based too through Web Services.
I have a question on how the web-based system reacts if an ERROR(text) is made on a NAV codeunit-object.
Can I catch that error through and try-catch-sentence, or how to I do that?
I have been searching the WWW, but I cannot find any good explanations that helps me answer the question.
Thank you in advance,
Kristian.
Best regards,
Kristian
0
Answers
Otherwise it just errors and the webservice stops running this request and waits for other requests.
If you want to avoid the erroring, you can run a codeunit that runs the real codeunit is follows:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thank you for your response.
As you said if the client waits for a reply from the webserver it will catch the error-message.
Does it catch the error-message with a try-catch-statement, or?
Thank you in advance,
Kristian.
Kristian
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
We hit that bug. And we are proposing to make it into a feature! It can be really useful to have it also in the standard client. Especially if it works like LOCKTIMEOUT. There is also a fix for it.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks everybody for your help and your answers.
Im guided in the right direction towards designing the application.
Have a nice day!
Kristian