Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

(0) ShareShare
ReportReport
Posted on by

Hi Experts

I am Doing TransHeader and TransFooter in Body of the Report in NAV 2013 r2 For that i Reffer this link

https://msdn.microsoft.com/en-us/dynamics/nav/dn833439.aspx 

I Followed above link same as but when i save the report i got this ERROR

There is an error on line 93 of custom code: [BC30451] 'RunningVaue' is not declared. It may be inaccessible due to its protection level. 

This RunningValue Is declared in Report Properties --->Code Like Below

Private RunningValue As Double =0

Public Function SetRunningValue(ByVal val As Double) As Double
RunningVaue = val
Return val
End Function

PublicFunction GetRunningValue() As Double
Return RunningValue
End Function


I Declared in Transfooter Expression Like 

Code.SetRunningValue(RunningValue(Fields!Amount.Value,Sum,"Group1"))


can you please give Suggest me............How to done this Transheader and TransFooter

Thanks,

Ramesh.

*This post is locked for comments

  • mmv Profile Picture
    11,467 on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    .

  • Community Member Profile Picture
    on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    Thanks Suresh Kulla,

    Now It's Working Fine

    Thanks,

    Ramesh.

  • Tharanga Chandrasekara Profile Picture
    23,116 on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    "There is an error on line 93 of custom code: [BC30451] 'RunningVaue' is not declared. It may be inaccessible due to its protection level."

    Change your defined RunningValue to some other name, because RunningValue is a builtin function.

  • Rajasekhar@MS Profile Picture
    5,569 on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    Can you check the below link and check again whether you have followed the steps

    blogs.msdn.com/.../transfooter-and-transheader-functionality-in-rdlc-ssrs-reports-revisited.aspx

    Best Regards

    Rajasekhar.Y

  • Community Member Profile Picture
    on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    Hi Rajasekhar,

    I already Checked as you Said like,but also i got the same error

    any suggestions....

    Thanks,

    Ramesh.

  • Verified answer
    Suresh Kulla Profile Picture
    47,789 on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    RunningValue is a built in function, try to change your variable declaration name in the above code to something else

    Private RunningValue As Double = 0

    change RunningValue to RunValu or something meaningful and use the same name in SetRunningValue and GetRunningValue.

    If you watch the video carefully he uses the variable declaration as RunnigValue.

  • Rajasekhar@MS Profile Picture
    5,569 on at
    RE: Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

    Hi

    Private RunningValue As Double =0 , can you change the RunningValue to Public or Shared and check

    Best Regards

    Rajasekhar.Y

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans