Handling Error during Validate function

tushaar99
Member Posts: 35
Hi All,
I want to handle the error if any, thrown by the validate function.
I am getting a XML file from a Web Application which has data which needs to be uploaded in the Gen Journal Line table. So if an error occurs while doing the validate, I want to catch it in the code and send the response to the Web Application.
Is this possible?
Thanks in advance for any help that comes up...
Regards,
Tushaar.
I want to handle the error if any, thrown by the validate function.
I am getting a XML file from a Web Application which has data which needs to be uploaded in the Gen Journal Line table. So if an error occurs while doing the validate, I want to catch it in the code and send the response to the Web Application.
Is this possible?
Thanks in advance for any help that comes up...
Regards,
Tushaar.
Regards,
Tushaar
Tushaar
0
Comments
-
For this it is better to create WebService in NAV and call it from the Web application if possible, because if there is some error during the call, it will be sent to the caller automatically. But if NAV is the client, it is hard to catch the errors. You can try to use the new commands in NAV 5.0 to handle that, but passing the error back means to call another webservice with passing the message. Because if you are calling webservice, you are sending request and receiving answer, but you cannot send error after you received the answer...
But all is question of design of the system.0 -
Hi,
Thanks for the reply.
The problem over here is that the client is using Nav 3.70.
Can u give me a solution specific to this version?
Regards,
Tushaar.Regards,
Tushaar0 -
Just search for the WebService and you will find posts about how to create your own webservice in NAV (there are some posts on blogs too, just use google to find them, links are in the forum too...)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