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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Requested array json not able to read

(0) ShareShare
ReportReport
Posted on by 81
Hello Everyone,
 
I am getting an error while reading the requested array JSON. I created custom web service and client requesting a JSON by consuming it.
 
Error: /Message/: /An exception occured when deserializing the request - Exception occured when parsing the request content - Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1./,
    /ExceptionType/: /XppServicesDeserializationException/,
    /ActivityId/: /55b747e4-4cf4-0000-29a5-c22a9ea2da01/
Requested JSON Structure: (sample only have more nested list nodes)
[
  {
    /Customer/: {
      /CUSTOMERACCOUNT/: //,
      /GENDER/: //,
      /PERSONBIRTHDAY/: //,
      /PERSONBIRTHMONTH/: //,
      /PERSONBIRTHYEAR/: //,
      /PERSONFIRSTNAME/: //,
      /PERSONLASTNAME/: //,
      /SalesOrderHeader/: [
        {
          /SalesId/: //,
          /BROADCASTID/: //,
          /CALLCENTERAGENTID/: //,
          /CALLCENTERNAME/: //,
          /PAYMREFERENCE/: //,
          /SALESUNITID/: //,
          /TOTALORDERVALUE/: 0.00,
          /SalesOrderLine/: [
            {
              /SALESTYPEID/: //,
              /LINENUMBER/: /1/,
              /ITEMNUMBER/: //,
              /ORDEREDSALESQUANTITY/: 1,
              /ORDEREDINVENTORYSTATUSID/: //,
              /SALESPRICE/: 0.00,
              /ORIGINALPRICE/: 100.00              
            }
          ]
        }
      ]
    }
  }
]
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    he JSON isn't valid for a custom service. You need an object with a properties matching parameters of the service method. The root element of your JSON is an array, not an object.
     
    Moved from D365 general forum to the Finance forum, because it's clearly about F&O and not about D365 in general.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans