OnTime SDK (7.1.0.7311) AddAttachment bug

  •  06-24-2007, 7:24 AM

    OnTime SDK (7.1.0.7311) AddAttachment bug

    Hi,

    When invoking the AddAttachment method of the AttachmentHandler in OnTime SDK (7.1.0.7311) I'm getting the following exception:

    System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Procedure or function 'spI_Attachments' expects parameter '@FullPath', which was not supplied.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       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 Axosoft.Common.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
       at Axosoft.Common.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
       at Axosoft.OnTime.DataLayer.Attachments.AddAttachment(Attachment attachment, TransactionHelper txnh)
       at Axosoft.OnTime.DataLayer.Attachments.AddAttachment(Attachment attachment)
       at OnTimeWebServices.AttachmentHandler.AddAttachment(Guid securityToken, Attachment attachment)
       --- End of inner exception stack trace ---

    I was able to solve it by altering the affected stored procedure changing:

    @FullPath nvarchar(256), 

    to

    @FullPath nvarchar(256) = null,

     

    Best regards,

    Robert Wilczynski. 

View Complete Thread

© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software