Probably yes, but my response is based on the code you've posted. Post more from your code ... if you need more help. All i can say is that the error is raised from a part of code dealing with the creation of a record that did not exist in the database yet, but just in memory. This kind of errors can also be related to a wrong code used in your view definition (.xml file), more exactly this means that you are probably using a wrong code from the old api (V7) conflicting with the new api.