Have you checked your access rules? It seems like that the role who is needing the object is not allowed to ‘see’ / download the file.
"Did not expect an argument to be undefined" - This one is a general error that can be encountered while working with Export Excel or Generate Document (pdf) or may be in other conditions.
Well, this is an access related issue, when I was logged in as MxAdmin and trying to export and generate pdf, this error was throwing. But when I created one account in account_overview and logged in with that account, the error was gone, provided you assign the specific role to this account.