Discussion Forum

Use the forums to read about other users' experiences with the Muhimbi products. If you have a question then please login and post it in the appropriate forum.

PDF Converter for SharePointQuestions, answers and general discussions for the PDF Converter for SharePoint
Forums > PDF Converter for SharePoint > Cannot convert an InfoPath form   View modes:
boris.velikovich@exostar.com-(1/9/2012, 4:52 PM)
Cannot convert an InfoPath form

I am trying to convert an InfoPath form to PDF.

I am getting this error (eventID = 41734):

Log Name:      Application
Source:        Muhimbi.DocumentConverter.Service.exe
Date:          1/9/2012 8:34:28 AM
Event ID:      41734
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      dcapp33.tws.com
Description:
 Thread: 3
 Level: ERROR
 Source: Muhimbi.DocumentConverter.Service
 Message: An error occurred while converting a file. - 45624.xml. Muhimbi.DocumentConverter.WebService.Data.WebServiceInternalException: Exception of type 'Muhimbi.DocumentConverter.WebService.Data.WebServiceInternalException' was thrown. - Details: "The remote server returned an error: (404) Not Found."
   at Muhimbi.DocumentConverter.WebService.InfoPathConverterFullFidelity.Convert()
   at Muhimbi.DocumentConverter.WebService.DocumentConverterService.Convert(Byte[] sourceFile, OpenOptions openOptions, ConversionSettings conversionSettings, Boolean applyLicenseMessage)

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Muhimbi.DocumentConverter.Service.exe" />
    <EventID Qualifiers="0">41734</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-01-09T13:34:28.000000000Z" />
    <EventRecordID>1278458</EventRecordID>
    <Channel>Application</Channel>
    <Computer>dcapp33.tws.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data> Thread: 3
 Level: ERROR
 Source: Muhimbi.DocumentConverter.Service
 Message: An error occurred while converting a file. - 45624.xml. Muhimbi.DocumentConverter.WebService.Data.WebServiceInternalException: Exception of type 'Muhimbi.DocumentConverter.WebService.Data.WebServiceInternalException' was thrown. - Details: "The remote server returned an error: (404) Not Found."
   at Muhimbi.DocumentConverter.WebService.InfoPathConverterFullFidelity.Convert()
   at Muhimbi.DocumentConverter.WebService.DocumentConverterService.Convert(Byte[] sourceFile, OpenOptions openOptions, ConversionSettings conversionSettings, Boolean applyLicenseMessage)
</Data>
  </EventData>
</Event>

Here is what I am getting from the Muhimbi document conversion log:

2012-01-09 10:58:05,120 [3] INFO  - Conversion requested for: 45624.xml
2012-01-09 10:58:05,128 [3] DEBUG - Converter 'Muhimbi.DocumentConverter.WebService.InfoPathConverterFullFidelity' found for file '45624.xml'
2012-01-09 10:58:05,137 [3] DEBUG - Cleaning up registry
2012-01-09 10:58:05,139 [3] DEBUG - Configuring ActiveX security settings
2012-01-09 10:58:05,146 [3] DEBUG - Retrieving XSN using the Service's default credentials.
2012-01-09 10:58:05,147 [3] DEBUG - Retrieving XSN from: https://infoman.elfers.tws.com/sites/hii/supplierforms/CR%20Forms/Forms/template.xsn?OpenIn=PreferClient&NoRedirect=true
2012-01-09 10:58:06,926 [3] DEBUG - Deleting file:
2012-01-09 10:58:06,926 [3] DEBUG - Reading AutoTrustForms from the config file: false
2012-01-09 10:58:06,927 [3] ERROR - An error occurred while converting a file. - 45624.xml.
Muhimbi.DocumentConverter.WebService.Data.WebServiceInternalException: Exception of type 'Muhimbi.DocumentConverter.WebService.Data.WebServiceInternalException' was thrown. - Details: "The remote server returned an error: (404) Not Found."

   at Muhimbi.DocumentConverter.WebService.InfoPathConverterFullFidelity.Convert()
   at Muhimbi.DocumentConverter.WebService.DocumentConverterService.Convert(Byte[] sourceFile, OpenOptions openOptions, ConversionSettings conversionSettings, Boolean applyLicenseMessage)

Can someone please let me know what might be wrong?

Thanks,

 

          Boris

 

 

jritmeijer@muhimbi.com-(1/9/2012, 4:53 PM)
RE:Cannot convert an InfoPath form

Hello Boris,

 

The root cause of your error is “The remote server returned an error: (404) Not Found.”. This happens when the converter tries to retrieve the XSN file associated with the XML file.

 

If you open the InfoPath XML file in Notepad and then search for ‘.XSN’ then you will find the full path to the location the converter is trying to load the XSN file from. 9 out of 10 times this file is supposed to be located on the same SharePoint server where the InfoPath XML file is located. However, if you have copied the XML file from a different server without publishing the associated XSN file then the converter is unable to load it.

 

I hope this clarifies the situation and provides a starting point for troubleshooting.

 

Best regards,

 

Jeroen Ritmeijer

Muhimbi

boris.velikovich@exostar.com-(1/9/2012, 5:06 PM)
RE:Cannot convert an InfoPath form

Jeroen,

Thank you for the quick answer!

To answer your question - I opened the InfoPath XML file in Notepad and it looks like the .XSN that is mentioned there has a correct path. The form has been published on the same SharePoint 2010 server where it was developed, is submitted to the same forms library where it was published (i.e., Boris Forms), and  the Muhimbi Document Conversion is running on the same server.

