Bug Report T321864
Visible to All Users

InvalidOperationException is thrown when executing ProcessCurrentObjectAction in a nested many-to-many list view on the Web if the object is not saved with "CollectionEditMode = Edit"

created 9 years ago

This happens in web version with every view configured with CollectionEditMode = Edit being the nested view fom a many to many associated object. If you make the selection of an object with the link action and before saving decide to access to that object  then it raises the exception:

C#
Type: InvalidOperationException Message: An error with number 1007 has occurred. Error message: Unable to execute disabled or inactive action ListViewShowObject. Disable reasons: Requires a single object selected, inactive reasons

The related object has a unique Id Key (Guid) so it is not related to composed keys well known error.

Show previous comments (1)

    You're right Dennis, I have made a new test project and it works so I must think there is something wrong in my project. Could you please advise me about where shoud I research? Searching another isues with the same error message I can't find similarities with my code.

    Dennis Garavsky (DevExpress) 9 years ago

      Thanks for your reply, Jose.
      It is difficult to tell you what is causing this error in your project without debugging it locally. Would you please add problematic business classes from your real project into one of our demos or a brand new solution and replicate the error there? If you cannot isolate this behavior within a small sample, attach your entire project here, but I must warn you that it will take more time to research it.

      DevExpress Support Team 9 years ago

        Hello Jose.

        Thanks for your project. We have replicated the issue. It seems to be related to the fact that the DataAccessMode of the "MailMessage_MailTo_ListView" list view is set to Server. We need additional time to research it. Currently, you can set the DataAccessMode property of this view to Client, as a workaround.

        Answers approved by DevExpress Support

        created 9 years ago (modified 8 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.

          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.