Long running processes/reports in NAV and unexpected errors

Developer101Developer101 Member Posts: 553
Hello,

I have been working with NAV as technical long time now. I never had chance to into this in detail but what we need to do when user gets some unexpected error after long running reports or processes.

Recently a colleague of mine was running a monthly report which ran for 1hr and 20 mins and it supposed to send result by email from outlook but then there was error something saying CreateItem method failed (it was outlook related). I believe she didn't have outlook open on the computer she was running report from. Now she has to do again.

But how to stop this happening? How to anticipate any issues before hand so that user be careful? How to develop something in NAV that should check everything is fine as pre-requisites and then run the process.

Note: The report I am talking about is the customized one. It produces an excel sheet which then is sent by email.
We been using that report for some time now regularly.

Please help.
United Kingdom

Comments

  • geordiegeordie Member Posts: 655
    Here two examples of approach:
    - Executing the process and, in case of errors, save the result somewhere (table for example) in order to use it again in a new execution, with the risk of providing inconsistent data.
    - Performing as much check as possible at the beginning of the process, before starting any business logic; I usually prefer this one since follows the usual streamline of posting routines.

    Just my 2 cents :wink:
Sign In or Register to comment.