Sorry - should have said comment out the r.2.s.detail() line. Compile in debug - make sure that routine is still preset in the compiled report. If not I am assuming you have a system where this report works - compile that one in debug mode. And run both reports comparing the code. My swag and I could be wrong is the layout numbers or something must have changed between servers.
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.
systems provided free by Baan Board
Play the Google game and help Baanboard get better rankings. Do your part. Click here
to find how.