Author Topic: Microsoft Cursor Engine - E_FAIL  (Read 6417 times)

Mats Gejnevall

  • EA User
  • **
  • Posts: 92
  • Karma: +1/-0
    • View Profile
Microsoft Cursor Engine - E_FAIL
« on: July 02, 2021, 06:49:03 pm »
Suddenly I get this error "Microsoft Cursor Engine - E_FAIL". I am using MS SQL Sever as repository. I happens when I move an element in a certain diagram or I hide a connector in the same diagram. EA then crashes with the error message, when I save the diagram.

Any ideas? Corrupted database?? Any way to recover?


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12340
  • Karma: +489/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Microsoft Cursor Engine - E_FAIL
« Reply #1 on: July 02, 2021, 07:04:45 pm »
Start with a project integrity check. That often helps in cases like this.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13142
  • Karma: +376/-299
  • I'm no guru at all
    • View Profile
Re: Microsoft Cursor Engine - E_FAIL
« Reply #2 on: July 02, 2021, 08:07:56 pm »
There's also some repair function near the integrity check. The best repair however is a backup....

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12340
  • Karma: +489/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Microsoft Cursor Engine - E_FAIL
« Reply #3 on: July 02, 2021, 08:09:07 pm »
There's also some repair function near the integrity check. The best repair however is a backup....

q.
Repair stuff is only for .eap(x) files, not for SQL Server.

Geert

Mats Gejnevall

  • EA User
  • **
  • Posts: 92
  • Karma: +1/-0
    • View Profile
Re: Microsoft Cursor Engine - E_FAIL
« Reply #4 on: September 22, 2021, 10:01:10 pm »
I found the element that is causing the problem by exporting the model to XML and then importing it into a file based repository. Then I removed  the elements one by one from the problem diagram until I got a error that did not crash EA. That was the problem element. When I remove that element from my original model, it did not crash any more.

But it was used in many other diagrams and I would like to replace it with a new version of it in ALL diagrams (50+). But that is hard work! Does anyone have a script that would replace one element with another in all diagrams? That would make my life so much easier. And something I have seen in other EA like tools. Maybe something that Sparx could build into EA!!

Mats Gejnevall

  • EA User
  • **
  • Posts: 92
  • Karma: +1/-0
    • View Profile
Re: Microsoft Cursor Engine - E_FAIL
« Reply #5 on: September 23, 2021, 06:50:02 pm »
When I imported the XML and did updates in the problem diagram I got this error instead of it crashing:

DAO.Field [0x00000c5b] The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

My update could be as small as moving a connector position. The error happened when saving the the diagram, but it did not crash EA any more. That way I was able to detect which element caused the crashing, but not why!!

qwerty

  • EA Guru
  • *****
  • Posts: 13142
  • Karma: +376/-299
  • I'm no guru at all
    • View Profile
Re: Microsoft Cursor Engine - E_FAIL
« Reply #6 on: September 23, 2021, 07:23:24 pm »
Check dberrors.txt. One might have fiddled with the column size somewhere in the DB.

q.

Mats Gejnevall

  • EA User
  • **
  • Posts: 92
  • Karma: +1/-0
    • View Profile
Re: Microsoft Cursor Engine - E_FAIL
« Reply #7 on: September 23, 2021, 09:10:16 pm »
Where would dberrors.txt be stored? On my laptop or on the SQL server?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12340
  • Karma: +489/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Microsoft Cursor Engine - E_FAIL
« Reply #8 on: September 23, 2021, 09:15:11 pm »
%appdata%\Sparx systems\EA

Geert