Wed, 2023-05-31 03:00
AC
Hello,
I'm trying to set a user's prefix programmatically and this error pops up.
I'm running the report as a user who is "system user" therefore permissions shouldn't be a problem
When I try executing the method manually using the Debug "immediate" window, the behaviour is the following:
The first call fails, the second (and further) call(s) succeed. Apparently, the prefix is set. However, when checking the prefixes (Database > Properties > Identifiers), no prefix is ever created. Even after loggin out / logging in again on the database the list contains only the default "STD" prefix.
What am I missing here? Do the User object needs to be "saved" or "commited" in some way before setting the prefix?
Any ideas?
Thanks in advance!
Hi Kyle,
I have no idea, what might be wrong here. I've tried in a small DB using the system user and it all worked perfectly:
% user.Name(1033)
system
% user.Prefix()
STD
% user.SetPrefix("PREFIXTEST")
true
% user.SetPrefix("PREFIXTEST2")
true
% user.Prefix()
PREFIXTEST2
% user.SetPrefix("PREFIXTEST")
true
% user.Prefix()
PREFIXTEST
%
Does your login user have all needed function privileges? (database management, prefix management, user management)
BR, Torsten
Thanks for your reply.
I do have all required permissions to change prefix. The underlying database (Oracle) may have something to do with this problem... because everything works fine if I test the code in the LOCAL database.
Here is the output log, if someone wants to give it a try:
By looking at the logs above, this seems to be a very low level problem.
One possible solution is:
1. export db from oracle installation to a LOCAL installation
2. run scripts that change prefix
3. re-import changed db into oracle installation.
Thanks.
Hi,
you are right. Looking at the stacktrace, it's an internal error in the interface to the Oracle database system. Please contact ARIS support to solve this error.
BR,
Torsten
Thanks for your help!