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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Problem with updating entity field: Sequence contains no matching element

(0) ShareShare
ReportReport
Posted on by 5

Hi,

we created solution in instance with English base language, and import it in other instance with German base language. In new instance updating Entity field failed with error: "Plugin execution error: Sequence contains no matching element".

Creating and deleting entity record works fine.

Trying to update field "statuscode".

var entity = {};
entity.statuscode = 559400002;

Xrm.WebApi.online.updateRecord("ibdyncrm_vibertemplate", "45810925-60e8-ea11-a817-000d3ac1f4f5", entity).then(
    function success(result) {
        var updatedEntityId = result.id;
    },
    function(error) {
        Xrm.Utility.alertDialog(error.message);
    }
);

Does anyone have some idea what is going wrong?

Thanks

I have the same question (0)
  • JasonLu Profile Picture
    5 on at
    RE: Problem with updating entity field: Sequence contains no matching element

    Hi, I'm facing similar problems and really don't know what to do. Have you figured out the root cause why and how to solve this problem if the user cannot install an extra language locale? Besides may I ask how to install extra language locale, I'm really a noob.

    Thanks a lot

  • Josip-Infobip Profile Picture
    5 on at
    RE: Problem with updating entity field: Sequence contains no matching element

    When instance has installed English language (doesn't need to set English as UI language) then everything work fine. Solution base language is English.

    But I want to find the cause of the problem (Sequence contains no matching element), so users of my solution doesn't need to install English language.

  • Josip-Infobip Profile Picture
    5 on at
    RE: Problem with updating entity field: Sequence contains no matching element

    I tried to change statuscode ans statecode together, but without success. When try to update some other fields (including statecode) updating works fine.

  • Kokulan Profile Picture
    18,054 on at
    RE: Problem with updating entity field: Sequence contains no matching element

    Hi

    Have you tried installing English language on your target instance?  It looks like the plugin is looking for a locale and not able to find it. If this is German only instance, I would install English and see if that solves the issue.

    Please note : if you install English, it wont automatically change user's preferred language. However, if you have enough storage in your tenant, I suggest you copy the instance over to a sandbox, install the English language and see if you still get the same error. if installing English lang fixes the issue, you can apply the same to the Prod/the target instance you were having issues with.

    Please refer to the link below if you want to know how to install the language

    kb.xpertdoc.com/.../viewpage.action

  • Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Problem with updating entity field: Sequence contains no matching element

    Hi,

    can you also pass statecode field value in your web api code.

    statuscode and statecode should be provided whenever we need to update status of any record.

    Please mark my answer verified if i were helpful

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 174

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 121 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans