Book a Demo

Author Topic: Error using model wizard: User does not have permission...  (Read 8727 times)

KenM

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Error using model wizard: User does not have permission...
« on: July 27, 2017, 06:18:15 am »
Hi there,

We've recently deployed Sparx EA 13, and are in the process of working out our own internal processes on how to use the tool.  We've created a SQL Server instance as our backend, and are using Windows Integrated Authentication to connect to the database.

Everything seems to work well (changes persist in the database!), but we get the following error when adding models using the Model Wizard:

"User does not have permission to import model images"

We end up getting default icon's in the project navigator view, although they seem to correct themselves after a 'period of time' (not sure how long it takes).

Anyone have any ideas?  We have datareader and datawriter permissions to the database, and have NOT enabled version control in the system as of yet. 

Thanks!



Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #1 on: July 27, 2017, 07:12:47 am »
What are the user permissions on the Sparx folders under %ProgramFiles% ?

KenM

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #2 on: July 27, 2017, 07:31:12 am »
Administrator has full control, Users have Read/Execute.  Do users need write access to this folder??

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #3 on: July 27, 2017, 07:38:10 am »
Administrator has full control, Users have Read/Execute.  Do users need write access to this folder??

No but I've seen different organisations cause problems with apps by changing the defaults for these directories.  If it's not a SQL permission error it could be a problem with permissions on %APPDATA% if EA writes something temporarily before importing into the DB.
 

KenM

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #4 on: July 28, 2017, 02:08:28 am »
Unfortunately, it appears that I have full control over %APPDATA%.

Data is being persisted correctly in the DB, so I'm honestly not sure what the root cause of the issue is.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #5 on: July 28, 2017, 04:38:35 am »
IIRC there's also an EA security setting for this kind of operation.

q.

Gus Gunn

  • EA Novice
  • *
  • Posts: 2
  • Karma: +2/-0
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #6 on: February 13, 2018, 06:17:28 am »
We have just recently had the same problem. It was only occuring with models that were in SQL DB.  Local DB temp type models worked fine.  We found the resolution was to create an AD group called "SQL Enterprise Architect Update" and then:
GRANT ALTER ON [dbo].[t_image] TO [SQL Enterprise Architect Update].

Were were using version 13.309 of EA and did not have model security enabled.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Error using model wizard: User does not have permission...
« Reply #7 on: July 27, 2018, 10:38:19 am »
Wow, this is timely, I've just encountered this issue, so will attempt the fix
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

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 using model wizard: User does not have permission...
« Reply #8 on: July 27, 2018, 06:31:51 pm »
I think Sparx has released a new schema that doesn't need these permissions on the t_image table, but IIRC this schema can only be used by v14 and is not backwards compatible.

Geertr