Welcome to the Axosoft Community, Sign in | Register | Help
in Search

OnTime SDK (7.1.0.7311) AddAttachment bug

Last post 06-25-2007, 1:41 PM by Dan Suceava. 1 replies.
Sort Posts: Previous Next
  •  06-24-2007, 7:24 AM 12148

    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. 

  •  06-25-2007, 1:41 PM 12157 in reply to 12148

    Re: OnTime SDK (7.1.0.7311) AddAttachment bug
    This issue will be resolved in the next release.  The parameter to the sproc should have been nullable.
    Dan Suceava
    http://www.axosoft.com
View as RSS news feed in XML

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