{"id":23494,"date":"2020-05-07T10:33:32","date_gmt":"2020-05-07T10:33:32","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=23494"},"modified":"2020-05-07T10:33:32","modified_gmt":"2020-05-07T10:33:32","slug":"how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/","title":{"rendered":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error &#8211; <strong>\u201cError loading control\u201d<\/strong> on file control of sales literature item. In this blog will find out how to resolve this.<\/p>\n<p>Error on file control &#8211;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-23493\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png\" alt=\"Error Loading Control\" width=\"1227\" height=\"593\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png 1227w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control-300x145.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control-768x371.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control-1024x495.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control-660x319.png 660w\" sizes=\"(max-width: 1227px) 100vw, 1227px\" \/><\/p>\n<p>In previous version of Dynamics 365 CRM, below code worked fine.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-23496\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2Error-Loading-Control.png\" alt=\"Error Loading Control\" width=\"700\" height=\"153\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2Error-Loading-Control.png 700w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2Error-Loading-Control-300x66.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/2Error-Loading-Control-660x144.png 660w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>But after October 2019 Wave 2 release, attachment is removing properly but getting error on file control as shown in above screenshot.<\/p>\n<p style=\"text-align: justify;\">So, we figured out that for this we need to add one more parameter i.e. \u201cMode\u201d= string.Empty (If file is uploaded then it contains \u201c0\u201d) while updating a record of sales literature item for removing all reference of sales attachment document from CRM.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-23497\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/3Error-Loading-Control.png\" alt=\"Error Loading Control\" width=\"692\" height=\"152\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/3Error-Loading-Control.png 692w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/3Error-Loading-Control-300x66.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/3Error-Loading-Control-660x145.png 660w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/p>\n<p>Now you can update this record by uploading documents.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-23495\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/4Error-Loading-Control.png\" alt=\"Error Loading Control\" width=\"1201\" height=\"526\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/4Error-Loading-Control.png 1201w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/4Error-Loading-Control-300x131.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/4Error-Loading-Control-768x336.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/4Error-Loading-Control-1024x448.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/4Error-Loading-Control-660x289.png 660w\" sizes=\"(max-width: 1201px) 100vw, 1201px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p style=\"text-align: justify;\">After moving all your sales literature attachments from Dynamics 365 CRM now error on file control will not come and you can update same sales literature attachment record with new attachment if you want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error &#8211; \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control &#8211; In previous version\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/\">Read More: How to resolve Error Loading Control on Sales Literature Attachment\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":23498,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[2037],"class_list":["post-23494","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365-v9-2","category-dynamics-crm","tag-error-loading-control"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/\" \/>\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=\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1227\" \/>\n\t\t<meta property=\"og:image:height\" content=\"593\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-07T10:33:32+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-07T10:33:32+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=\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version\" \/>\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\/2020\/05\/1Error-Loading-Control.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\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\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#blogposting\",\"name\":\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically\",\"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\\\/2020\\\/05\\\/Error-loading-control.png\",\"width\":150,\"height\":150,\"caption\":\"Error loading control\"},\"datePublished\":\"2020-05-07T10:33:32+05:30\",\"dateModified\":\"2020-05-07T10:33:32+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#webpage\"},\"articleSection\":\"Dynamics 365 v9, Dynamics CRM, Error Loading Control\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#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-365-v9-2\\\/#listItem\",\"name\":\"Dynamics 365 v9\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365-v9-2\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365 v9\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365-v9-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#listItem\",\"name\":\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#listItem\",\"position\":3,\"name\":\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365-v9-2\\\/#listItem\",\"name\":\"Dynamics 365 v9\"}}]},{\"@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\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#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\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/\",\"name\":\"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \\u201cError loading control\\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#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\\\/2020\\\/05\\\/Error-loading-control.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#mainImage\",\"width\":150,\"height\":150,\"caption\":\"Error loading control\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/05\\\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\\\/#mainImage\"},\"datePublished\":\"2020-05-07T10:33:32+05:30\",\"dateModified\":\"2020-05-07T10:33:32+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":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version","canonical_url":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#blogposting","name":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically","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\/2020\/05\/Error-loading-control.png","width":150,"height":150,"caption":"Error loading control"},"datePublished":"2020-05-07T10:33:32+05:30","dateModified":"2020-05-07T10:33:32+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#webpage"},"articleSection":"Dynamics 365 v9, Dynamics CRM, Error Loading Control"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#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-365-v9-2\/#listItem","name":"Dynamics 365 v9"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365-v9-2\/#listItem","position":2,"name":"Dynamics 365 v9","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365-v9-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#listItem","name":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#listItem","position":3,"name":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365-v9-2\/#listItem","name":"Dynamics 365 v9"}}]},{"@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\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#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":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/","name":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#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\/2020\/05\/Error-loading-control.png","@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#mainImage","width":150,"height":150,"caption":"Error loading control"},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/#mainImage"},"datePublished":"2020-05-07T10:33:32+05:30","dateModified":"2020-05-07T10:33:32+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":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version","og:url":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png","og:image:width":1227,"og:image:height":593,"article:published_time":"2020-05-07T10:33:32+00:00","article:modified_time":"2020-05-07T10:33:32+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction We had a requirement from our client that they needed to remove all sales literature attachments from CRM. While doing this we got an error - \u201cError loading control\u201d on file control of sales literature item. In this blog will find out how to resolve this. Error on file control - In previous version","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/05\/1Error-Loading-Control.png","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"23494","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":"BlogPosting","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:12:53","updated":"2025-07-04 07:32:52","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-365-v9-2\/\" title=\"Dynamics 365 v9\">Dynamics 365 v9<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365 v9","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365-v9-2\/"},{"label":"How to resolve Error Loading Control on Sales Literature Attachment after removing the file programmatically","link":"https:\/\/www.inogic.com\/blog\/2020\/05\/how-to-resolve-error-loading-control-on-sales-literature-attachment-after-removing-the-file-programmatically\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/23494","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=23494"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/23494\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/23498"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=23494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=23494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=23494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}