InDesign Server crashes during simple data merge
Hey all, wasn't sure if this belonged in InDesign Server Developers forum, or here. Sorry if in wrong place.
I have a simple data merge script which works perfectly fine in InDesign CC Desktop:
var source = File("/Users/toddshark/Desktop/InDesign Server/example/example.indd")
var destination = File("/Users/toddshark/Desktop/InDesign Server/example/example.pdf")
var sourceData = File("/Users/toddshark/Desktop/InDesign Server/example/example.csv")
var doc = app.open(source);
doc.dataMergeProperties.selectDataSource(sourceData);
doc.dataMergeProperties.dataMergePreferences.recordNumber = 1;
doc.dataMergeProperties.mergeRecords();
var myPDFExportPreset = app.pdfExportPresets.item(0);
app.documents.item(0).exportFile(ExportFormat.pdfType, destination, false, myPDFExportPreset);
app.documents.item(0).close(SaveOptions.no);
doc.close(SaveOptions.no);
I pass this same script to InDesign server, and it crashes on the .mergeRecords();.
The server gives back (after ~3 seconds):
./InDesignServer: line 13: 72872 Segmentation fault: 11 "$installed_name" "$@"
Then crashes.
Anyone know what could be causing this?