How to get the data which are not successfully inserted in database?

I am inserting multiple records of cdt type to database in writetodatabaseentity() function. I want to get those records which are not successfully added to database. How to achive this?

  Discussion posts and replies are publicly visible

Parents
  • Do you mean to say that the data is partially written to database? I believe this function should either be success or error. if you are sure that the data is partially written, then get the fv!storedvalues in a new variable onSuccess and take the difference of the variable which you used to write to DB and the variable in which the fv!storedValues is stored. Hope this helps.
Reply
  • Do you mean to say that the data is partially written to database? I believe this function should either be success or error. if you are sure that the data is partially written, then get the fv!storedvalues in a new variable onSuccess and take the difference of the variable which you used to write to DB and the variable in which the fv!storedValues is stored. Hope this helps.
Children
No Data