I recently modified a custom report to add an Item Category Code filter on the Sales Invoice Line table. The filter value is entered on the Option tab of the request form and is set in the code using SETFILTER() if a value is entered. This is the same technique used for providing the original Season filter on the report.
When either filter is used by itself, the report runs as it should. However, when values are entered for both filters, the report takes much longer. For example, a report that runs in under 10 seconds with either individual filter takes over 10 minutes with both.
I've confirmed that there's no extra report code being run. The extra time is taken during the retrieval of certain records. Does anyone have any idea why?
0
Comments
Can export the object as text?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Yes, I can export it as text. Would you like to see it?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
If it can be changed
I would add to the beginning of the key Document No. and use that key.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
However, there was already a key with the two filter fields set up. Why wasn't that enough to handle the situation? And why would it work fine with some filter values but not others?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n