Sorry to read this.

I can't use your report to test with as I don't have your database. Please create a sample we can debug and upload it via HDE to us. The easiest would be a RDS example as it would not need an external database.

PS: I've tried to simulate it myself but I don't get an error.