Compile report again and again?

MortenSteengaard
Member Posts: 144
Hi,
My customer tells me that my former colleague has told him to compile a specific "processing only" report i NAV 2009.
The story is that sometimes a function in a form doesn't work and there is no error messages. That problem would be fixed if the customer finds the report in the Object Designer and compile it.
Can this really be true?
My customer tells me that my former colleague has told him to compile a specific "processing only" report i NAV 2009.
The story is that sometimes a function in a form doesn't work and there is no error messages. That problem would be fixed if the customer finds the report in the Object Designer and compile it.
Can this really be true?
0
Best Answer
-
Hi everybody.
Thank you very much for your reply!
The problem was that the same report was used with a user-made filter running on many objects, and the report was also used on a single object in another form. The problem was that when I first run on many objects with a specific filter, that filter is saved and used when I run the same report from the form with the single object. And then it acts very weird.
And when I then compile the report, NAV deletes the old user-made filter on that report. And that makes the report change behaviour, so it works correctly on the form with only one object.
Once again, thank you very much!0
Answers
-
Well, be a scientist and test the hypothesis.
This certainly is no common behavior.
If the misbehaving function is external (i.e. is located in an external assembly or is a COM automation object), make sure the behavior of that external function does not change.
Compiling an object invalidates the cached version. So, corruption of that cache might be a possible cause. Check your memory, disk, network for intermittent errors.0 -
It's true, the compile could help. But as an advice, you need to find out which change causing need for compiling on the report. Does that report using some external functions from some Codeunit or maybe the problem is something else.
Best Regards0 -
Hi everybody.
Thank you very much for your reply!
The problem was that the same report was used with a user-made filter running on many objects, and the report was also used on a single object in another form. The problem was that when I first run on many objects with a specific filter, that filter is saved and used when I run the same report from the form with the single object. And then it acts very weird.
And when I then compile the report, NAV deletes the old user-made filter on that report. And that makes the report change behaviour, so it works correctly on the form with only one object.
Once again, thank you very much!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