Sequence contains more than one element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) at Blackbaud.AppFx.ContentManagement.Parts.ShoppingCart.UI

When trying to edit or create a 2.0 payment part the following errors occur:

1. Warning This part could not be displayed. Please check its configuration.
2. Exception information:  Exception type: InvalidOperationException  Exception message: Sequence contains more than one element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) at Blackbaud.AppFx.ContentManagement.Parts.ShoppingCart.UI.CartEditor.HTMLEditorControlWrapper1_Load(Object sender, EventArgs e)

 


 
This was reported in a single database that was in the process of implementation at the time.  Later during the implementation following a database migration, the issue no longer occurred.  The resolution is unknown, but it is suspected this was the result of a configuration or system issue that occurred only at the time of the initial report. 

Steps to Duplicate

1. Create new page-add page properties
2. Insert new part-select Payment 2.0
3. Name the Part and Click Next
4.  See this error occur:
The error Server Error in ‘/’ Application, Runtime error occurs. Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.”
5.  Now X out of the error window and go to Parts and note that the part actually did get created. Click the pencil icon by the part and see the error above again when attempting to edit the part.

Note: In order to see the real error, BBIS logs had to be reviewed. Upon reviewing those, this is the error that shows:
Exception information: Exception type: InvalidOperationException  Exception message: Sequence contains more than one element  at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) at Blackbaud.AppFx.ContentManagement.Parts.ShoppingCart.UI.CartEditor.HTMLEditorControlWrapper1_Load(Object sender, EventArgs e)

6.  Now go back to the page created in step #1 and see this error under where the part was added on the page:

    "Warning This part could not be displayed. Please check its configuration"



 

Environment

 Blackbaud Internet Solutions
 4.0
 7.1.168.38

Was this article helpful?