Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cmesbal

Pages: [1]
1
Hello everyone,

problem is solved: I had two installations of EA: EA and EA Lite. Somehow the programm was always starting the EA Lite version. After deinstallation of EA Lite the programm writes into the file without issues.

Thank you everyone!
Cesar

2
Hello everyone,

I was able to run the program in another laptop. However, the problem still occurs in my laptop. I definitely think it is a rights or configuration issue: whenever I try to write into the file, the temporary .ldb is kept open and it does not close. After execution, I always have to kill the EA process in the task manager and delete the .ldb manually. My next idea would be to delete and reinstall EA.

Regards,
Cesar

3
Yes

4
Hello Henrik,

my model is stored locally for the moment. I created a very simple model just to test the writing capability from a very simple program in eclipse (basically the lines above inside a main method and a repository object.

Regards,
Cesar

5
One more hint in case relevant: when I change the extension to .eap instead of .eapx, I cant even open the repository.

6
Thank you,

both export and import working without errors. Also consistency check without problems :(

Regards,
Cesar

7
Hello,

thank you for your comments.

I use EA 15.2, so the migration would not be relevant as far as I know.

Also, I had already considered the update of the TV, but the returned value is always false.

I still believe it has something to do with writting rights, as Eve mentioned, because I can read the midel without problem. However, the security is definitely not enabled...

Any other idea?

Thank you!
Cesar

8
Thank you Eve,
 
according to my model on EA, security is not enabled. I also checked it using repository.GetIsSecurityEnabled() method.
I never had to log in in order to adapt the model manually in EA before. When using repository.OpenFile2() and passing password and user, result is still the same.
 
So in summary, it doesnt seem to be an authentification or security issue. Or did I missundertand anything?.
 
After running my program, the .ldb file is updated and stays open (it does not close until I kill the process in the windows task list). However, the .eapx file does not update.
 
Do you have any other idea/suggestion?.
 
Thank you,
César

9
Bugs and Issues / No permissions to write into .eapx file using Update()
« on: February 29, 2024, 08:43:32 pm »
Hello everyone,
 
I would like to update a taggedValue of my EA model via API. The value seems to be set after using taggedValue.Set("NewValue"). Also, it looks like the database is temporarily updated. However, the "NewValue" is never written into the .eapx file.
 
Here is my example code:
 
Element element = repository.GetElementByGuid("{CD7E7E60-5086-4fc8-B3B6-FE69094B659B}");
 
Collection<TaggedValue> taggedValues = element.GetTaggedValuesEx();
  for (TaggedValue taggedValue : taggedValues) {
 
        if (taggedValue.GetName().equals("isEncapsulated")) {
 
            String value = "NewValue";
            taggedValue.SetValue(value);
            taggedValues.Refresh();
 
        }
 
     repository.SaveAllDiagrams();
     repository.CloseFile();
 
The new value is of the correct type.
 
Using taggedValue.Update() returns always false with exception "You do not have the required permissions to perform this operation. "
 
It looks like an access issue in order to be able to write into the .eapx file, which I never did before.
 
Can anyone help?. Thank you.
 
Best regards, César

Pages: [1]