<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Folder and Table locked and not removable in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Folder-and-Table-locked-and-not-removable/m-p/631814#M18459</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some users had disconnection problems caused by network, and some of the metadata objects they were working on got locked, and neither them or the administrator can delete, rename or modify anything about them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They don't let you choose the Delete option from the SAS Management Console, and when you try to rename it, it shows a locked message. You can find proof of both of those things on the attachments for one table that has that problem, and another folder (not in the same route) has this same problem as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tried to repair the Metadata in the Metadata Manager, but it didn't work, and recovering a Metadata backup from some time ago is not an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you everyone!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 10:45:45 GMT</pubDate>
    <dc:creator>miguelcalzada</dc:creator>
    <dc:date>2020-03-13T10:45:45Z</dc:date>
    <item>
      <title>Folder and Table locked and not removable</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Folder-and-Table-locked-and-not-removable/m-p/631814#M18459</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some users had disconnection problems caused by network, and some of the metadata objects they were working on got locked, and neither them or the administrator can delete, rename or modify anything about them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They don't let you choose the Delete option from the SAS Management Console, and when you try to rename it, it shows a locked message. You can find proof of both of those things on the attachments for one table that has that problem, and another folder (not in the same route) has this same problem as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tried to repair the Metadata in the Metadata Manager, but it didn't work, and recovering a Metadata backup from some time ago is not an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you everyone!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 10:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Folder-and-Table-locked-and-not-removable/m-p/631814#M18459</guid>
      <dc:creator>miguelcalzada</dc:creator>
      <dc:date>2020-03-13T10:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Folder and Table locked and not removable</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Folder-and-Table-locked-and-not-removable/m-p/631846#M18463</link>
      <description>&lt;P&gt;There's an option called OMI_UNLOCK_FORCE in Metadata update procedures, you can use that option to unlock the locked table, here's a sample code,&lt;/P&gt;
&lt;P&gt;But, &lt;STRONG&gt;I strongly recommend to take the Metadata Backup first&lt;/STRONG&gt; before you execute this SAS Code,&lt;BR /&gt;&lt;BR /&gt;Here's the sample code for SAS 9.4:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options metaserver='YOUR_METADATA_SERVER'
metaport=8561
metaprotocol='bridge'
metauser='sasadm@saspw'
metapass='PASSWORD_FOR_SASADM'
metarepository='Foundation'
;

options ls=max ps=max noquotelenmax ;
proc metadata
in='&amp;lt;GetMetadata&amp;gt;
    	&amp;lt;Metadata&amp;gt;
        &amp;lt;PhysicalTable Id="INSERT_YOUR_PHYSICAL_TABLE's_ID_HERE" /&amp;gt;
    	&amp;lt;/Metadata&amp;gt;
    		&amp;lt;NS&amp;gt;SAS&amp;lt;/NS&amp;gt;
    	&amp;lt;Flags&amp;gt;262144&amp;lt;/Flags&amp;gt;
    	&amp;lt;Options&amp;gt;
    	&amp;lt;/Options&amp;gt;
    &amp;lt;/GetMetadata&amp;gt;' 
verbose;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Make sure you change&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;CODE class=" language-sas"&gt;&lt;U&gt;&lt;STRONG&gt;metaserver,&amp;nbsp;metapass &lt;FONT face="arial,helvetica,sans-serif"&gt;and most importantly&lt;/FONT&gt; "PhysicalTable Id" &lt;FONT face="arial,helvetica,sans-serif"&gt;value in this code&lt;/FONT&gt;,&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;You can get PhysicalTable's Id from you error message itself&lt;/FONT&gt;:&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-13_20-09-24.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36840i3136FF4DE7877878/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-03-13_20-09-24.png" alt="2020-03-13_20-09-24.png" /&gt;&lt;/span&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;After running this code, the Table should be unlocked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your reference:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=omaref&amp;amp;docsetTarget=n0jz5u1b73d8czn1wil2biqcusr5.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=omaref&amp;amp;docsetTarget=n0jz5u1b73d8czn1wil2biqcusr5.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 13:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Folder-and-Table-locked-and-not-removable/m-p/631846#M18463</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-03-13T13:14:24Z</dc:date>
    </item>
  </channel>
</rss>

