Bug Report T567250
Visible to All Users

EF - An exception is thrown when ASPxGridListEditor's action is clicked for an entity with a composite key

created 7 years ago

Hello Devexpress,

I have a problem executing an action, it returns the error:

Type:       Exception
Message:    <?xml version="1.0"?>
<ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <anyType xsi:type="xsd:int">13</anyType>
  <anyType xsi:type="xsd:decimal">1505770018856</anyType>
</ArrayOfAnyType> no es un valor válido para Int32.
Data:       0 entries
Stack trace:

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

Type:       FormatException
Message:    La cadena de entrada no tiene el formato correcto.
Data:       0 entries
Stack trace:

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

The list in this contained in a masterdetail and I get it with entityframework, if I remove the action works well, it seems that it is trying to send the composite key serialized, I have tried DataAccessMode in client, server, dataview but it does not work.

Comments (1)
A A
Arkady (DevExpress) 7 years ago

    Hello Pedro,
    Thank you for your report. I have reproduced this unexpected behavior and passed this ticket to our R&D team for research. Please bear with us. We will get back to you as soon as possible.

    Answers approved by DevExpress Support

    created 7 years ago (modified 7 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (1)
      PC PC
      Pedro Camargo 1 7 years ago

        Solved, very good support.

        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.