When you call that batch file, it's telling Monarch to run, then open the model, then do the export you need.
The dialog box you see is at the model opening stage. You can fix it by editing the model to remove the external references - by default, all models will point to this one to make use of the User Defined Functions (see old posts on blog.greenbar.info for some examples) but you don't need it.
Then, if the model doesn't prompt a missing reference, the batch should execute, as long as you've got the right licence to allow you to use desktop automation in v12.
Thanks, Olly. I'm new to Monarch, and some of what you said was French to me. I opened the model, but didn't notice any mention of "eternal references". Are there instructions somewhere?
Not sure if it makes a difference, but this model was converted from an older version of Monarch (like Monarch 6 or something).
This error happens when Monarch cannot find the User-Defined Functions model due to the unchecking the "install sample files" feature during installation, and there are a couple of ways to go about this.
- Have Monarch reinstalled and check "install sample files"
- Copy User-Defined functions.xmod or .dmod and copy it to the said directory
- Have Monarch point to the said model by going to FIle>options and redirect the default model file folder to where the user-defined functions model is stored (C:\Users\Public\Documents\Datawatch Monarch\Models)
Below are links for both Userdefinedfunctions.dmod and .xmod which you can download: