I created a workflow in Visual Studio 8 that sends email based on fields in a SharePoint form library. These fields are populated by an InfoPath form. This workflow works great on one server, but on the other server I get an unspecified error until I relink the document. Before I relink, the heading in my template.xml starts with
<?xml version="1.0" encoding="UTF-8"?> .
After the relink, the heading is missing the encoding="UTF-8" and the adds the following after the <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?> ;
<?MicrosoftWindowsSharePointServices ContentTypeID="0x0101010052948BB80F1C764082CA4E9AC5E8E2B000180BB0CE4DFE6C4B9343E7C854DF1FA8"?>.
To confirm that this is the problem, I downloaded a form that I got errors with, removed the encoding line and added the ContentTypeID line, saved it and uploaded it back to the site. The workflow ran without error. I am not sure what is causing this and do not know how to resolve it. Any ideas?