{"id":6346,"date":"2017-09-08T18:20:43","date_gmt":"2017-09-08T12:50:43","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=6346"},"modified":"2017-09-08T18:20:43","modified_gmt":"2017-09-08T12:50:43","slug":"fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/","title":{"rendered":"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments.<\/p>\n<p style=\"text-align: justify;\">However, when we did a run for this, we were facing the below error.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\"><em><strong>&#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.&#8217;<\/strong><\/em><\/span><\/p>\n<p style=\"text-align: justify;\">We had done the mapping for the Email attachments in the Destination CRM as shown in the screenshot below;<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter  wp-image-6347\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png\" alt=\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId' error while processing Email Attachment using SSIS\" width=\"775\" height=\"290\" \/><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter  wp-image-6348\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/21.png\" alt=\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId' error while processing Email Attachment using SSIS\" width=\"735\" height=\"427\" \/><\/p>\n<p style=\"text-align: justify;\">After investigating into this error, we found that we need to map either of the below fields.<\/p>\n<p style=\"text-align: justify;\"><strong>ActivityId\u00a0<\/strong>OR\u00a0<strong>ObjectId and ObjectTypeCode<\/strong><\/p>\n<p style=\"text-align: justify;\">So, when we removed the mapping of the fields <em><strong>&#8216;ObjectID&#8217;<\/strong><\/em> and <em><strong>&#8216;ObjectTypeCode&#8217;<\/strong><\/em> from the mapping in the target CRM component, we did not get any error!<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter  wp-image-6349\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/3.png\" alt=\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId' error while processing Email Attachment using SSIS\" width=\"775\" height=\"281\" \/><\/p>\n<p style=\"text-align: justify;\">This time the attachments migrated successfully to the Target CRM.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter  wp-image-6350\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/4.png\" alt=\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId' error while processing Email Attachment using SSIS\" width=\"769\" height=\"455\" \/><\/p>\n<p><strong>Email in Source CRM:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-6351\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/5.png\" alt=\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId' error while processing Email Attachment using SSIS\" width=\"750\" height=\"330\" \/><\/p>\n<p><strong>Email in Destination CRM:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-6352\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/6.png\" alt=\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId' error while processing Email Attachment using SSIS\" width=\"792\" height=\"354\" \/><\/p>\n<p><strong>Conclusion:<\/strong><\/p>\n<p style=\"text-align: justify;\">While either migrating or creating an attachment to CRM you need to map either<em><strong> &#8216;ActivityId&#8217;<\/strong> <\/em>Or <em><strong>&#8216;ObjectId&#8217;<\/strong> <\/em>and <em><strong>&#8216;ObjectTypeCode&#8217;.<\/strong><\/em><\/p>\n<p style=\"text-align: justify;\"><a href=\"http:\/\/www.inogic.com\/product\/integrations\/inolink-quickbooks-microsoft-dynamics-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-6353\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Get-started-with-QuickBooks-and-Dynamics-365-Integration.png\" alt=\"Get started with QuickBooks and Dynamics 365 Integration\" width=\"800\" height=\"200\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.&#8217;\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/\">Read More: Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":6355,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,57],"tags":[624,750,1654],"class_list":["post-6346","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-crm","category-ssis","tag-dynamics-crm-data-migration","tag-error-while-processing-email-attachment-using-ssis","tag-ssis"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. &#039;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.&#039;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tushar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. &#039;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.&#039;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-09-08T12:50:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-09-08T12:50:43+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. &#039;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.&#039;\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Tushar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#blogposting\",\"name\":\"Fixed \\u2013 \\u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId\\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/Fixed-The-attachment-cannot-be-saved.-Either-specify-activityId-or-ObjectTypeCode-ObjectId-error-1-1.png\",\"width\":300,\"height\":300,\"caption\":\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId' error while processing Email Attachment using SSIS\"},\"datePublished\":\"2017-09-08T18:20:43+05:30\",\"dateModified\":\"2017-09-08T18:20:43+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#webpage\"},\"articleSection\":\"Dynamics CRM, SSIS, Dynamics CRM Data Migration, Error while processing Email Attachment using SSIS, SSIS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"position\":2,\"name\":\"Dynamics CRM\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#listItem\",\"name\":\"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#listItem\",\"position\":3,\"name\":\"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Tushar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tushar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/\",\"name\":\"Fixed \\u2013 \\u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId\\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. 'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId.'\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/Fixed-The-attachment-cannot-be-saved.-Either-specify-activityId-or-ObjectTypeCode-ObjectId-error-1-1.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#mainImage\",\"width\":300,\"height\":300,\"caption\":\"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId' error while processing Email Attachment using SSIS\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2017\\\/09\\\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\\\/#mainImage\"},\"datePublished\":\"2017-09-08T18:20:43+05:30\",\"dateModified\":\"2017-09-08T18:20:43+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. 'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId.'","canonical_url":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#blogposting","name":"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Fixed-The-attachment-cannot-be-saved.-Either-specify-activityId-or-ObjectTypeCode-ObjectId-error-1-1.png","width":300,"height":300,"caption":"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId' error while processing Email Attachment using SSIS"},"datePublished":"2017-09-08T18:20:43+05:30","dateModified":"2017-09-08T18:20:43+05:30","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#webpage"},"articleSection":"Dynamics CRM, SSIS, Dynamics CRM Data Migration, Error while processing Email Attachment using SSIS, SSIS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","position":2,"name":"Dynamics CRM","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#listItem","name":"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#listItem","position":3,"name":"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Tushar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tushar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/","name":"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. 'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId.'","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Fixed-The-attachment-cannot-be-saved.-Either-specify-activityId-or-ObjectTypeCode-ObjectId-error-1-1.png","@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#mainImage","width":300,"height":300,"caption":"'The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId' error while processing Email Attachment using SSIS"},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/#mainImage"},"datePublished":"2017-09-08T18:20:43+05:30","dateModified":"2017-09-08T18:20:43+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. 'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.'","og:url":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png","article:published_time":"2017-09-08T12:50:43+00:00","article:modified_time":"2017-09-08T12:50:43+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Fixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId\u2019 error while processing Email Attachment using SSIS - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction: While performing data migration most of the time, we need to migrate Email and Email Attachments, where we first migrate the Emails and then migrate the Email Attachments. However, when we did a run for this, we were facing the below error. 'The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId.'","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/11.png","twitter:label1":"Written by","twitter:data1":"Tushar","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"6346","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 06:43:50","updated":"2025-07-04 03:15:03","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/\" title=\"Dynamics CRM\">Dynamics CRM<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tFixed \u2013 \u2018The attachment cannot be saved. Either specify activityId or ObjectTypeCode &amp; ObjectId\u2019 error while processing Email Attachment using SSIS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics CRM","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/"},{"label":"Fixed &#8211; &#8216;The attachment cannot be saved. Either specify activityId or ObjectTypeCode &#038; ObjectId&#8217; error while processing Email Attachment using SSIS","link":"https:\/\/www.inogic.com\/blog\/2017\/09\/fixed-the-attachment-cannot-be-saved-either-specify-activityid-or-objecttypecode-objectid-error-while-processing-email-attachment-using-ssis\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=6346"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/6346\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/6355"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=6346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=6346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=6346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}