Search code examples
dynamics-ax-2009x++axapta

Reports won't run in batch


I am trying to run unmodified reports using batch processing in Microsoft Dynamics AX 2009. I have set up my configuration, and set up an AOS printer to run the report on. When I send a report to the batch queue, it immediately has an error when it begins execution.

The error is as follows:

Error executing code: SysGlobalCache object not initialized.

(S)\Classes\SysGlobalCache\get (S)\Classes\ClassFactory\reportRunClass - line 14 (S)\Classes\RunBaseReport\makeReportRun - line 19 (S)\Classes\RunBaseReport\unpack - line 31 (S)\Classes\RunbaseReportStd\unpack - line 26 (S)\Classes\BatchRun\runJobStatic - line 27

I have tried running three different reports: Customer, Vendor, and Purchase Lines. I get the same error every time.

Any suggestions?


Solution

  • We faced a similar problem at my work, but didn't want to rely on having to set up the legacy batch processing method, suggested previously. Luckily in our case, it wasn't a requirement that the report actually be printed to hard-copy. So rather than try to send the report to a printer, you can run it to a file (ASCII, PDF, etc).

    The batch server can process these, but since you'll need to specify a place to save the file, watch out for the following:

    Be sure to use a UNC file path the path you wish to save to, otherwise you may get the following error: "Target file must be in UNC format."

    Also be sure the necessary permissions have been applied to allow writing to that location, otherwise you'd get an error such as: "Unable to open file "