You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get-azAutomationJobOutputRecord : Conversion from JSON failed with error: Unexpected character encountered while parsing value: R. Path '', line 0, position 0.
At line:1 char:1
+ Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzAutomationJobOutputRecord], CmdletInvocationException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.GetAzureAutomationJobOutputRecord
Error output
HistoryId: 4
Message : Conversion from JSON failed with error: Unexpected character encountered while parsing value: R. Path '', line 0, position 0.
StackTrace : at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Microsoft.Azure.Commands.Automation.Common.PowerShellJsonConverter.InvokeScript(String scriptName, Hashtable parameters)
at Microsoft.Azure.Commands.Automation.Common.PowerShellJsonConverter.Deserialize(String json)
at Microsoft.Azure.Commands.Automation.Model.JobStreamRecord..ctor(JobStream jobStream, String resourceGroupName, String automationAccountName, Guid jobId)
at Microsoft.Azure.Commands.Automation.Common.AutomationPSClient.GetJobStreamRecord(String resourceGroupName, String automationAccountName, Guid jobId, String jobStreamId)
at Microsoft.Azure.Commands.Automation.Cmdlet.GetAzureAutomationJobOutputRecord.AutomationProcessRecord()
at Microsoft.Azure.Commands.Automation.Cmdlet.AzureAutomationBaseCmdlet.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : System.Management.Automation.CmdletInvocationException
InvocationInfo : {Get-AzAutomationJobOutputRecord}
Line : Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80fb980d -Id b8171a51-4d34-4b1f-a2a3-e01b80fb980d_00636864353862141663_00000000000000000218 -ResourceGroupName myResourceGroup -AutomationAccountName myAutomationAccount
Position : At line:1 char:1
+ Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 4
Message : Conversion from JSON failed with error: Unexpected character encountered while parsing value: R. Path '', line 0, position 0.
StackTrace : at Microsoft.PowerShell.Commands.JsonObject.ConvertFromJson(String input, Boolean returnHashtable, ErrorRecord& error)
at Microsoft.PowerShell.Commands.ConvertFromJsonCommand.ConvertFromJsonHelper(String input)
at Microsoft.PowerShell.Commands.ConvertFromJsonCommand.EndProcessing()
at System.Management.Automation.Cmdlet.DoEndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
Exception : System.ArgumentException
InvocationInfo : {Get-AzAutomationJobOutputRecord}
Line : Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80fb980d -Id b8171a51-4d34-4b1f-a2a3-e01b80fb980d_00636864353862141663_00000000000000000218 -ResourceGroupName myResourceGroup -AutomationAccountName myAutomationAccount
Position : At line:1 char:1
+ Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 4
Message : Unexpected character encountered while parsing value: R. Path '', line 0, position 0.
StackTrace : at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, JsonSerializerSettings settings)
at Microsoft.PowerShell.Commands.JsonObject.ConvertFromJson(String input, Boolean returnHashtable, ErrorRecord& error)
Exception : Newtonsoft.Json.JsonReaderException
InvocationInfo : {Get-AzAutomationJobOutputRecord}
Line : Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80fb980d -Id b8171a51-4d34-4b1f-a2a3-e01b80fb980d_00636864353862141663_00000000000000000218 -ResourceGroupName myResourceGroup -AutomationAccountName myAutomationAccount
Position : At line:1 char:1
+ Get-azAutomationJobOutputRecord -JobId b8171a51-4d34-4b1f-a2a3-e01b80 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 4
The text was updated successfully, but these errors were encountered:
Description
I am trying to get the full output of an Automation job output record. But it consistently fails with the following error:
"Conversion from JSON failed with error: Unexpected character encountered while parsing value: R. Path '', line 0, position 0".
I am using the cmdlet exactly as described in the online docs. So I don't understand why this is happening.
Steps to reproduce
or
Environment data
Module versions
Debug output
Error output
The text was updated successfully, but these errors were encountered: