Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Cannot Create Order on Revised Quote: "Index was out of range. Must be non-negative and less than the size of the collection."

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a customized BPF from Opportunity to Order.

In the 3rd stage, I am working on Quote entity. After activating the Quote, I decide to revise it. Revision ID goes up by 1, then I am activating the Quote again. When I click on "Create Order" button an error message appears with "unexpected error". 

unexpected_5F00_error.JPG

The error message will not appear, if the Revision ID stays at 0.

The Log file contains information about an out-of range exception: 

<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="en-US">An unexpected error occurred.</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance"><ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/><Message>An unexpected error occurred.</Message><Timestamp>2017-01-20T10:05:13.1932795Z</Timestamp><ExceptionSource i:nil="true"/><InnerFault><ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/><Message>System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index</Message><Timestamp>2017-01-20T10:05:13.1932795Z</Timestamp><ExceptionSource i:nil="true"/><InnerFault i:nil="true"/><OriginalException i:nil="true"/><TraceText i:nil="true"/></InnerFault><OriginalException i:nil="true"/><TraceText i:nil="true"/></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

Please advise if it's a known issue, and whether it can be fixed within the system without any additional programming.

Many Thanks!

Best Regards

Levente Balázs

*This post is locked for comments

  • Verified answer
    Gary Letter Profile Picture
    Gary Letter 1,267 on at
    RE: Cannot Create Order on Revised Quote: "Index was out of range. Must be non-negative and less than the size of the collection."

    This looks pretty similar to the issue posted below:

    https://community.dynamics.com/crm/f/117/t/204143

    You may want to open a case with Microsoft support and see if a fix has been issued yet.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

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,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans