Creating a list of Page, or custom containable type throws SystemOutOfMemoryException

Topics: Writing modules
Jan 18, 2012 at 2:54 PM
Edited Jan 18, 2012 at 2:54 PM

Trying to create a listing of my own Custom Type

            ContentDefinitionManager.AlterTypeDefinition("Buyers Guide",
                cfg => cfg
                    .WithPart("CommonPart", p => p.WithSetting("DateEditorSettings.ShowDateEditor", "true"))
                    .WithPart("PublishLaterPart")
                    .WithPart("RoutePart")
                    .WithPart("BodyPart")
                    .WithPart("BuyersGuidePart")

                    .WithPart("ContainablePart")
                    .Creatable());

But when creating a list of this custom type.. after a long wait.. this error gets thrown

 

Line 147:
Line 148: // allocate instance and set record property
Line 149: contentItem = New(versionRecord.ContentItemRecord.ContentType.Name);
Line 150: contentItem.VersionRecord = versionRecord;

Any ideas?

Have also tried this with Page and the same error gets thrown.
Jan 18, 2012 at 4:31 PM

There shouldn't be any problem with this, so I wonder if "BuyersGuidePart" has an issue?

Jan 18, 2012 at 4:35 PM
We created a clean database, reenabled all the modules used, then tried to create the list and it worked.

Must be a problem with the data in the database.