Exception: Parameter 'returnId' not found

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
hforall
Posts: 1
Joined: Thu 27 Dec 2018 09:03

Exception: Parameter 'returnId' not found

Post by hforall » Thu 27 Dec 2018 09:11

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

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception: Parameter 'returnId' not found

Post by MaximG » Fri 04 Jan 2019 16:50

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).

feuerholt
Posts: 2
Joined: Thu 11 Apr 2019 21:23

Re: Exception: Parameter 'returnId' not found

Post by feuerholt » Fri 12 Apr 2019 06:20

Any solution here?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception: Parameter 'returnId' not found

Post by MaximG » Fri 26 Apr 2019 13:48

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.

darnocian
Posts: 5
Joined: Sun 23 Aug 2020 11:07

Re: Exception: Parameter 'returnId' not found

Post by darnocian » Sun 23 Aug 2020 11:36

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)]

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception: Parameter 'returnId' not found

Post by MaximG » Fri 28 Aug 2020 10:39

Thank you for your suggested solution. We'll test EntityDeveloper according to your description and let you know the result.

Post Reply