Failed to Restore Project when Restoring the Project Using SA API
Hi Team ,
We have recently upgraded to HP ALM 12.01 and now we are migrating our ALM Database Server, Since we have more than 300 ALM Projects, we are trying to automate the 'Restore Project' action via SA API
However, we are reciving the following error message:
"Failed to restore the Project"
We have modified and used the following code
Dim sDomainName As String
Dim sProjectName As String
Dim sServerName As String
Dim CreateOptions As Long
Dim sReply As String
On Error GoTo err
sDomainName = "MyDomain"
sProjectName = "MyProject"
sServerName = <ALM 12.01 URL>
sReply = m_SAClient.RestoreProject( _
sDomainName, sProjectName, SA_MSSQL_DB_TYPE , _
<Project Repository>, sProjectName, _
sServerName, <JDBC Connection Sring>, _
sUserPassWord, True, True, True, 20, "", _
"New Project1 for testing")
MsgBox "Program failed:" + err.Description
Please let us know if any parameters has to be added or if there are any utilites available to automate the restoration process
We do not want to upgrade the project
Project restoration works when done manually
Have you reviewed the SA log files to see if additional details are available?
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)
BTW, it is better to use RestoreProjectEx2 which supports smart repository parameter.