microsoft / microsoft/sql-server-samples

The length of the string exceeds the value set on the maxJsonLength property.

Open
#348 0 comments 0 reactions 1 assignee View on GitHub

@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

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.