We are trying to upgrade to Monarch 12 but for some reason the automation object stopped working for us when exporting PDF files to table using either .ExportTable or .JetExportTable. Any ideas how to get it to work? Here's the code we wrote quickly to test Monarch 12:
Dim MonarchObj As New Datawatch.Desktop.Automation.MonarchAutomationObject
And we get the following in Visual Studio Output window (see below). The file "c:\temp\export.txt" contains only the header and no rows and output says that 0 rows were exported. Works fine in Monarch Desktop application (exports 1 row to the file) and in previous versions of Monarch.
(1) Any ideas on what we could be doing wrong??
(2) Any ideas why it says "partial build" (highlighted below)? When run in Monarch Desktop app it says: "Reader type: completed full build"...
===================== Datawatch.Engine 220.127.116.11 =====================
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Generating partial build sequential table reader.
Executing BuildTask CreateDatabase
Executing BuildTask DownloadRemoteFile
Executing BuildTask PrepareInputFile
Created schema DBO_abcaae68_8fe8_407a_a0a7_9db65acf8e04 in catalog DWCH_8f1943cf_1866_4e85_9a10_a76e9f53d215
Executing BuildTask CheckPointDatabaseReady
Executing BuildTask LoadPerTemplateTable
Executing BuildTask PrepareTemplateDataView
Executing BuildTask CheckPointMainInputTableReady
Executing BuildTask CreateReader
Executing BuildTask PerformExport
0 records written to c:\temp\export.txt
Export time: 00:00:00.0
Reader type: partial build[/B]