Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to Export Registration Payment Reminder Grid Fails with NullReferenceException #6170

Open
2 tasks done
mcdude8675309 opened this issue Jan 30, 2025 · 0 comments
Open
2 tasks done
Labels
Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@mcdude8675309
Copy link

Description

When trying to export the grid on the registration payment reminder page, we get a NullReferenceException. I have confirmed this happens in 15.1, 16.6 (our current version), and on the RockSolidChurchDemo site.

Actual Behavior

NullReferenceException in mscorlib
Message
Object reference not set to an instance of an object.

Stack Trace

at System.Object.GetType()
at Rock.Web.UI.Controls.Grid.GetDataSourceObjectType() in \Rock\Web\UI\Controls\Grid\Grid.cs:line 3006
at Rock.Web.UI.Controls.Grid.Actions_ExcelExportClick(Object sender, EventArgs e) in \Rock\Web\UI\Controls\Grid\Grid.cs:line 2413
at Rock.Web.UI.Controls.GridActions.lbExcelExport_Click(Object sender, EventArgs e) in \Rock\Web\UI\Controls\Grid\GridActions.cs:line 696
at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAs

Expected Behavior

The list of persons with outstanding transactions should be exported to Excel.

Steps to Reproduce

Assuming you have event registrations with outstanding payment balances...
Reminders

  1. Go to an active registration instance with registrants having outstanding balances and click button "Send Payment Reminders"
  2. Those with outstanding payments will be listed along with a preview of the reminder email that would be sent. Click the grid export button displayed at the upper right hand corner of the grid. Result is error screen with NullReferenceException.

Image

Image

Image

Issue Confirmation

  • Perform a search on the Github Issues to see if your bug or enhancement is already reported.
  • Reproduced the problem on a fresh install or on the demo site.

Rock Version

15.1, 16.6

Client Culture Setting

en-US

@sparkdevnetwork-service sparkdevnetwork-service added Type: Bug Confirmed bugs or reports that are very likely to be bugs. Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

2 participants