Please help me why do I get this error.
Thank you!

Hard to say. I suggest you debug the code and find out on what line exactly the exception occurs.

I notice that when I am just missing a rpt file. Thank you for replying :)