I am having intermittant problems with fields defined as NVARCHAR(max).
Specifically, when navigating to ListAll.aspx for an entity that has such a field, I'm getting the following error:
_The size (2147483647) given to the column 'Notes' exceeds the maximum allowed for any data type (8000). _
It's not every time, though. I can see the first page of entities on ListAll, but when I try to go to the second page it fails.
I do not think this is directly related to the entity as I can edit and view entities by changing the ID up in the browser location bar and view/edit entity 11.
I do know that the error happens after the last block of code executed in the generated code:
protected override DynamicQueryEngineBase CreateDynamicQueryEngine()
{
DynamicQueryEngine toReturn = new DynamicQueryEngine();
toReturn.PerCallCatalogNameOverwrites = _catalogNameOverwrites;
toReturn.PerCallSchemaNameOverwrites = _schemaNameOverwrites;
return (DynamicQueryEngineBase)toReturn;
}
Stepping through the code using F11 gives me the above error immediately after this method (from DataAccessAdapter.ca) is executed.
To reproduce this error, just add a field with type NVARCHAR(max) and put 11 records in it. Browse to the second page of the viewall page's grid.
Cheers,
-jc