{"id":156,"date":"2010-08-03T20:31:41","date_gmt":"2010-08-03T18:31:41","guid":{"rendered":"http:\/\/www.italkcode.net\/?p=110"},"modified":"2016-02-28T17:27:36","modified_gmt":"2016-02-28T16:27:36","slug":"bdc-deployment-error","status":"publish","type":"post","link":"https:\/\/commonware.nl\/?p=156","title":{"rendered":"BDC deployment error"},"content":{"rendered":"<p>When changing your identifier within your BDC model and deploying with Visual Studio afterwards, you might bump into an error looking something like the following.<\/p>\n<pre class=\"\" lang=\"error\">Error occurred in deployment step 'Add Solution': Model file 'SendToMailModelSendToMailModel.bdcm' has the following External Content Type activation errors:\r\nTypeDescriptor with Name 'ID' (found in Parameter with Name 'returnParameter', Method with Name 'ReadList', Entity (External Content Type) with Name 'Contact' and Version '1.0.0.30' in Namespace 'SendToEmail.SendToMailModel') refers to an Identifier with Name 'ID' of Type 'System.Guid' which is supposed to exist on Entity with Name 'Contact' in Namespace SendToEmail.SendToMailModel'. This Identifier cannot be found.\r\n<\/pre>\n<p>I tried a lot of stuff trying to resolve the error<br \/>\n&#8211; investigating the model over and over again<br \/>\n&#8211; retracting the old model using Visual Studio<br \/>\n&#8211; uninstalling the dll from the GAC<br \/>\n&#8211; IIS reset, Timer Reset<br \/>\n&#8211; restarting VS<\/p>\n<p>But unfortunately none of the above worked. Then I took a look at the BDC service application (Central Administration &gt; Application Management &gt; Manage service applications &gt; Then click your BDC service), the &#8220;View External Content Types&#8221; page will be shown. What I first noticed was that my external content type wasn&#8217;t there, which I thought was a bit strange. Then I noticed the dropdown at the top of the page, which contains the different views of the page, I&#8217;ve never noticed it before and therefore never used it before.<\/p>\n<div id=\"attachment_172\" style=\"width: 218px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/BDC_views.png\" rel=\"attachment wp-att-172\" data-lightbox=\"BDC_views.png\" data-title=\"BDC page views\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-172\" src=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/BDC_views.png\" alt=\"BDC views\" width=\"208\" height=\"95\" class=\"size-full wp-image-172\" \/><\/a><p id=\"caption-attachment-172\" class=\"wp-caption-text\">BDC page views<\/p><\/div>\n<p>After selecting &#8220;External systems&#8221; from the options in the dropdown, the view changed and I noticed my BDC model.<\/p>\n<div id=\"attachment_171\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/External_systems.png\" rel=\"attachment wp-att-171\" data-lightbox=\"External_systems.png\" data-title=\"External systems view\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-171\" src=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/External_systems-300x166.png\" alt=\"External systems view\" width=\"300\" height=\"166\" class=\"size-medium wp-image-171\" srcset=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/External_systems-300x166.png 300w, https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/External_systems-768x424.png 768w, https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/External_systems.png 789w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-171\" class=\"wp-caption-text\">External systems view<\/p><\/div>\n<p>After changing to the &#8220;BDC Models&#8221; view of the page I also noticed my model was listed over there.<\/p>\n<div id=\"attachment_173\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/bdc-models.png\" rel=\"attachment wp-att-173\" data-lightbox=\"bdc-models.png\" data-title=\"BDC models view\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-173\" src=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/bdc-models-300x168.png\" alt=\"BDC models view\" width=\"300\" height=\"168\" class=\"size-medium wp-image-173\" srcset=\"https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/bdc-models-300x168.png 300w, https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/bdc-models-768x429.png 768w, https:\/\/commonware.nl\/wp-content\/uploads\/2010\/08\/bdc-models.png 791w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-173\" class=\"wp-caption-text\">BDC models view<\/p><\/div>\n<p>After deleting the model from both these pages I could deploy it again from Visual Studio.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When changing your identifier within your BDC model and deploying with Visual Studio afterwards, you might bump into an error looking something like the following. Error occurred in deployment step &#8216;Add Solution&#8217;: Model file &#8216;SendToMailModelSendToMailModel.bdcm&#8217; has the following External Content Type activation errors: TypeDescriptor with Name &#8216;ID&#8217; (found in Parameter with Name &#8216;returnParameter&#8217;, Method with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[21],"tags":[22,23],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-bdc","tag-bdc","tag-external-content-types"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/commonware.nl\/index.php?rest_route=\/wp\/v2\/posts\/156"}],"collection":[{"href":"https:\/\/commonware.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/commonware.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/commonware.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/commonware.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156"}],"version-history":[{"count":3,"href":"https:\/\/commonware.nl\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/commonware.nl\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/commonware.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/commonware.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/commonware.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}