{"id":10770,"date":"2015-08-14T12:18:04","date_gmt":"2015-08-14T12:18:04","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=10770"},"modified":"2015-08-14T12:18:04","modified_gmt":"2015-08-14T12:18:04","slug":"sql-error-while-trying-to-add-column-in-company-grid","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/","title":{"rendered":"SQL Error while trying to add column in company grid"},"content":{"rendered":"<p>Hi folks! As we all know that CRM contains large number of screens, lists, grids, etc. CRM has respective tables to maintain the same. Through these blog\/article I will explain you a scenario which I faced while working in one of the project and how I resolved a very strange issue.<br \/>\n<span style=\"color: #993300;\"><em><strong>Related Stuff:<\/strong><\/em><\/span> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/10\/18\/quick-look-on-sage-crm-tables\/\" target=\"_blank\">Quick look on Sage CRM tables<\/a><br \/>\nWhile adding columns in \u201cCompany Grid\u201d crm prompted me an SQL error. Then I checked the SQL log file and found \u00a0\u00a0\u201c<strong>The INSERT statement conflicted with the FOREIGN KEY constraint &#8220;FK_CustomLists_ScreenObjects&#8221;. The conflict occurred in database &#8220;CISPL&#8221;, table &#8220;dbo.Custom_ScreenObjects&#8221;, column &#8216;CObj_TableId&#8217;<\/strong>.\u201d \u00a0\u00a0these error message. To get clear idea about these issue I checked the entries made by crm in \u201c<strong>Custom_ScreenObjects<\/strong>\u201d table in another same version CRM database by executing below mentioned select query.\u201d select * from Custom_ScreenObjects where cobj_entityname=&#8217;company&#8217; and cobj_type=&#8217;list&#8217;\u201d Found \u00a0entry for \u201c<strong>Company Grid<\/strong>\u201d was missing. Please find below screen shot.<br \/>\n<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg\" target=\"_blank\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-10771 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg\" alt=\"Img1\" width=\"1139\" height=\"136\" \/><\/a><br \/>\nTo get rid of above problem I manually inserted the missing Company Grid in above table with the help of insert query. Finally issue got resolved. See below screen shot for your reference.<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img2.jpg\" target=\"_blank\"><img decoding=\"async\" class=\"aligncenter wp-image-10772 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img2.jpg\" alt=\"Img2\" width=\"1100\" height=\"128\" \/><\/a><br \/>\nAfter performing above steps please give \u201c<strong>Metadata refresh<\/strong>\u201d. Hope my above explanation helps!<br \/>\n<span style=\"color: #993300;\"><em><strong>Also Read:<\/strong><\/em><\/span><br \/>\n1) <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/07\/how-to-visible-standard-field-in-list\/\" target=\"_blank\">How to Visible Standard Field in List<\/a><br \/>\n2) <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/01\/24\/codeless-customizations-to-add-list-blocks\/\" target=\"_blank\">Codeless customizations to add List Blocks<\/a><br \/>\n3) <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/03\/31\/highlight-all-grid-rows-in-sage-crm-v7-3\/\" target=\"_blank\">Highlight All Grid Rows in Sage CRM v7.3<\/a><br \/>\n4) <a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/10\/15\/enable-keyword-search-on-sage-crm-find-screen\/\" target=\"_blank\">Enable Keyword Search on Sage CRM Find screen<\/a><br \/>\n5)<a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/07\/easiest-way-to-create-workflow-component\/\" target=\"_blank\"> Easiest way to create workflow component<\/a><br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi folks! As we all know that CRM contains large number of screens, lists, grids, etc. CRM has respective tables to maintain the same. Through these blog\/article I will explain you a scenario which I faced while working in one of the project and how I resolved a very strange issue. Related Stuff: Quick look\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83,155,219,220,332,351,393,1],"tags":[1091,1143,1532,2231,2325],"class_list":["post-10770","post","type-post","status-publish","format-standard","hentry","category-crm72","category-fields","category-list","category-lists","category-sage-crm","category-screen-sage-crm","category-tables","category-uncategorized","tag-error","tag-fields","tag-list","tag-screen","tag-sql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Error while trying to add column in company grid - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Error while trying to add column in company grid - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Hi folks! As we all know that CRM contains large number of screens, lists, grids, etc. CRM has respective tables to maintain the same. Through these blog\/article I will explain you a scenario which I faced while working in one of the project and how I resolved a very strange issue. Related Stuff: Quick look\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-14T12:18:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/\",\"name\":\"SQL Error while trying to add column in company grid - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg\",\"datePublished\":\"2015-08-14T12:18:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Error while trying to add column in company grid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Error while trying to add column in company grid - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/","og_locale":"en_US","og_type":"article","og_title":"SQL Error while trying to add column in company grid - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Hi folks! As we all know that CRM contains large number of screens, lists, grids, etc. CRM has respective tables to maintain the same. Through these blog\/article I will explain you a scenario which I faced while working in one of the project and how I resolved a very strange issue. Related Stuff: Quick look\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2015-08-14T12:18:04+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/","name":"SQL Error while trying to add column in company grid - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg","datePublished":"2015-08-14T12:18:04+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2015\/08\/Img11.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2015\/08\/14\/sql-error-while-trying-to-add-column-in-company-grid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"SQL Error while trying to add column in company grid"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/10770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=10770"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/10770\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=10770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=10770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=10770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}