microsoft / microsoft/sql-server-samples
The length of the string exceeds the value set on the maxJsonLength property.
@jovanpop-msft is already working on this.
Since Mar 27, 2018.
- Dominant language
- PowerShell
- Stars
- 11.2k
- Forks
- 9.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 14
Description
When assessment file are larger than 2MB i receive the following error and the file is not processed.
ConvertFrom-Json : Error during serialization or deserialization using the
JSON JavaScriptSerializer. The length of the string exceeds the value set on
the maxJsonLength property.
Parameter name: input
At E:\Scripts\DMA_Processor_V5.0.ps1:801 char:26
-
foreach($obj in (ConvertFrom-Json $content)) #level 1, the actual
file
-
~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [ConvertFrom-Json], ArgumentEx
ception - FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Co
mmands.ConvertFromJsonCommand
- CategoryInfo : NotSpecified: (:) [ConvertFrom-Json], ArgumentEx
ConvertFrom-Json : Error during serialization or deserialization using the
JSON JavaScriptSerializer. The length of the string exceeds the value set on
the maxJsonLength property.
Parameter name: input
At E:\Scripts\DMA_Processor_V5.0.ps1:823 char:26
-
foreach($obj in (ConvertFrom-Json $content)) #level 1, the actual
file
-
~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [ConvertFrom-Json], ArgumentEx
ception - FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Co
mmands.ConvertFromJsonCommand
- CategoryInfo : NotSpecified: (:) [ConvertFrom-Json], ArgumentEx
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.