I just migrated a customer. When downloading the document templates I just get a Error.txt file, with the error message from the headline.
Prior to the migration they used a document pluging. Before migration I updated DocTmpl.autoEvent and document.archiveProvider to 0, and deleted the plugin reference in userPreferences.
I debugged this a bit. When I look at the DocTmpl table (through searchengine) I notice, that the doctemp which have the problem all have loadTemplateFromPlugin = 0, and autoevent = 32767.
Why is autoevent 32767?
And why isn't loadTemplateFromPlugin updated?