{"id":76,"date":"2018-10-31T01:50:13","date_gmt":"2018-10-31T01:50:13","guid":{"rendered":"https:\/\/www.aladan.net\/MIMicry\/?p=76"},"modified":"2018-11-19T03:19:32","modified_gmt":"2018-11-19T03:19:32","slug":"changing-case-capitalisation-on-identity-broker-attribute-names","status":"publish","type":"post","link":"https:\/\/www.aladan.net\/MIMicry\/2018\/10\/31\/changing-case-capitalisation-on-identity-broker-attribute-names\/","title":{"rendered":"Changing case\/capitalisation on Identity Broker attribute names"},"content":{"rendered":"<p>UNIFY&#8217;s Identity Broker keeps old attribute names (both connector and adapter), in the &#8216;CollectionKey&#8217; SQL table.\u00a0 The attribute&#8217;s name (&#8216;Caption&#8217; column) is a unique key in that table.<\/p>\n<p>Even if you delete an attribute from every connector and adapter in Broker, it still keeps that attribute name record.\u00a0 Even if you delete all data for the attribute!\u00a0 It&#8217;s there for good, with <em>whatever capitalisation you first used.<\/em><\/p>\n<p>If you try to use that same attribute name with a different capitalisation (e.g. in an Rename adapter transformation) Broker does a case-sensitive search for that attribute name&#8217;s CollectionKey record and doesn&#8217;t find it (because the case doesn&#8217;t match).\u00a0 So it tries to create one&#8230; but this fails because the SQL unique key for the Caption field is case insensitive!\u00a0 The error is:<\/p>\n<pre>Violation of UNIQUE KEY constraint 'DF_CollectionKey_Caption'.\r\nCannot insert duplicate key in object 'dbo.CollectionKey'.\r\nThe duplicate key value is (xxxx).<\/pre>\n<p>Solutions to this predicament are:<\/p>\n<ol>\n<li>Don&#8217;t ever change the capitalisation of the attribute name (avoidance)<\/li>\n<li>If you have to change it (e.g. because you got it wrong in the first place) then go into the SQL table and change the Caption to whatever capitalisation you want \ud83d\ude42<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>UNIFY&#8217;s Identity Broker keeps old attribute names (both connector and adapter), in the &#8216;CollectionKey&#8217; SQL table.\u00a0 The attribute&#8217;s name (&#8216;Caption&#8217; column) is a unique key in that table. Even if you delete an attribute from every connector and adapter in Broker, it still keeps that attribute name record.\u00a0 Even if you delete all data for<span class=\"post-excerpt-end\">&hellip;<\/span><\/p>\n<p class=\"more-link\"><a href=\"https:\/\/www.aladan.net\/MIMicry\/2018\/10\/31\/changing-case-capitalisation-on-identity-broker-attribute-names\/\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,5,16],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-learnings","category-ugly","category-unifybroker"],"_links":{"self":[{"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":1,"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/posts\/76\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aladan.net\/MIMicry\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}