Issue

  • An inventor file is converted with powerJobs using the InventorServer into one of the following formats: BMP, GIF, JPEG, PNG, TIFF, and logfile contains following errors:
    coolOrange.PowerJobs.Cmdlets.CmdLets.Cad.CadCmdletBase - ExportDocumentContext failed with exception: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Cause

  • The InventorServer application does not support converting files to JPEG, BMP, GIF, TIFF, PNG.

Solution

  • On the machine on which powerJobs is installed navigate to "C:\ProgramData\coolOrange\powerJobs\Jobs"
  • Open your job's script file
  • Search for Open-Document :
    Open-Document -LocalFile $file.LocalPath ...
  • change it to use Inventor as application:
    Open-Document -LocalFile $file.LocalPath -Application "Inventor"

See Also

Possible file conversions (coolOrange wiki)