Error on Insert

2 posts, 0 answers
  1. Josh
    Josh avatar
    6 posts
    Member since:
    Nov 2015

    Posted 13 Jul 2017 Link to this post

    I have a problem when inserting a new record into a TreeList.  I am using advanced OnNeedDataSource binding and manually inserting the record into our DB during the InsertCommand.  After the insert command completes I get the following error:

    "Property accessor '[PK and DataKeyName]' on object '[Object]' threw the following exception:'Object does not match target type.'"

    I can't find any helpful documentation on this exception, is there any help that you may be able to give on this matter?

  2. Vessy
    Vessy avatar
    2074 posts

    Posted 18 Jul 2017 Link to this post

    Hi Josh,

    I am afraid that the provided information in not enough for us to tell what is causing the problem and how to resolve it. Can you, please, share some more details on the exact scenario in which the problem occurs? Would it be possible prepare and send us a runnable sample where we can reproduce the behavior at hand and examine it further?

    Thank you in advance for your cooperation.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top