<?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 Re: Global Table cannot be replaced in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445145#M151</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190736"&gt;@Zhteh&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;ERROR: Global tables cannot be replaced.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a valid error because "promote" and "replace" cannot be used together.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 12:54:19 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2018-03-13T12:54:19Z</dc:date>
    <item>
      <title>Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445125#M150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to replace the csv file in the cas server using python-swat interface. However, I encounter error with "&lt;STRONG&gt;Global Table cannot be replaced" &lt;/STRONG&gt;when I run it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I used to upload the data. Anyone know the reason behind it? Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;conn.upload('abc.csv',casout=dict(name='trialupload2',caslib='public',promote = 'true',replace = 'true'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRIALUPLOAD2&lt;/STRONG&gt; table is in my cas server, and when I try to replace it, it resulted in the above error.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445125#M150</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-13T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445145#M151</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190736"&gt;@Zhteh&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;ERROR: Global tables cannot be replaced.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a valid error because "promote" and "replace" cannot be used together.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445145#M151</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-03-13T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445149#M152</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case, then may I know is there any workaround for this? because I wish to overwrite the existing data in the CAS server. And if I set the promote to false, the data uploaded won't be visible to me anymore.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 13:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445149#M152</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-13T13:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445151#M153</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190736"&gt;@Zhteh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upload the data to your session scope, then promote to the global scope (in a separate action).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 13:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445151#M153</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-03-13T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445189#M154</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know the proper way of promoting to global scope? Now that with&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;conn.read_csv('abc.csv',casout=dict(name='trialupload123',caslib='public',replace ='true'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;thiis command I am able to upload to the session scope.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But using when trying to promote to global scope using the below command it fails.&lt;BR /&gt;&lt;STRONG&gt;conn.read_csv('abc.csv',casout=dict(name='trialupload123',caslib='public',promote = 'true'))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445189#M154</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-13T14:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445214#M155</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190736"&gt;@Zhteh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;load_csv = conn.read_csv('https://raw.githubusercontent.com/sassoftware/sas-viya-programming/master/data/cars.csv',casout=dict(name='CARS',caslib='CASUSER',replace ='true'))
promote_csv = conn.promote(load_csv,target='NEW_NAME_FOR_CARS_TABLE')&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 15:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445214#M155</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-03-13T15:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445216#M156</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the code. However, there is still one problem here. The error exists because the target table of the promotion already exists. Means&amp;nbsp; that I couldn't overwrite the table of the same name in the CAS server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;ERROR: The target table trialupload432 of the promotion already exists. Please specify a different name.&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445216#M156</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-13T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445243#M157</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190736"&gt;@Zhteh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's correct. You have to choose a new name like I showed above.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445243#M157</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-03-13T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445399#M158</link>
      <description>&lt;P&gt;Try dropping the table first using the dropTable action&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 07:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/445399#M158</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-14T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/447002#M159</link>
      <description>&lt;P&gt;thanks for the solution. However, the problem is that the table name in the global scope will be different everytime I upload the data. And in the SAS Studio I will have to access data from different tables every time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 05:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/447002#M159</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-20T05:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Global Table cannot be replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/447003#M160</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. That will do the trick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 05:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Global-Table-cannot-be-replaced/m-p/447003#M160</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-20T05:10:11Z</dc:date>
    </item>
  </channel>
</rss>

