Error on TypedLists in version 2.5: JCL or LLBLGEN ?

Posts   
 
    
Posts: 42
Joined: 22-Jan-2007
# Posted on: 20-Sep-2007 11:40:53   

I have upgraded from LLBLGEN 2.0 to LLBLGEN 2.5. I am using JCL for the BL; also upgraded this to their 2.5 compatible version. Everything seems to run fine, except for the Typed Lists. I am trying to figure out what is causing the error; JCL or LLBLGEN.

"DataPortal.Fetch failed (SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryConstructionException: The length of the list of fields for the select list (26) isn't the same as the length of the list of persistence info objects passed in (13). This happens when using adapter the DBSpecific project is out of sync with the DBGeneric project. at SD.LLBLGen.Pro.ORMSupportClasses.DynamicQueryEngineBase.CreateSelectDQ(IEntityFieldCore[] selectList, IFieldPersistenceInfo[] fieldsPersistenceInfo, IDbConnection connectionToUse, IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk, Boolean allowDuplicates, IGroupByCollection groupByClause) at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.CreatePagingSelectDQ(IEntityFieldCore[] selectList, IFieldPersistenceInfo[] fieldsPersistenceInfo, IDbConnection connectionToUse, IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk, Boolean allowDuplicates, IGroupByCollection groupByClause, Int32 pageNumber, Int32 pageSize) at SD.LLBLGen.Pro.ORMSupportClasses.DynamicQueryEngineBase.CreateSelectDQ(IEntityFieldCore[] selectList, IFieldPersistenceInfo[] fieldsPersistenceInfo, IDbConnection connectionToUse, IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk, Boolean allowDuplicates, IGroupByCollection groupByClause, Int32 pageNumber, Int32 pageSize) at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.CreateSelectDQ(IEntityFields2 fieldsToFetch, IFieldPersistenceInfo[] persistenceInfoObjects, IPredicateExpression filter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk, Boolean allowDuplicates, IGroupByCollection groupByClause, Int32 pageNumber, Int32 pageSize) at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchTypedView(IEntityFields2 fieldCollectionToFetch, DataTable dataTableToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, Boolean allowDuplicates, IGroupByCollection groupByClause, Int32 pageNumber, Int32 pageSize) at QBO.BL.ReadOnlyListClasses.DoorbelastFinancieelReadOnlyList.DataPortal_FetchCore(Criteria criteria, String connectionString, Int32 timeOut) at QBO.BL.ReadOnlyListClasses.DoorbelastFinancieelReadOnlyList.DataPortal_FetchCore(Criteria criteria) at QBO.BL.ReadOnlyListClasses.DoorbelastFinancieelReadOnlyList.DataPortal_Fetch(Criteria criteria)")

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 20-Sep-2007 11:46:28   

DBSpecific project is out of sync with the DBGeneric project.

Make sure you do the following: - Refresh the catalog from LLBLGen Pr Designer. - Regenerate the code. - make sure your application is using the newly generated code (DBSpecific & DBGeneric).

Posts: 42
Joined: 22-Jan-2007
# Posted on: 20-Sep-2007 13:41:12   

Walaa wrote:

DBSpecific project is out of sync with the DBGeneric project.

Make sure you do the following: - Refresh the catalog from LLBLGen Pr Designer. - Regenerate the code. - make sure your application is using the newly generated code (DBSpecific & DBGeneric).

Did it all. Doublechecked it. Still the same. The Typed List in question has 26 fields both in the LLBLGEN projectfile and in the DbGeneric project. Can't find any code refering to Typed Lists in the DbSpecific project (only EntityMappings in PersistenceInfoProvider.vb).

Posts: 42
Joined: 22-Jan-2007
# Posted on: 20-Sep-2007 14:07:08   

software123 wrote:

Walaa wrote:

DBSpecific project is out of sync with the DBGeneric project.

Make sure you do the following: - Refresh the catalog from LLBLGen Pr Designer. - Regenerate the code. - make sure your application is using the newly generated code (DBSpecific & DBGeneric).

Did it all. Doublechecked it. Still the same. The Typed List in question has 26 fields both in the LLBLGEN projectfile and in the DbGeneric project. Can't find any code refering to Typed Lists in the DbSpecific project (only EntityMappings in PersistenceInfoProvider.vb).

Tried da.FetchTypedList(tl); this works just fine. So I guess there must be something wrong in JCL's GetxxxReadOnlyList.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 20-Sep-2007 16:18:43   

Tried da.FetchTypedList(tl); this works just fine. So I guess there must be something wrong in JCL's GetxxxReadOnlyList.

Yeah, most probably it's a JCL issue, you may try to contact its owners.