NCP-EUC · Question #17
An administrator needs to create a new MCS Catalog, but is receiving a failure error, as shown below: Acropolis _ Inventory: Getccntent Exception:system.ArgunentException: Error during serialization…
The correct answer is B. nutanix@cvm: ~$ acli snapshot.list I wc -l D. nutanix@cvm: ~$ acli snapshot.list I wc -1 E. 4787. The error 'The length of the string exceeds the value set on the maxJsonLength property' occurs when the Nutanix Acropolis inventory call returns a JSON payload too large for the serializer to handle. The root cause is typically an excessive number of snapshots stored on the…
Question
An administrator needs to create a new MCS Catalog, but is receiving a failure error, as shown below:
Acropolis _ Inventory: Getccntent Exception:system.ArgunentException: Error during serialization or deserialization using the JSON Java Scriptseriali:er. The length of the string exceeds the value set on the maxJsonLenth property.
Options
- ARunning the below command on CVM shows the following output:
- Bnutanix@cvm: ~$ acli snapshot.list I wc -l
- C1919
- Dnutanix@cvm: ~$ acli snapshot.list I wc -1
- E4787
How the community answered
(28 responses)- A14% (4)
- B79% (22)
- C7% (2)
Explanation
The error 'The length of the string exceeds the value set on the maxJsonLength property' occurs when the Nutanix Acropolis inventory call returns a JSON payload too large for the serializer to handle. The root cause is typically an excessive number of snapshots stored on the cluster. Running 'acli snapshot.list | wc -l' on the CVM reveals the snapshot count - in this scenario, approximately 4787 snapshots exist. This large volume causes the JSON response to exceed the default maxJsonLength limit, which breaks the MCS Catalog creation workflow. The fix involves pruning stale or orphaned snapshots to reduce the payload size below the serializer threshold.
Topics
Community Discussion
No community discussion yet for this question.