Hi
I am facing an issue in Check Stub Stub Report.
The error which I am getting
The SourceExpr for report control 'PrnChkCheckAmountText_CheckStyle__US_' is not valid. The following error occurred: Index out of bounds.
Kindly Provide me the Solution.
Thanks
Arun Kumar. P
Senior Associate
It is important to understand that the error is occurring probably because something is "out of bounds". In such cases, the culprit is an ARRAY
1. First locate the cell in the Report RDL where this textbox is located
2. Find the textbox's corresponding report column in report's AL code
3. Now search the first parameter of this column in the whole AL code. See which places it has been used. There will be a place/loop/trigger which makes it run in a repetitive manner
4. The error is occurring because the data that is being fed in this array is more than that array could handle with it's present dimensions
5. See if you can place a debugger inside this loop and see why this array is being fed an extra morsel when it was not designed to digest any extra. In most cases, it happens as the developer may have restructured the custom code, with no attention to proper testing.
6. If it is becoming very tedious and urgent, try increasing the culprit array's dimension & see where you land thereafter. I won't recommend to take this approach as a permanent solution, as it will again some day rise and bite you
Did the modification work in the past? If so, can you roll back to that version, and try making the change again.
Check report layouts are rather hard to work with, so you will want to have an experienced developer make the changes. If you don't have access to all of the changes made, it might be best to start over with a custom layout and just make the changes.
We don't have the same developer right Now, also I debug the code thoroughly.
You need to consult with the same developer or if you have customized that please debug the issue thoroughly.
Yes, I debug that Customization was done.
Hi,
Did you debug the issue? also any customization done?
Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156