Book a Demo

Author Topic: Can't edit because its checked in &can't check  (Read 5618 times)

ebeb

  • EA User
  • **
  • Posts: 169
  • Karma: +0/-0
    • View Profile
Can't edit because its checked in &can't check
« on: February 12, 2010, 02:49:35 am »
OK, this is very strange.

I was just working on an checked out package. I created a new package in that package, and tried to move some elements into that new package. But when I tried to move, EA told be I am not allowed because its checked in?



WTF? >:(

 I resynced statuses, now I shows me it's checked in. I asked myself why? Ok, no matter, let's try to check out the package. Now, EA tells me "Can't check out because its already checked out!"



. Resynced again, reopened the project, reopened EA. Nothing helped. Then, accidently, I used Get Latest on that package which deleted the work from a few days but did not solve my problem.

At the end, I proceeded that way:
Removed read-only from the local XMI file. Edited the file, set the "packageFlags" tag to "VCCFG=RIALTO_SVN;CheckedOutOffline=0;CRC=0;". Unfortunately, the file is locked. I had to use svn unlock --force on that file to unlock and then commit it.

Now I used resync all statuses, and then checked out the package which luckily worked.

This is all a bit strange. Is there any explanation for that behaviour or should probably raise an issue?

-Jan
[edit]It seems as if "it" happened to all packages that had checked out. All of these packages are now displayed as checked-in (Black key icon). If I want to check them out, it says that they are already checked out. Is there any solution, I don't want perform the procedure explained about for all packages :([/edit]
« Last Edit: February 12, 2010, 03:46:06 am by ebeb »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can't edit because its checked in &can't check
« Reply #1 on: February 12, 2010, 05:15:58 pm »
Jan,

You haven't switched users in between have you? Because that would explain the behavior.

If you have checked-out the files using userA and then logged in as userB then that would be exactly the behavior I would expect.

Geert

ebeb

  • EA User
  • **
  • Posts: 169
  • Karma: +0/-0
    • View Profile
Re: Can't edit because its checked in &can't check
« Reply #2 on: February 12, 2010, 07:28:34 pm »
Nope.

As I said, this happened literally in the same second: I 1.) created a pacakge and then 2.) tried to move some elements in it.

1.) worked
2.) didn't - I got the above error message.

This is mysterious.

Dave.B

  • EA User
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Can't edit because its checked in &can't check
« Reply #3 on: February 13, 2010, 02:02:58 am »
It's happened to me a few times! We're using the ClearCase VC connector.

The way that I have fixed it is to export the affected package to my desktop (or some local temporary place). Then replace the VC package with the exported package from the previous step and, using the direct ClearCase tools interface (i.e. not through EA) check it in. Then go back to EA and check it out. EA will reload the package from VC and allow you to continue.

If there's a better way, please would someone post that here!

Best Regards
Dave B.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can't edit because its checked in &can't check
« Reply #4 on: February 13, 2010, 02:07:02 am »
I don't know it is a better way, but there is another way.
Ea stores the VC settings in the t_package table. (in one of those "magic string" columns, I don't remember exactly which one).

You can manipulate those to make EA believe you actually checked out the package.

Geert

ebeb

  • EA User
  • **
  • Posts: 169
  • Karma: +0/-0
    • View Profile
Re: Can't edit because its checked in &can't c
« Reply #5 on: February 13, 2010, 02:48:15 am »
Quote
You can manipulate those to make EA believe you actually checked out the package.

How? I don't have MS Access. Is there a built-in way to do it?


And why does Resync statuses with VC not work? I mean, what information from SVN does EA use to determine if its checked in or checked out?
« Last Edit: February 13, 2010, 02:50:09 am by ebeb »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can't edit because its checked in &can't check
« Reply #6 on: February 13, 2010, 03:41:58 am »
Jan,

Even without MS-Access you should be able to manipulate the database.
Try searching for a generic interactive sql client.
I can't remember any particular application right now, but I've come across such programs in the past. (I think I even wrote something like that as an assignment back in school  :))

Geert