Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

not able to update look up value webapi

(0) ShareShare
ReportReport
Posted on by 10

{\"error\":{\"code\":\"0x0\",\"message\":\"A node of type 'StartArray' was read from the JSON reader when trying to read the contents of the property 'parentOpportunity'; however, a 'StartObject' node or 'PrimitiveValue' node with null value was expected."}

*This post is locked for comments

  • gunjan Bhure Profile Picture
    gunjan Bhure 10 on at
    RE: not able to update look up value webapi

    var UsedData = "/opportunities(" + $scope.OppModel['parentopportunity_id'] + ")";

                           $scope.OppModel.parentOpportunity = [];
                           $scope.OppModel.parentOpportunity.push({
                               "id" :$scope.OppModel.parentopportunity_id, [this contains the current opportunity id]
                               "name": $scope.OppModel.parentopportunity, [name of parent opportunity ]
                              "entityType": $scope.OppModel.enityname, [name of entity]
                              "@odata.bind": UsedData [to bind the data]
                           })
     
    I am using AngularJS - 1.6.2.
     [quote user="gunjan Bhure"]

    {\"error\":{\"code\":\"0x0\",\"message\":\"A node of type 'StartArray' was read from the JSON reader when trying to read the contents of the property 'parentOpportunity'; however, a 'StartObject' node or 'PrimitiveValue' node with null value was expected."}

    [/quote]



  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: not able to update look up value webapi

    Hi Gunjan, please post the code so that we can look into this.

    however it generally comes when you post a a JSON object & not an Array.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans