Workflow Error When Using Invoke-WebRequest
When you use the PowerShell cmdlet Invoke-WebRequest
in a workflow script you could receive this error:
The response content cannot be parsed because
the Internet Explorer engine is not available,
or Internet Explorer's first-launch configuration
is not complete. Specify the UseBasicParsing parameter
and try again.
This indicates that "Internet Explorer" was not started for the first time by the executing user.
This user could be the kenaflow service account if the workflow runs with such an account, e.g. as scheduled task.
You have two options.
First try to use parameter -UseBasicParsing
with Invoke-WebRequest
to prevent the usage of Internet Explorer engine in the request.
If that is not sufficient please login on the kenaflow server once with the kenaflow service account, start Internet Explorer and finish the "first-launch configuration".
If it fails in debug you probably did not start Internet Explorer with your own user account once. Please do so and finish the "first-launch configuration".