Book a Demo

Author Topic: Error when generating document from model document  (Read 7987 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Error when generating document from model document
« on: February 07, 2023, 08:28:47 pm »
Details:
When generating a document from a virtual document on which I dragged a package, results in numerous error messages popping up, saying:
ADODB.Fields [0x800a0cc1]

Item cannot be found in the collection corresponding to the requested name or ordinal.

DBerror contains:

07/02/2023 10:20:53
ADODB.Fields [0x800a0cc1]

Item cannot be found in the collection corresponding to the requested name or ordinal.

Context:
select t_object.* FROM ((t_object LEFT JOIN t_diagramobjects ON t_object.Object_ID = t_diagramobjects.Object_ID) LEFT JOIN t_object t_object_1 ON t_object.Classifier = t_object_1.Object_ID) INNER JOIN t_package ON t_package.Package_ID = t_object.Package_ID where t_object.Object_Type='Package' and ( ( t_object.PDATA1 IN ('35019') ) )
GetLongVal( "Instance_ID" )

The same thing goes perfectly fine on a .qea file, but not on an SQL Server model


Steps to Reproduce:
- Create a package, with a diagram
- Add two classes, and association and a few attributes to those classes
- Create a new package, with a diagram, and a «model document» element
- drag the first package onto the model document
- select the default model report as template
- Press F8 and generate the model

Tested in version 16.1.1624

Reported

Geert

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Error when generating document from model document
« Reply #1 on: February 08, 2023, 08:57:41 pm »
Hi Geert,

You have and ( ( t_object.PDATA1 IN ('35019') ) ) in the join. Are you sure the value of 35019 is not giving you a headache? Is it the same on both repos?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Error when generating document from model document
« Reply #2 on: February 08, 2023, 09:18:07 pm »
Hi Geert,

You have and ( ( t_object.PDATA1 IN ('35019') ) ) in the join. Are you sure the value of 35019 is not giving you a headache? Is it the same on both repos?
35019 is an ObjectID, so it's not going to be the same in both repo's.

I ran an integrity check, but still the same. Weirdly I didn't have this problem when I tested on another test machine (with another database), but with the same version.
Anyhow, I hope Sparx will react to my bug report and give me a clue of what is going wrong here.

Geert

steen.jensen

  • EA User
  • **
  • Posts: 181
  • Karma: +8/-1
    • View Profile
Re: Error when generating document from model document
« Reply #3 on: February 12, 2023, 10:54:21 am »
Got  error with version 16.1.1624, its a bug, had it reported last week.
Have to revert to 16.1.22 to get it working with Modell document as earlier versions.