Ticket T524201
Visible to All Users
Duplicate

FormatException occurs in a Web application when selecting a value in the Lookup property editor opened in the nested session

created 8 years ago

Hi

I’m not sure if this has been brought to your attention, and I do apologise if this is a duplicate query.

I have been testing our system after upgrading to 17.3, but I picked up an issue.
I managed to recreate the error I get on a sample project. (Attached)
I have noticed that this only occurs on the Web project, the Win project works. We currently use the Web Project for our system.

In the sample project I have 3 object. TblDebtor, TblJournalBatch and TblJournal.
I have set up these objects in the same way in which we use them.
If you navigate to Default > Tbl Journal Batch and click on New, then again click on New under Journal Lines and then look for a debtor.
Once you select the debtor the following error occurs:

Application Error
Error details

----------

Hide Error details
                                                            Error ID: faa053ea-75ed-4ad9-b1bd-60c9f5f1ae4b
Date: 2017-06-09 01:42:28 PM
Request details:
  Url: http://localhost:2064/Default.aspx?Dialog=true&ActionID=58406381
  Url referrer: http://localhost:2064/Default.aspx?Dialog=true&ActionID=58406381
  SessionID: swpsj2uighccgim4zhqeh04q
  Request type: POST
  User agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
  User IP: ::1
  User:
Authenticated user: [no name]
================================================================================
The error occurred:

Type:       Exception
                    Message:    _171_Test.Module.BusinessObjects.TblDebtor(14) is not a valid value for Int32.
                    Data:       0 entries
                    Stack trace:

at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.SelectObject(String objectId)
   at DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.ProcessCommand(String args)
   at DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.DevExpress.ExpressApp.Web.Templates.IXafCallbackHandler.ProcessAction(String parameter)
   at DevExpress.ExpressApp.Web.Templates.XafCallbackManager.ProcessAction(String parameter)
   at DevExpress.ExpressApp.Web.Templates.XafCallbackManager.callbackControl_Callback(Object source, CallbackEventArgs e)
   at DevExpress.Web.ASPxCallback.OnCallback(CallbackEventArgs e)
   at DevExpress.Web.ASPxCallback.RaiseCallbackEvent(String eventArgument)
   at DevExpress.Web.ASPxWebControl.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String eventArgument)
                    ----------------
                    InnerException:

Type:       FormatException
                                                             Message:    Input string was not in a correct format.
                                                             Data:       0 entries
                                                             Stack trace:

at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo)
   at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
                                                             InnerException is null

--------------------------------------------------------------------------------

Please advice

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

Hi George,

This is a known issue and our developers have fixed it. The fix will be included into the next maintenance update. In case of urgency, feel free to download a hotfix in this ticket: ASPxGridListEditor - FormatException is thrown when selecting an object in a lookup ListView shown from an aggregated collection.

P.S.
When you experienced an exception in DevExpress code, I recommend you locate its callstack and search for one or several topmost method names in our support database, because this behavior might be reported by someone else: https://search.devexpress.com/?q=ASPxGridViewContextMenu.SelectObject&m=SupportCenter
In addition, I recommend checking the Known Issues sections in our What's New documentation:
    all XAF issues that were created in v2016 vol 2.6.
    all XAF issues that were created in v2017 vol 1.3

    Comments (1)
    GW GW
    George Williams 3 8 years ago

      Hi Uriah

      Thank you for your reply.
      I will wait for the next maintenance update before I upgrade our system.

      George

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.