ALM Oracle SQL Migration Error

Applies to:

ALM 12


ALM 12/Oracle/SQL/Migration

After the install of ALM version 12 application on a new Windows 2008 Server we had the qcsiteadmin_db.users table migrated from ALMv11 ORACLE to SQLSERVER 2008 on our new ALM12 server. We had to have the owner of the tables be changed to ‘td’.

ISSUE: We are not able to create new Site Users within the application Site Administration - we get the error message Failed to create user;User already exists. Attaching Message Details for attempt to create new site user "abcdefg".

IF we attempt to create a duplicate EXISTING user "ajetest" we get the expected popup window "A user with the same name already exists".

To make this more confusing, we have been randomly been able to create new USER_NAME but the USER_ID assigned is not the next sequential USER_ID which would be 335. New Site Users created since ALM12 install. USER_NAME: orleans assigned USER_ID:266; USERNAME: ajetest3_user assigned USER_ID:279

Site Admin DETAILS from error (Logs Below). 


What they need to do is, get a list of current users and their user id's (the numbers). Whatever the *highest* number is for an existing user, when a new user is added, one should be added to it. That is, if 678 were the highest user id, we want the next user to be 679. Then the next would be 680, etc. 

To set the id that will be used next when a new user is added, they need to update the appropriate row in the Site Admin database SEQUENCES table: If they select all rows from the Site Admin DB SEQUENCES table (there are not a lot), they can look at what's returned and find the row where the SQ_SEQ_NAME contains 'USER' (I think it's USER, could be USERS ... I don't have immediate access to a Site Admin DB). Their DBA should be able to easily see this.

Once updated then all new users will get sequential numbers starting after the highest existing number and this will avoid the problem.

Additional Info:


Failed to create user. User 'abcdefg' already exists;

Stack Trace:

com.hp.alm.platform.exception.CCreateUserException: Failed to create user. User 'abcdefg' already exists

at com.hp.alm.platform.siteadmin.api.logics.CTdUserLogic.addUserToDatabase(

at com.hp.alm.platform.siteadmin.api.logics.CTdUserLogic.addUser(

at com.hp.alm.platform.siteadmin.api.logics.CTdUserLogic.createTDUsers(

at com.hp.alm.platform.siteadmin.requests.CreateTDUsers.execute(

at com.hp.alm.platform.web.RequestsDispatcher.execute(

at com.hp.alm.platform.server.web.CAbsServlet.executeFunction(

at com.hp.alm.platform.server.web.CAbsServlet.processRequest(

at com.hp.alm.platform.server.web.CAbsServlet.doPost(

at javax.servlet.http.HttpServlet.service(

at javax.servlet.http.HttpServlet.service(

at org.eclipse.jetty.servlet.ServletHolder.handle(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(

at com.hp.alm.platform.util.gzipfilter.GZIPFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(

at com.mercury.optane.core.state.ServerStatusFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(

at com.hp.alm.platform.web.HTTPMethodsFilter.doFilter(

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(

at org.eclipse.jetty.servlet.ServletHandler.doHandle(

at org.eclipse.jetty.server.handler.ScopedHandler.handle(


at org.eclipse.jetty.server.session.SessionHandler.doHandle(

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(

at org.eclipse.jetty.servlet.ServletHandler.doScope(

at org.eclipse.jetty.server.session.SessionHandler.doScope(

at org.eclipse.jetty.server.handler.ContextHandler.doScope(

at org.eclipse.jetty.server.handler.ScopedHandler.handle(

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(

at org.eclipse.jetty.server.handler.HandlerCollection.handle(

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(

at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(

at org.eclipse.jetty.server.Server.handle(

at org.eclipse.jetty.server.HttpConnection.handleRequest(

at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(

at org.eclipse.jetty.http.HttpParser.parseNext(

at org.eclipse.jetty.http.HttpParser.parseAvailable(

at org.eclipse.jetty.server.AsyncHttpConnection.handle(



at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(

at org.eclipse.jetty.util.thread.QueuedThreadPool$


Have more questions? Submit a request


Article is closed for comments.