BBIS/Transaction Exception: Length of the data to decrypt is invalid.

When downloading transactions you get the following error:

 Exception message: Length of the data to decrypt is invalid.
at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.StreamReader.Dispose(Boolean disposing)
at Blackbaud.AppFx.BBNCSvc.BBNCEncryptionCode.Crypto.Decrypt(String Source, String Key)
at Blackbaud.AppFx.BBNCSvc.Common.BuildGiftInformationDataForm(RequestContext requestContext, Int32 mapID, GiftInformation newValues, Int64 finderNumber, Int32 emailID, Guid& giftAppealID, Decimal& giftAmount, Boolean& supportsMatchingGifts, Boolean& isCorporateGift, Boolean& isTeamFundraisingOfflineGift, CurrencyFormat cf)
at Blackbaud.AppFx.BBNCSvc.DonationProcessor.AddGiftInformationToDataForm(SqlConnection conn, DataFormItem dfi, GiftInformation data, Int64 finderNumber, eDonationContext donationContext, Nullable`1 sourceAppealID, Int32 emailID, Boolean& isCorporate, Decimal extraRevenueTotal)
at Blackbaud.AppFx.BBNCSvc.DonationProcessor.PopulateBatchItem(DataFormItem dataFormItem, Object bbncTransaction, Int32 rowSequence, TransactionProcessorMappingRule mappingRule)
at Blackbaud.AppFx.BBNCSvc.BuiltinTransactionProcessor.DownloadTransaction(SqlConnection conn, Object transaction, Guid batchAddFormID, Guid batchID, Int32 rowSequence, TransactionProcessorMappingRule mappingRule)
at Blackbaud.AppFx.BBNCSvc.BuiltinTransactionProcessor.DownloadTransactions(Object[] transactions, Guid batchAddFormID, BuiltinTransactionType transactionType, String processorName, Int32 maxTransactions)
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

 6.45.2034, patch 14
 6.45.2034, patch 18

Was this article helpful?