Page 1 of 1

Can't get into Order Manager - going to error page

Posted: Tue Aug 17, 2010 9:37 am
by Mike718NY
When I click on Orders in the Dashboard, I get kicked out
and taken to the error page. Catalog works ok.
Here is the error I found on the server logs:

Event message: An unhandled exception has occurred.
Exception information:
Exception type: ArgumentOutOfRangeException
Exception message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Request information:
Request URL: http://www.website.com/Admin/Orders/Default.aspx
Request path: /Admin/Orders/Default.aspx
User host address: 111.11.111.11
User: user@user.com
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 3
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at CommerceBuilder.Common.SortableCollection`1.get_Item(Int32 index)
at Admin_Orders_Default.GetPaymentStatus(Object dataItem)
at ASP.admin_orders_default_aspx.__DataBinding__control62(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
................

Anyone have any idea what is causing this? thanks

Re: Can't get into Order Manager - going to error page

Posted: Tue Aug 17, 2010 10:35 am
by Mike718NY
>> at CommerceBuilder.Common.SortableCollection`1.get_Item(Int32 index)
>> at Admin_Orders_Default.GetPaymentStatus(Object dataItem)

Could this field be a problem in the Orders table:

[PaymentStatusId]

Re: Can't get into Order Manager - going to error page

Posted: Tue Aug 17, 2010 12:01 pm
by Mike718NY
This is happening because some orders are being placed with
no payment information - the Payment section is blank.
If I add a dummy payment, the Orders screen works again.

Is this a problem related to Authorize or PayPal?
No payment information is being recorded so I can't tell the type of payment.

Re: Can't get into Order Manager - going to error page

Posted: Wed Aug 18, 2010 7:14 am
by jmestep
Have you done any custom coding where you didn't check for null for a payment? I had done that on a custom order print page and it was throwing an error.

Re: Can't get into Order Manager - going to error page

Posted: Wed Aug 18, 2010 2:07 pm
by Mike718NY
I didnt' touch the code, it just started happening.
This happened to 3 orders. Whatever it was, it stopped now.
Maybe it was something authorize.net or paypal did.
I don't know.