Page 1 of 1

Pre generating views error 7001, validate model no errors

Posted: Fri 25 Feb 2011 13:09
by dsmoyer
When having the model generator pre generate views, there is only one line in the file that states the index is out of bounds.

When running it with the command line, it has the same error but it says it is error 7001.

Opening the model and doing a validate shows no errors.

How can I fix this issue so that views can be generated?

Posted: Fri 25 Feb 2011 15:04
by AndreyR
This problem is associated with the View Pregeneration mechanism. Our code does not participate in this process.
Upgrading to Entity Framework v4 can solve the problem (there were some improvements in it).
This problem can be solved by some modification of the model as well, e.g., like here.

Posted: Fri 25 Feb 2011 15:49
by dsmoyer
The error I get is index is out of bounds not Object reference not set to an instance of an object.

I can repeat this when I try and validate the model. Isn't it your code that validates the model?

Posted: Fri 25 Feb 2011 16:55
by AndreyR
Could you please send the model to support * devart * com (subject: EF Index Out of Range)?
We will investigate the reasons of this situation.
One more thing: is the error reproducible using the latest build of dotConnect?