Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

error causing on PDF conversion by Word automation service application.

$
0
0

Hi Experts,

In below Powershell command for DOC-PDF converison, getting error on $job.start() command:

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Word.Server")
$jobSettings = New-Object Microsoft.Office.Word.Server.Conversions.ConversionJobSettings
$jobSettings.OutputFormat = "PDF"
$job = New-Object Microsoft.Office.Word.Server.Conversions.ConversionJob("Word Automation Services", $jobSettings) 
$job.UserToken = (Get-SPWeb http://sp).CurrentUser.UserToken
$job.AddFile("http://sp/Shared%20Documents/test3.docx","http://sp/Shared%20Documents/test3_PDF.pdf")
$job.Start()

Powershell Screen error:

Exception calling "Start" with "0" argument(s): "The service application
required to complete this request is not currently available. Try this
operation again later. If the problem persists, contact your administrator."
At line:1 char:1
+ $job.Start()
+ ~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : SPException

Under log's it's some 401 unauthorised issue:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was ''. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.     at System.Net.HttpWebRequest.GetResponse()    at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

On Development environment it's working fine. Has anyone faced this issue or pls suggest something?

Mahi


Please Mark as answer if found useful :)



Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images