Incorrect prefetch path

Posts   
 
    
tprohas
User
Posts: 257
Joined: 23-Mar-2004
# Posted on: 19-Apr-2006 01:15:16   

I am adjusting a prefetch path and now see the following error.

The prefetch path element at index 0 in the passed in prefetch path for root entity type 64 is meant for root entity type 2 which isn't a subtype of 64

This is not helping me out much in figuring out the problem. The adapter.FetchEntity method that is executing this works in one place, but not in this case for some reason. Is there some way of debugging this that I don't know about? I also wonder if we could get the entity names in this error instead of their index or type number so we know more about what's happening?

tprohas
User
Posts: 257
Joined: 23-Mar-2004
# Posted on: 19-Apr-2006 01:22:56   

Awsome, I love when I find the reason for the error right after posting the question smile In any case I would still like to know if its possible to use the actual entity name in the error instead of the entyt type number.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 19-Apr-2006 09:18:10   

simple_smile . The sad thing is, I can't get that number's enum value... At least not directly. I'll see if I can use other elements in the prefetch path to determine the parent/child entities simple_smile

Frans Bouma | Lead developer LLBLGen Pro