Book a Demo

Author Topic: OpenFile returns false  (Read 4745 times)

Karol

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
OpenFile returns false
« on: August 25, 2010, 07:23:04 pm »
I've quite basic question concerning Enterprise Architect's automation interface. Sometimes when I call OpenFile method of the Repository object I receive false value as a result. I guess, that it means, that the interface failed to open repository. My question is how can I check a reason of the failure. Are there same error logs? I use java version of the interface. I've tried with version 7.1 and 8.0 of the interface. I'll be grateful for help or any hint.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: OpenFile returns false
« Reply #1 on: August 25, 2010, 07:42:47 pm »
Try Repository.GetLastError ()

Geert

Karol

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: OpenFile returns false
« Reply #2 on: August 25, 2010, 09:36:05 pm »
Unfortunately, in my case GetLastError method returns an empty string each time. Any other idea?

Karol

beginner

  • Guest
Re: OpenFile returns false
« Reply #3 on: August 25, 2010, 10:21:58 pm »
Yes. Ask Dr. Sparx.

b.

Karol

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: OpenFile returns false
« Reply #4 on: August 26, 2010, 12:03:59 am »
What do You mean Dr. Sparx? Is there such a user on the forum?

K.

beginner

  • Guest
Re: OpenFile returns false
« Reply #5 on: August 26, 2010, 06:40:51 pm »
The deputy of Geoffrey Sparks: the supporters. Write a support request (see link on the bottom of this page).

b.

Van Lepthien

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: OpenFile returns false
« Reply #6 on: September 29, 2010, 05:57:40 am »
I've been getting intermittant "false" return values from EA 8 (on 64 bit Windows 7), but (as I didn't kill the app), it marches merrily along and runs happily afterwards. The same program running with EA 7.5 (on 32 bit XP) against the same repository did not get "false" returns ever, unless I actually messed up the connect string.

I will investigate further, and submit a ticket.