Skip to content

Model graph too large exception #454

@pareshbhurke

Description

@pareshbhurke

In process of upgrading Sitecore 8.2 to Sitecore 10.2, I had to upgrade Glassmapper from 4.x to 5.x. I have done most of the syntax changes and as mentioned for Glassmapper 5, the lazy loading is enabled by default. When I run the code, I run into following exception, whenever there is .Any() or .Count() operation is performed.

MapperStackException: Model depth check failed. Model graph too large, enable lazy loading
Model depth check failed. Model graph too large, enable lazy loading. Type requested: ..

The entities glassmapper is trying to map are generated using TDS.

Please if anyone can help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions