Error When calling FormView.InsertItem

Thread is closed for posting
3 posts, 1 answers
  1. DMC Helpdesk
    DMC Helpdesk avatar
    52 posts
    Member since:
    Nov 2007

    Posted 14 Jun 2010 Link to this post


    I am using Telerik OpenAccess Domain model in a class library and my front end application is an ASP.NET application.I have an entity in the model called 'Desktop' whose primary key property is 'InventoryId' , and which has the properties: InventoryId, Model, Proccessor.

    I am using OpenAccess Data source to bind a FormView to the data entity.The DataKeyNames property is set properly on the FormView (DataKeyNames="InventoryId") but as soon as i call FormView.InsertItem(true), I get the following error:

    Changes are not possible if the primary key fields are notvisible.
    Please specify the id and version fields in the persistentattribute.

    Any ideas on this.?

  2. Answer
    Serge avatar
    375 posts

    Posted 15 Jun 2010 Link to this post

    Hi DMC Helpdesk,

    I am having trouble reproducing this particular behavior. It would be best if you could prepare a small demo project and send it to us so that we can debug it locally. Also you have pointed out that your current version is 2010.1.527, I suggest downloading the latest version from your account page.

    I am looking forward to your response and investigating this issue. 

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DMC Helpdesk
    DMC Helpdesk avatar
    52 posts
    Member since:
    Nov 2007

    Posted 16 Jun 2010 Link to this post

    Thanks Serge.The internal build fixed it.

Back to Top