web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error: An unexpected 'StartArray' node was found when reading from the JSON reader.

(0) ShareShare
ReportReport
Posted on by 2,100

We're getting an error on save of a record in the unified client. The error only occurs when making a change to a multi-select picklist field.

The error just started occurring; we haven't made any recent code changes.

We tried removing the custom JavaScript code on the form but the error stills appears.

We cleared the browser cache. The error is occurring for three out of four users. All users are using the same version of Chrome.

It looks like built-in code on the form is presenting the multi-select options as a JSON array (e.g., [10000001,10000002]) but the code is likely expecting just a comma-delimited list of values. That is probably why the error indicates "unexpected 'StartArray'".

Any ideas for working around this?

Thanks!

An error occurred while validating input parameters: Microsoft.OData.ODataException: An unexpected 'StartArray' node was found when reading from the JSON reader. A 'PrimitiveValue' node was expected.
at Microsoft.OData.Json.JsonReaderExtensions.ValidateNodeType(IJsonReader jsonReader, JsonNodeType expectedNodeType)
at Microsoft.OData.JsonLight.ODataJsonLightPropertyAndValueDeserializer.ReadPrimitiveValue(Boolean insideJsonObjectValue, IEdmPrimitiveTypeReference expectedValueTypeReference, Boolean validateNullValue, String propertyName)
at Microsoft.OData.JsonLight.ODataJsonLightPropertyAndValueDeserializer.ReadNonEntityValueImplementation(String payloadTypeName, IEdmTypeReference expectedTypeReference, PropertyAndAnnotationCollector propertyAndAnnotationCollector, CollectionWithoutExpectedTypeValidator collectionValidator, Boolean validateNullValue, Boolean isTopLevelPropertyValue, Boolean insideComplexValue, String propertyName, Nullable`1 isDynamicProperty)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadEntryDataProperty(IODataJsonLightReaderResourceState resourceState, IEdmProperty edmProperty, String propertyTypeName)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadPropertyWithValue(IODataJsonLightReaderResourceState resourceState, String propertyName)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.<>c__DisplayClass4_0.<ReadResourceContent>b__0(PropertyParsingResult propertyParsingResult, String propertyName)
at Microsoft.OData.JsonLight.ODataJsonLightDeserializer.ProcessProperty(PropertyAndAnnotationCollector propertyAndAnnotationCollector, Func`2 readPropertyAnnotationValue, Action`2 handleProperty)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadResourceContent(IODataJsonLightReaderResourceState resourceState)
at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadResourceStart(PropertyAndAnnotationCollector propertyAndAnnotationCollector, SelectedPropertiesNode selectedProperties)
at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadAtStartImplementationSynchronously(PropertyAndAnnotationCollector propertyAndAnnotationCollector)
at Microsoft.OData.ODataReaderCore.ReadImplementation()
at Microsoft.OData.ODataReaderCore.InterceptException[T](Func`1 action)
at System.Web.OData.Formatter.Deserialization.ODataReaderExtensions.ReadResourceOrResourceSet(ODataReader reader)
at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)

*This post is locked for comments

I have the same question (1)
  • Rhett Clinton Profile Picture
    Moderator on at

    Do you still need assistance with this? Has it resolved with recent Dynamics updates?

  • Alltess Profile Picture
    15 on at

    We are having the same issue, did you found the source ?

  • Alltess Profile Picture
    15 on at

    Hi we have the same issue in dynamics 365 on promise V9 only in some form which is weird and it does not give the error in Classic mode for the same entity record. Did you fix your issue ?

  • hari.mallampati@hotmail.com Profile Picture
    172 on at

    we are also getting the same error. we are also on-prem 9.0 version

  • hari.mallampati@hotmail.com Profile Picture
    172 on at

    Yes please

  • hari.mallampati@hotmail.com Profile Picture
    172 on at

    @Tim, did get fix for this issue?

  • hari.mallampati@hotmail.com Profile Picture
    172 on at

    @Alltess, di you get fix for th issue?

  • Alltess Profile Picture
    15 on at

    No,

    we did not get a fix yet. Someone would probably need to have support from Microsoft. We do not have a support contract, so it is not possible to go deeper with them.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans