<?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: Snowflake query layer won't copy to local geodatabase in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512637#M11924</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/668647"&gt;@MK13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding line 8, Is mySnowFlakeQuery a variable? If so, it needs to be in curly braces. (Just checking)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var query1 = $"mySnowFlakeQuery";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 21:32:06 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2024-07-30T21:32:06Z</dc:date>
    <item>
      <title>Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1497408#M11749</link>
      <description>&lt;P&gt;I am attempting to copy a snowflake query layer to a local geodatabase but the GP tool fails with no error messages or any messages for that matter. What could be the issue? I have confirmed that the snowflake table gets created as I return the count of rows found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var pgs = Project.Current.GetItems&amp;lt;GDBProjectItem&amp;gt;();
foreach (var pg in pgs)
{
	if (pg.Name == "SnowflakeProd.sde")
	{
		var mlyr = "mylyr";
		var serviceEventTablename = "MySnowflakeTable";
		var query1 = $"mySnowFlakeQuery that I am choosing not to expose here";
		await QueuedTask.Run(async () =&amp;gt;
		{
			using (var snowflakeSde = pg.GetDatastore() as Database)
			{
				var k = snowflakeSde.GetQueryDescription(query1, mlyr);
				k.SetObjectIDFields(realUid);
				var outTable = snowflakeSde.OpenTable(k) as Table;
				var outTablePath = @"C:\Users\MyuserId\Documents\ArcGIS\Projects\MyProject5\MyProject5.gdb\TTCopySnflk";
				var outpath = @"C:\Users\MyUserId\Documents\ArcGIS\Projects\MyProject5\MyProject5.gdb";
				var outname = "TTCopySnflk";

				var count = outTable.GetCount();
				MessageBox.Show($"{count}");
				var copyParams = Geoprocessing.MakeValueArray(outTable.GetPath().AbsolutePath, outTablePath);
				var env = Geoprocessing.MakeEnvironmentArray(overwriteoutput: true);
				var copyResult = await Geoprocessing.ExecuteToolAsync("conversion.ExportTable", copyParams, env);//, null, GPExecuteToolFlags.Default); can't get this to work
				if (copyResult.IsFailed)
				{
					throw new Exception($"{String.Join(',', copyResult.ErrorMessages)}, {String.Join(',', copyResult.Messages)}");
				}
				//copyResult fails with empty error messages 
			}

		});
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/54046"&gt;@NarelleChedzey&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 21:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1497408#M11749</guid>
      <dc:creator>MK13</dc:creator>
      <dc:date>2024-07-30T21:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1497503#M11750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;"conversion.ExportTable" geoprocessing tool has 3 mandatory parameters. One is missed in your parameters list (&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-table.htm" target="_self"&gt;use_field_alias_as_name&lt;/A&gt;). I would recommend to call ExecuteToolAsync with GP events processing (callback) as in &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/call-archydro-tools-using-arcgis-pro-sdk/m-p/1301324" target="_self"&gt;thread&lt;/A&gt;. In OnValidate event you will get information about wrong parameters and etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;More info &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9384.html" target="_self"&gt;here&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 08:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1497503#M11750</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-06-26T08:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1497854#M11756</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;That was helpful, thank you. I was able to retrieve the error message as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;C:/Users/myuserid/AppData/Local/Temp/ArcGISProTemp49672/562bf87bd4889d4e2094a30b9462ccc7.sde/EDW.ODS.%25mylyrCsharp1 does not exist or is not supported&amp;lt;/msg&amp;gt;}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am now wondering is why the snowflake query layer/table that was created by the line below&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var outTable = snowflakeSde.OpenTable(k) as Table;&lt;/LI-CODE&gt;&lt;P&gt;doesn't exist or is not supported since again, I can get the count of the rows so I know that it exists.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 19:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1497854#M11756</guid>
      <dc:creator>MK13</dc:creator>
      <dc:date>2024-06-26T19:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1499871#M11778</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/54046" target="_blank"&gt;@NarelleChedzey&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021" target="_blank"&gt;@UmaHarano&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882" target="_blank"&gt;@Wolf&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101" target="_blank"&gt;@CharlesMacleod&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 14:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1499871#M11778</guid>
      <dc:creator>MK13</dc:creator>
      <dc:date>2024-07-01T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512637#M11924</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/668647"&gt;@MK13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding line 8, Is mySnowFlakeQuery a variable? If so, it needs to be in curly braces. (Just checking)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var query1 = $"mySnowFlakeQuery";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 21:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512637#M11924</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-30T21:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512638#M11925</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/668647"&gt;@MK13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding line 8, Is mySnowFlakeQuery a variable? If so, it needs to be in curly braces. (Just checking)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 21:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512638#M11925</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-07-30T21:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Snowflake query layer won't copy to local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512643#M11927</link>
      <description>&lt;P&gt;Hi Uma, I just used $"mySnowFlakeQuery" as a substitution for the actual query that I am using. I didn't want to expose my actual query to the public but it's a valid sql query. Also, I've been working with someone in tech support and they let me know that they re-produced this issue and think that it might be a bug.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 21:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/snowflake-query-layer-won-t-copy-to-local/m-p/1512643#M11927</guid>
      <dc:creator>MK13</dc:creator>
      <dc:date>2024-07-30T21:42:45Z</dc:date>
    </item>
  </channel>
</rss>

