PDF Output error 11934

I am using the pdf output plugin to combine a PDF form and its field data into a fixed image PDF form for emailing. The method works perfectly every time when hosted by our server, however, when our customer hosts it from their server they get the following error:

Error while performing method with name email, id 11934

Can't find method
com.servoy.j2db.scripting.JSApplication.js_writeFile(string, undefined)

The method creates a temp file variable using application.createTempFile(‘Form’,‘.pdf’) and then writes to the temp file using application.writeFile. Does anyone have any idea what might be causing this error? I can provide more detail if needed.

I’d search for the problem in the undefined bit. It says you are calling writefile with the second argument missing/empty/undefined. Maybe it’s an uninitialized global or variable?

Problem resolved. In addition to writing to a temp file, we were also writing to a media field. However, customer replaced data files with earlier version that did not contain the required media field. We added the media field and the problem went away.