Error: [Exception] System.ArgumentException: Column 'does not belong to Table.'" when running an email job."

Tise error message occurs when running an email job:

[Exception] System.ArgumentException: Column '' does not belong to table Table.
   at System.Data.DataRow.GetDataColumn(String columnName)
   at System.Data.DataRow.get_Item(String columnName)
   at Blackbaud.Web.Content.Core.BBDM_DataProvider.GetFieldById(Int32 fieldid, Int32 AttributeID)
   at Blackbaud.Web.Content.Core.EmailJob.AddMergeRowDataForRecipient2(String sRecipientKey, IDataProvider[] oData)
   at Blackbaud.Web.Content.Core.EmailJob.PopulateMergeDataForRecipient2(String sKey, String sSourceKey, IDataProvider oData, String sEmailAddress, String sEmailDisplayName, Boolean bGlobalOptedOut, Int32 UserID, Int32 AddressBookid, Int32 BackOfficeRecordID, Int32 BackOfficeSystemID)
   at Blackbaud.Web.Content.Core.EmailJob.PopulateRecipient2(IDataProvider oRecipient, String sKey, String sSourceKey)
   at Blackbaud.Web.Content.Core.EmailJob.ProcessBBDM_List(String sSourceKey, IDataSource oDS, EmailList oList)
   at Blackbaud.Web.Content.Core.EmailJob.ProcessList(Int32 iListID)
   at Blackbaud.Web.Content.Core.EmailJob.ProcessAddressees()
   at Blackbaud.Web.Content.Core.EmailJob.DoProcessMailBlast()
   at Blackbaud.Web.Content.Core.EmailJob.ProcessMailBlast()
The issue is the merge fields somehow got mixed up between the email and export definition.   The solution is to delete the merge fields from the email and re-add them.

Environment

 2.9.1001 patch 156

Was this article helpful?