Error when sending test email message in BBIS

When sending a test message in BBIS, the following SQL error may occur, this message does not surface when sending the final email:

When sending a test message out of BBIS the following error happens:
 

Blackbaud.AppFx.Server.ServiceException: Data could not be saved.
A .NET Framework error occurred during execution of user-defined routine or aggregate "USP_LOADSPEC":
System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'as'.
System.Data.SqlClient.SqlException:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQuerySmi(Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Blackbaud.AppFx.Platform.SqlClr.SQLViewSpecProcessor.ProcessSpec(SQLViewSpec spec, Nullable`1 changeAgentID)
at Blackbaud.AppFx.Platform.SqlClr.SQLViewSpecProcessor.ProcessSpec(String specXml, Nullable`1 changeAgentID)
at Blackbaud.AppFx.Platform.SqlClr.SQLViewSpecClr.ProcessSpec(String specXml, Nullable`1 changeAgentID, SqlBoolean skipValidation)
at Blackbaud.AppFx.Platform.SqlClr.LoadSpec.Load ---> System.Data.SqlClient.SqlException: A .NET Framework error occurred during execution of user-defined routine or aggregate "USP_LOADSPEC":
System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'as'.
System.Data.SqlClient.SqlException:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQuerySmi(Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Blackbaud.AppFx.Platform.SqlClr.SQLViewSpecProcessor.ProcessSpec(SQLViewSpec spec, Nullable`1 changeAgentID)
at Blackbaud.AppFx.Platform.SqlClr.SQLViewSpecProcessor.ProcessSpec(String specXml, Nullable`1 changeAgentID)
at Blackbaud.AppFx.Platform.SqlClr.SQLViewSpecClr.ProcessSpec(String specXml, Nullable`1 changeAgentID, SqlBoolean skipValidation)
at Blackbaud.AppFx.Platform.SqlClr.LoadSpec.Load
LOADSPEC ERROR:Incorrect syntax near the keyword 'as'.
BBERR_ORIGINAL_ERROR:6522
BBERR_ORIGINAL_PROCEDURE:USP_LOADSPEC
BBERR_ORIGINAL_LINE_NUMBER:0
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
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)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Blackbaud.AppFx.Server.DataFormSaveProcessor.ExecuteAddNewSP()
— End of inner exception stack trace —
at Blackbaud.AppFx.Server.DBErrorHandler.HandleDBError(SqlException ex, ExpectedDBExceptions definedExceptions)
at Blackbaud.AppFx.Server.DBErrorHandler.HandleDBError(SqlException ex)
at Blackbaud.AppFx.Server.DataFormSaveProcessor.ExecuteAddNewSP()
at Blackbaud.AppFx.Server.DataFormSaveProcessor.ProcessRequest()
at Blackbaud.AppFx.Server.RequestProcessor`2.GetReply()
at Blackbaud.AppFx.Server.ServiceMethods.DispatchServiceMethod(RequestProcessorBase proc, Boolean checkSecurity)
at Blackbaud.AppFx.ContentManagement.Platform.Email.Catalog.Common.CreateSQLView(String catalogItemName, String dataBa

Download and install the latest patch, which contains all fixes from previous patches. If you are running an older version, download and install the latest version and then the patch. 

Environment

 3.0.516
 3.0.516, patch 57 ; 3.0.516, Service Pack 10

Was this article helpful?