Page 1 of 1

Exception: Parameter 'returnId' not found

Posted: Thu 27 Dec 2018 09:11
by hforall
Trying to save new Entity (Tag), which has two fields (id - autoincrement, name -varchar)

Tag:=EntityContext.CreateAttachedEntity<TTag>;
Tag.Name:='SomeName';
EntityContext.Save(Tag);

On Save Method I have got an Exception: "Parameter 'returnId' not found".
And the same issue for any Entity, Tag is the simplest example.
--
EntityDac v2.0.1
Database - MySql 6.3

Re: Exception: Parameter 'returnId' not found

Posted: Fri 04 Jan 2019 16:50
by MaximG
We tested the work of EntityDAC 2.0.1 according to your description and found no issues. Please compose and send us a simplest sample, in which the issue occurs. In addition, we will need the model (*. enml) used in this sample and the DDL script to create tables used in this sample. For your convenience, please use the e-support form (https://www.devart.com/company/contactform.html).

Re: Exception: Parameter 'returnId' not found

Posted: Fri 12 Apr 2019 06:20
by feuerholt
Any solution here?

Re: Exception: Parameter 'returnId' not found

Posted: Fri 26 Apr 2019 13:48
by MaximG
Currently, we are working on the release of a new build of our product that would include all the changes required for elimination of the issue you described. As soon as we complete this work, the build will be available to all users.

Re: Exception: Parameter 'returnId' not found

Posted: Sun 23 Aug 2020 11:36
by darnocian
I posted something on another issue where I had the same issue. Unfortunately, in my case the EntityDeveloper didn't do enough for me and the 'returnId' was a bit misleading... I used attributes from the code generator. As I was using a postgresql sequence (the postgres equivalent of auto_increment), I changed the annotation to the following which worked for me: [Column('id', []), Generator(gtTable)]

Re: Exception: Parameter 'returnId' not found

Posted: Fri 28 Aug 2020 10:39
by MaximG
Thank you for your suggested solution. We'll test EntityDeveloper according to your description and let you know the result.