{"id":80,"date":"2013-03-21T14:14:41","date_gmt":"2013-03-21T14:14:41","guid":{"rendered":"https:\/\/teacheritblog.wordpress.com\/?p=80"},"modified":"2013-03-21T14:14:41","modified_gmt":"2013-03-21T14:14:41","slug":"error-at-check-in-of-runbook-with-query-configmgr-activity-scorch2012-sp1","status":"publish","type":"post","link":"https:\/\/christianlehrer.com\/?p=80","title":{"rendered":"Error at check in of runbook with \u201cquery configmgr\u201d  activity \/ SCORCH2012 SP1"},"content":{"rendered":"<div class=\"shariff\" data-title=\"Error at check in of runbook with \u201cquery configmgr\u201d  activity \/ SCORCH2012 SP1\" data-info-url=\"http:\/\/ct.de\/-2467514\" data-backend-url=\"https:\/\/christianlehrer.com\/wp-content\/plugins\/shariff-sharing\/backend\/index.php\" data-temp=\"\/tmp\" data-ttl=\"60\" data-service=\"tlxr\" data-services='[\"facebook\",\"twitter\",\"linkedin\",\"xing\",\"reddit\",\"whatsapp\",\"mail\",\"info\"]' data-image=\"http:\/\/social.technet.microsoft.com\/Forums\/getfile\/260840\" data-url=\"https:\/\/christianlehrer.com\/?p=80\" data-lang=\"en\" data-theme=\"white\" data-orientation=\"horizontal\"><\/div><p>After registering the Integration Pack of System Center Configuration Manager 2012 SP1 I tried to use the activity \u201cquery configmgr\u201d to get the results of a predefined SCCM-query into my runbook.<\/p>\n<p>When trying to check in the runbook i received an error:<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/social.technet.microsoft.com\/Forums\/getfile\/260840\" \/><\/p>\n<p>&quot;An error occured saving the activity to the data storage. Please check the Orchestrator Management Service trace logs.&quot;<\/p>\n<p>So did I and found the following<\/p>\n<pre>2013-03-21 07:18:55 [2300] 1 CODBDataStore::ModifyObject({38C5285B-7812-4A14-B8C3-12E4260B31E2}): try again\n2013-03-21 07:18:55 [2300] 1 DBDataStore: ::(InternalSaveObject)\n2013-03-21 07:18:55 [2300] 1 DBDataStore: ::Error #-2147217873\nDescription: The INSERT statement conflicted with the FOREIGN KEY constraint &quot;FK_OBJECTS_OBJECTTYPES&quot;. The conflict occurred in database &quot;Orchestrator&quot;, table &quot;dbo.OBJECTTYPES&quot;, column 'UniqueID'.\nSource: Microsoft OLE DB Provider for SQL Server\nError #-2147217873\nDescription: The statement has been terminated.\nSource: Microsoft OLE DB Provider for SQL Server\n2013-03-21 07:18:55 [2300] 1 DBDataStore: ::Exception caught in long __thiscall CODBDataStore::InternalSaveObject(wchar_t *,wchar_t *,struct IXMLDOMNode *):\nODBDataStore.cpp(3449)\n&lt;Exception&gt;&lt;Type&gt;_com_error&lt;\/Type&gt;&lt;ErrorMessage&gt;IDispatch error #3119&lt;\/ErrorMessage&gt;&lt;Description&gt;The INSERT statement conflicted with the FOREIGN KEY constraint &quot;FK_OBJECTS_OBJECTTYPES&quot;. The conflict occurred in database &quot;Orchestrator&quot;, table &quot;dbo.OBJECTTYPES&quot;, column 'UniqueID'.&lt;\/Description&gt;&lt;HResult&gt;-2147217873&lt;\/HResult&gt;&lt;\/Exception&gt;\n2013-03-21 07:18:55 [2300] 1 DBDataStore: ::Error #-2147217873\nDescription: The INSERT statement conflicted with the FOREIGN KEY constraint &quot;FK_OBJECTS_OBJECTTYPES&quot;. The conflict occurred in database &quot;Orchestrator&quot;, table &quot;dbo.OBJECTTYPES&quot;, column 'UniqueID'.\nSource: Microsoft OLE DB Provider for SQL Server\nError #-2147217873\nDescription: The statement has been terminated.\nSource: Microsoft OLE DB Provider for SQL Server\n2013-03-21 07:18:55 [2300] 1 CODBDataStore::ModifyObject({38C5285B-7812-4A14-B8C3-12E4260B31E2}): attempt 10 failed<\/pre>\n<p>Now i searched for the UniqueID &quot;38C5285B-7812-4A14-B8C3-12E4260B31E2&quot; in the table &quot;dbo.OBJECTTYPES&quot; in the Orchestrator DB but there is no column with this id.<\/p>\n<p>I uninstalled the Integration Pack for SCCMSP1 on the runbook designers and runbook server, restarted the server, registered the SCCMSP1-IP again but the runbooks still can\u00b4t be checked in. <\/p>\n<p>As I saw, the DB-Entries for the SCCM IP were never deleted while the IP was not installed. <\/p>\n<p>&#160;<\/p>\n<p><strong>It seems to be a wider spread problem, as another member of technet gets the same problem.<\/strong><\/p>\n<p>&#160;<\/p>\n<p>I will update this post if there is any solution to this.<\/p>\n<p>Meanwhile you can follow the thread on technet: <a title=\"http:\/\/social.technet.microsoft.com\/Forums\/en-US\/scogeneral\/thread\/7dab8517-d760-4ea5-9d70-3fb78ffd806c\" href=\"http:\/\/social.technet.microsoft.com\/Forums\/en-US\/scogeneral\/thread\/7dab8517-d760-4ea5-9d70-3fb78ffd806c\">http:\/\/social.technet.microsoft.com\/Forums\/en-US\/scogeneral\/thread\/7dab8517-d760-4ea5-9d70-3fb78ffd806c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After registering the Integration Pack of System Center Configuration Manager 2012 SP1 I tried to use the activity \u201cquery configmgr\u201d to get the results of a predefined SCCM-query into my runbook. When trying to check in the runbook i received an error: &quot;An error occured saving the activity to the data storage. Please check the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[91,94,101],"_links":{"self":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/80"}],"collection":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":0,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"wp:attachment":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}