Aller au contenu principal

Could not find entity. Either the session of the entity does not match

Commentaires

4 commentaires

  • Zendesk API User
    Author: mbergmann - 5/7/2020 20:26

    Hi Jamuna,

    do you call either session.commit() or mediaDataset.save() later? Calling only session.createEntity(...) without a later save/commit only creates a temporary entity that is not yet saved in the database.

    Michael

    0
  • Zendesk API User
    Author: Jamuna - 5/8/2020 12:37

    Hi Michael,

    As you said, i have done the below code for commit action

    mediaDataset.getParent().getSchema().getSession().commit( );

    still, After the refresh action, I try to get the existing dataset by query and  i got Null as a result.

    But if i close the java client and reopened then it works fine without any warnings.

    If you know please explain the action of  datasource  refresh.

    Thanks!

    Jamuna

    0
  • Zendesk API User
    Author: mbergmann - 5/19/2020 8:29

    Hi Jamuna,

    could you provide the complete code? With just some lines out of context it’s quite difficult to spot the problem.

    Michael

    0
  • Zendesk API User
    Author: Jamuna - 5/28/2020 5:17

    Hi Michael,

    Thanks !

    Its working fine when calling the mediaDataset.save(); method.

    0

Vous devez vous connecter pour laisser un commentaire.