Recently we ran into issue with Project Template for one of our customers in Project Online environment. We were getting error while saving the updated template on existing Project Template.
Note: Issue does not occur if you try to save template by new name.
Below are the steps to reproduce the issue and error information.
- Create new Project Template
- File >> Save As >> Select Type as Template >> Enter same as the existing template.
- Click on the Save.
- The Save operation will fail with below error in the queue.
Error:
=============================
<?xml version=”1.0″ encoding=”utf-16″?>
<errinfo>
<general>
<class name=”DatabaseUndefinedError”>
<error id=”50000″ name=”DatabaseUndefinedError” uid=”02164c42-1b40-e511-80d2-00155d64ef0c”/>
</class>
<class name=”ActiveCacheQueuedMessageExecutionError”>
<error id=”12005″ name=”ActiveCacheQueuedMessageExecutionError” uid=”04164c42-1b40-e511-80d2-00155d64ef0c” error=”System.Data.SqlClient.SqlException (0x80131904): Procedure or function MSP_DELETE_PROJECT_RESOURCES_INTERNAL has too many arguments specified.
  at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
  at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
  at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
  at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
  at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
  at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
  at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
  at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
  at Microsoft.Office.Project.Server.Data.SqlSession.ExecuteNonQuery(SqlCommand command, SqlInfoMessageEventHandler handler)
  at Microsoft.Office.Project.Server.Data.SqlSession.ExecuteNonQuery(SqlCommand command)
  at Microsoft.Office.Project.Server.DataAccessLayer.SqlSessionManager.SqlSessionAdapter.<>c__DisplayClass1.<ExecuteStoredProcedureNonQuery>b__0()
  at Microsoft.Office.Project.Server.DataAccessLayer.SqlSessionManager.SqlSessionAdapter.RetryableExecuteHandlerWithSession(Action retryableAction, Boolean allowRetry)
  at Microsoft.Office.Project.Server.DataAccessLayer.SqlSessionManager.SqlSessionAdapter.LogSpecificSqlExceptions(Action action)
  at Microsoft.Office.Project.Server.DataAccessLayer.SqlSessionManager.SqlSessionAdapter.ExecuteStoredProcedureNonQuery(String schemaQualifiedStoredProcedureName, SqlParameter
</class>
<class name=”Queue”>
<error id=”26000″ name=”GeneralQueueJobFailed” uid=”05164c42-1b40-e511-80d2-00155d64ef0c” JobUID=”a20b2d35-1b40-e511-825f-ace010ad4c5d” ComputerName=”f54a57b7-e03a-4e0c-bc53-99d25acdfd48″ GroupType=”ACProjectSave” MessageType=”Byte[]” MessageId=”1″ Stage=”” CorrelationUID=”c0ea229d-c040-2000-2113-2e1b622d9907″/>
</class>
</general>
</errinfo>
===========================
Microsoft confirmed this as an issue and fixed it by running update on our Project Online Tenant.