Stored procedure error: "The data reader is incompatible..."
Posted: Tue 24 Feb 2009 20:51
I am trying to execute a stored procedure but I keep running into the following error.
"The data reader is incompatible with the specified 'AttrNmValViewDO'.
A member of the type, 'ENTITY_ID', does not have a corresponding column in the data reader with
the same name."
I checked entity in the data model and it matches the corresponding view in the database. I also checked the stored procedure and it is returning the correct number of parameters so I am not quite sure what is happening.
I am executing three other stored procedures without any trouble so I don't what could be causing the problem. The three other stored procedured return entities that are mapped to a table, or joined tables, instead of a view so maybe there is a problem there.
Has anyone you seen this problem before and has an idea what it could be?
Thanks,
Joe
"The data reader is incompatible with the specified 'AttrNmValViewDO'.
A member of the type, 'ENTITY_ID', does not have a corresponding column in the data reader with
the same name."
I checked entity in the data model and it matches the corresponding view in the database. I also checked the stored procedure and it is returning the correct number of parameters so I am not quite sure what is happening.
I am executing three other stored procedures without any trouble so I don't what could be causing the problem. The three other stored procedured return entities that are mapped to a table, or joined tables, instead of a view so maybe there is a problem there.
Has anyone you seen this problem before and has an idea what it could be?
Thanks,
Joe