Book a Demo

Author Topic: DAO.Recordset[3354] when adding FK to association  (Read 4707 times)

Markos Fragkakis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
DAO.Recordset[3354] when adding FK to association
« on: November 25, 2009, 05:42:53 am »
Hello,

I have created an ER diagram in Enterprose Architect 6.5 for my database schema (manually, not importing the schema from the DB itself). I am trying to create a FK association between two tables. I am able to draw the association, but when I click on it and select "Foreign Keys", I get a popup saying:

DAO.Recordset[3354]

At most one record can be returned by this subquery

You can see the popup in the attached here:

When I press the OK button, I get the dialog with the columsn of the two tables, only that in one table only two of the 6-7 columns appear, not including the one I want to declare to be a FK. I am able to create normally FKs in several other ocasions. I have dropped and re-created the column in both tables of the relation. I have even dropped and re-created manually the "from" table of the relation, but the problem persists.

Any ideas?
« Last Edit: November 25, 2009, 05:47:55 am by fragkakis »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: DAO.Recordset[3354] when adding FK to associat
« Reply #1 on: November 25, 2009, 12:40:58 pm »
Hi Markos,

Are you really still using 6.5?  As I recall, the Foreign Keys stuff was rough in 6.5.  Try it again with the latest version.  I think you'll find it works properly now.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Markos Fragkakis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: DAO.Recordset[3354] when adding FK to associat
« Reply #2 on: November 25, 2009, 08:56:00 pm »
Well,  even if the company I work for accepts the upgrade, it will have to be for all workstations, as other people work on the same model. So, unless an upgrade for all workstations takes place, it will be like hiding the problem under the carpet.

The strange thing is that FKs work correctly in all other occasions.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: DAO.Recordset[3354] when adding FK to associat
« Reply #3 on: November 25, 2009, 10:33:05 pm »
Hi Markos,

My point was purely for diagnostic purposes.  If build 850 doesn't produce the problem, then Sparx may be able to more quickly isolate what the issue is.  Also, as I said, I think the FK functionality WAS broken in 6.5.

Also, are you saying it's ONLY this particular Association that's causing the problem?  If so there are some experiments that you can do to help narrow the source of the problem.

Finally, using a working version to fix a problem needn't be "sweeping under the carpet".  Once "fixed" the connector may behave perfectly OK with 6.5.

Firstly, though, you need to find what the problem is...
HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Markos Fragkakis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: DAO.Recordset[3354] when adding FK to associat
« Reply #4 on: November 26, 2009, 12:44:17 am »
I installed the trial version, which indeed allowed me to put the FKs where needed.

I opened again the file with 6.5, and when I right-clicked on the relation (now a FK) and clicked on Foreign Keys, I got the same error.

So, I suppose that as long as I do not need to edit the particular relation, I can live with that.

Thanks Paolo!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: DAO.Recordset[3354] when adding FK to associat
« Reply #5 on: November 26, 2009, 01:03:12 am »
Quote
So, I suppose that as long as I do not need to edit the particular relation, I can live with that.!
Hi Markos,

If it is (as it seems) only THAT relation, then I'd do two things...
1a) Create a duplicate (but differently named) tables for both ends - this is so I could check if the problem was the relation.
1b) move the relation to now link the two new tables - then see if there is still a problem (then it's probably the connector itself)
2) Add a new duplicate relation between the two original tables and see if that has a problem (if not - you've just got a workaround).

That should help you decide where the problem is and take appropriate action.

Paolo
« Last Edit: November 26, 2009, 01:03:58 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

DavidHMeadow

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: DAO.Recordset[3354] when adding FK to associat
« Reply #6 on: November 26, 2009, 05:32:02 am »
Go to Project> Documentation. You are looking for the HTML or RTF options.