web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Check Stub Stub Report

(0) ShareShare
ReportReport
Posted on by 10

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

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: Check Stub Stub Report

    Hi,

    Did you debug the issue? also any customization done?

    Thanks.

  • Arun Kumar P Profile Picture
    10 on at
    RE: Check Stub Stub Report

    Yes, I debug that Customization was done.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: Check Stub Stub Report

    You need to consult with the same developer or if you have customized that please debug the issue thoroughly.

  • Arun Kumar P Profile Picture
    10 on at
    RE: Check Stub Stub Report

    We don't have the same developer right Now, also I debug the code thoroughly.

  • tonyab Profile Picture
    55 on at
    RE: Check Stub Stub Report

    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.

  • Suggested answer
    NAV_with_Narang Profile Picture
    2,294 Moderator on at
    RE: Check Stub Stub Report

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,421

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,878 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,645 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans