microsoft / microsoft/sql-server-samples

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

Offen
#348 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@jovanpop-msft arbeitet bereits daran.

Seit 27.3.2018.

Vorherrschende Sprache
PowerShell
Sterne
11.2k
Forks
9.1k
Ø Merge
2 T. 7 Std.
Gemergte PRs (30 T.)
14

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.