WebGrabber ConvertToPDF returns a WebGrabberResult object detailing the conversion status and any exception details. Listed below are some of the error codes returned from WebGrabber ConvertToPDF and possible resolutions.

WebGrabber Error Codes

WebGrabberStatus -1: A product specific error has occurred.

  • This is a general error code that is not covered by the standard Web Grabber or P3Rest service return codes.
  • Resolutions
    • Review the product logs or the .NET WebGrabberResult object for more details.
    • Verbose logging for the P3Rest service and WebGrabber can be enabled to gather more information, see Turn on Verbose Logging For WebGrabber.

  • Related Error Codes: -12
  • WebGrabberStatus -12 (Internet Explorer)An exception occurred outside any specific functionality.
    • An exception result is returned when performing a conversion using the Internet Explorer engine and the log file for the conversion contain the following message.
      • "Unable to cast COM object of type 'mshtml.HTMLObjectElementClass' to interface type 'ScriptX.Factory'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{BCE02EE6-7566-42E2-8FE3-48CED948908E}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

    • Probable Cause
      • ActiveX is not enabled in IE 11.

    • Resolution
  • WebGrabber -30 (COM) : An attempt to Post data via Http failed.
    • The application was unable to connect to the P3Rest service.
    • Probable Cause
      • The P3Rest service uses port 62625 for HTTP and 62626 for HTTPS. It is possible that you are attempting to connect to the P3Rest service with the incorrect port.
      • When performing a remote conversion, the IP address of the WebGrabber server is incorrect or does not have access to the server.

    • Resolution
      • Check the port you are using in ConvertToPDF
      • Check the IP address used with ConvertToPDF and that the client has permission to access to the remote server.

    • Related Error Codes: -3005 and -12