More specifically, here is what my form looks like:

<?xml version="1.0" encoding="utf-8"?>
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:Boris-Forms:-myXSD-2011-11-23T14-18-29" solutionVersion="1.0.0.129" productVersion="14.0.0.0" PIVersion="1.0.0.0" href="https://<site_root>/Boris%20Forms/Forms/template.xsn"?><?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.3"?>
<my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls"
             xmlns:ma="http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes" xmlns:d="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields"
             xmlns:q="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"
             xmlns:dms="http://schemas.microsoft.com/office/2009/documentManagement/types" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-11-23T14:18:29"
             xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-US">

<my:field1>Something</my:field1>

<my:field2>Something else</my:field1>

</my:myFields>

boris.velikovich@exostar.com-(1/9/2012, 5:07 PM)
RE:Cannot convert an InfoPath form

In other words, I don't quite understand what exactly was "not found."


jritmeijer@muhimbi.com-(1/9/2012, 5:27 PM)
RE:Cannot convert an InfoPath form

Hmm, that is indeed weird.

 

I (only now) noticed that you included a log file in Debug mode as well (Excellent!) J.

 

It is retrieving the XSN from

 

https://infoman.elfers.tws.com/sites/hii/supplierforms/CR%20Forms/Forms/template.xsn?OpenIn=PreferClient&NoRedirect=true

 

There is almost a 2 second delay before the next entry is written to the log file, which is quite long.

 

Is this the same server that runs both the SharePoint Front end and the Muhimbi Conversion Service?

 

Are you using a proper SSL cert or is it a test untrusted one? We have recently added support for invalid SSL certificates in version 5.2.

 

 

Best regards,

 

Jeroen Ritmeijer

Muhimbi

boris.velikovich@exostar.com-(1/9/2012, 8:00 PM)
RE:Cannot convert an InfoPath form

Thank you! I've just upgraded to the new version, and also added my SSL certificate to the Trust center on the Central Administration. Still the same error, and still 2 seconds to retrieve XSN. Everything is going on on the same server (i.e., SharePoint 2010 and the Muhimbi Document Conversion Server.)

jritmeijer@muhimbi.com-(1/9/2012, 8:50 PM)
RE:Cannot convert an InfoPath form

 Please send me a sample XML and XSN file combination to see if I can reproduce the problem over here.

 

Are you getting the same problem when you quickly publish a new and simple XSN file to SharePoint, fill it out and try to convert it?

 

Best regards,

 

Jeroen Ritmeijer

Muhimbi

boris.velikovich@exostar.com-(1/9/2012, 7:26 PM)
RE:Cannot convert an InfoPath form

In other words, I don't quite understand what exactly was "not found."


jritmeijer@muhimbi.com-(1/10/2012, 9:45 AM)
RE:Cannot convert an InfoPath form

Hi Boris,

 

There appears to be some kind of environmental issue as the InfoPath file you mailed converts just fine over here, see attached.

 

As your file validates fine in Central Admin the problem must be related to resolving the URL for the XSN file.

 

Some further tips / troubleshooting steps.

 

1.       Please log in to the server running the conversion service using the account the Muhimbi Service is running under and try to open the URL (https://infoman.elfers.tws.com/sites/hii/supplierforms/CR%20Forms/Forms/template.xsn?OpenIn=PreferClient&NoRedirect=true ) in a web browser.

2.       Although our software works fine with HTTPS hosted XSN files, please try and publish the XSN file to a regular HTTP enabled site collection. Something is not quite right in your environment and I need to know the cause before providing a solution.

3.       Please have a look in the Web Application’s IIS log files to see what is happening to the request in question.

4.       Are there any entries in your local ‘hosts’ file to point the ‘infoman.elfers.tws.com’ host name to a different IP Number?

5.       If all the above steps fail then please try a Fiddler / Wireshark trace to see why the XSN file is not found. We retrieve the XSN file via a standard HTTP request, there is no magic going on.

6.       Finally please place the test files you mailed me on your conversion server, change the XSN path in the XML header to point to the local XSN file on your file system and convert the XML file using the diagnostics tool.

 

Best regards,

 

Jeroen Ritmeijer

Muhimbi

jritmeijer@muhimbi.com-(1/11/2012, 9:51 AM)
RE:Cannot convert an InfoPath form

Hi Boris,

 

Your hosts file looks fine. Were you able to convert the file from your local file system?

 

I have two more troubleshooting steps I would like you to carry out:

 

1.       Run the Muhimbi Service under a different service account.

2.       Run our diagnostics tool, see below.

 

We have created a test harness to assist with troubleshooting accessing XSN files, please download it from http://www.muhimbi.com/Images---Files/PDFConverter/RequestXSN.aspx and then execute the following steps:

 

a.       Retrieve the full path to your XSN file from the header of your XML file.

b.      Login to the server that runs the Muhimbi Service, and is causing this error, using the account the service is running under.

c.       Copy the attached file to this server and unpack it.

d.      Run “bin\debug\RequestXSN.exe”

e.      Enter the full path to the XSN file and click the “Request XSN file” button.

f.        Copy the content of the output window (located beneath the button) in an email and attach the log file that has been written to the “bin\debug” folder.

 

I hope this will give us a better insight in the underlying problem.

 

Best regards,

 

Jeroen Ritmeijer

Muhimbi

1 2