Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Problem with updating entity field: Sequence contains no matching element

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

  • JasonLu Profile Picture
    JasonLu 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
    Josip-Infobip 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
    Josip-Infobip 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
    Kokulan 18,048 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
    Bipin D365 28,964 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans