Why am I getting Error 52: Bad file name or number?
Check the “Ask Each Time” checkbox on the Destination tab to make sure the valid parameters are being passed to the report.
Error 52 is related to a filename trying to be opened that does not conform to standards of the operating system. Make sure the directory name where GP is installed isn’t too long, and the Report ID doesn’t have any special odd characters in it that aren’t compatible with naming a file in Windows. Invalid characters include quotes, apostrophes, slashes, colons and the vertical bar.