Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,236 Super User 2024 Season 1 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

  • tonyab Profile Picture
    tonyab 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.

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

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 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
    Arun Kumar P 10 on at
    RE: Check Stub Stub Report

    Yes, I debug that Customization was done.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Check Stub Stub Report

    Hi,

    Did you debug the issue? also any customization done?

    Thanks.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans