Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Error, can't create record in custom entity

Posted on by 105

Hi,

I'm receiving an error when trying to create a post in a custom entity.

The popup just states that an "Unexpected error has occurred" and something about contacting your administrator.
The retrieved log file states the following:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: lengthDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>ba25b48b-d665-4319-a8dc-254f777aa1e9</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length</Message>
<Timestamp>2019-02-14T10:04:13.0504236Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

On the form I have an Autonumber plugin that enters a number onCreate. I've tried disabling, but it doesn't solve it.
I've also tried disabling all JS and workflows, nothing works.

Anyone stumbled upon this before?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Error, can't create record in custom entity

    I would recommend to open a ticket with Microsoft and ask for support.

  • ViktorKarlstrom Profile Picture
    ViktorKarlstrom 105 on at
    RE: Error, can't create record in custom entity

    Online

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Error, can't create record in custom entity

    Is it Online or onprem?

  • ViktorKarlstrom Profile Picture
    ViktorKarlstrom 105 on at
    RE: Error, can't create record in custom entity

    Hi Andrew,

    This is the full log.

    Kind regards

    Viktor

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Error, can't create record in custom entity

    Hello,

    Can you please provide full log or this is the full one?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans