<?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: Dynamic IN-DB causes IN-DB Union Tool Gallery fail (All inputs must have same connecti in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547664#M5983</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/72364"&gt;@andrewfrankwilson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When saving the workflow to Gallery, try clicking on Workflow Options, Manage workflow assets, and verify if the connection file is checked as a workflow dependency. If checked, then a copy is saved to the Gallery’s database along with the workflow. Afterward, when running the workflow, the Data Stream In Tool references the database copy, while the Text Input Tool has the location of the external copy of the connection file.&lt;/P&gt;&lt;P&gt;To avoid this issue, use the method described in this article:&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Guide-to-In-DB-Connection-Files/ta-p/444662" target="_blank" rel="noopener"&gt;Guide to In-DB Connection Files.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option is using a Date Time Now Tool followed by a Data Stream In Tool. This method would allow Designer to provide the current date and stream it into the In-DB portion of the workflow with no separate connection needed for that information. Afterward, you could use an In-DB Formula tool to build the SQL with the current date field for use in the Dynamic Input In-DB Tool.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 21:13:43 GMT</pubDate>
    <dc:creator>EricWe</dc:creator>
    <dc:date>2020-03-27T21:13:43Z</dc:date>
    <item>
      <title>Dynamic IN-DB causes IN-DB Union Tool Gallery fail (All inputs must have same connection)</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/546509#M5975</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Alteryx Designer Version&lt;/STRONG&gt; 2019.4.8.22007&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alteryx Server Version&lt;/STRONG&gt; 2019.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;Purpose&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I needed to create a workflow that would dynamically update an In-DB WHERE clause depending on the date the workflow was run (Not included in example screenshots). This was achieved using a text input tool that contains two fields 1) the Connection String and 2) the Query string. These are fed into the Dynamic Input In-DB Tool which queries an Oracle database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text Input Local Path.PNG" style="width: 542px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104462i0D79B613F7AD4AD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text Input Local Path.PNG" alt="Text Input Local Path.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results of that query are to be In-DB Unioned with Data Streamed In-DB that have the same columns and data types.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Designer Workflow.PNG" style="width: 944px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104463iD50FEF75391BE338/image-size/large?v=v2&amp;amp;px=999" role="button" title="Designer Workflow.PNG" alt="Designer Workflow.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the Dynamic Input In-DB Tool and the In-DB Data Stream In connections are both done by a File Connection Type.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Stream In-DB Local Path.PNG" style="width: 484px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104464i2E04CB6DE8532B90/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Stream In-DB Local Path.PNG" alt="Data Stream In-DB Local Path.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When that file path is used in the connection name fields for both tools in Designer, the In-DB Union tool &lt;U&gt;&lt;STRONG&gt;does not&lt;/STRONG&gt;&lt;/U&gt; throw an error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Designer Messages.PNG" style="width: 580px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104466iA9A26879F9E8560B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Designer Messages.PNG" alt="Designer Messages.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;However, when publishing to Gallery, the connection file is packaged into the workflow as an external file (i.e. "File:_externals\1\IN-DBConnect.indbc"). Trying to run the workflow in Gallery without also updating the Text Input Connection (which is still a path to the file on a local drive) will cause a predictable failure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gallery Initial Run.PNG" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104468i26FDF1279D625E92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Gallery Initial Run.PNG" alt="Gallery Initial Run.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the text input tool needs to be adjusted to the new packaged connection file location:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text Input External File Path.PNG" style="width: 534px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104469i7382FF7A8EB8C448/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text Input External File Path.PNG" alt="Text Input External File Path.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This now matches the connection name for the other tools (e.g. Data Stream In Tool)&amp;nbsp; in the workflow after it has been saved to Gallery:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Stream In-DB External File Path.PNG" style="width: 485px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104470iCBCA8E9B8BF99AA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Stream In-DB External File Path.PNG" alt="Data Stream In-DB External File Path.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is use of the packaged file that is necessary for Gallery, that appears to be causing the In-DB Union tool to Error: "Union In-DB: All inputs must have the same In-DB connection".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gallery External File Run.PNG" style="width: 751px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104474i36EF7D2FEDCAE9E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Gallery External File Run.PNG" alt="Gallery External File Run.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The packaged file also causes failure in Designer, but I can get the workflow to execute if I revert the connections back to the file path on my local machine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Designer Workflow Union Fail.PNG" style="width: 902px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104471i10CEAB85F1FD9437/image-size/large?v=v2&amp;amp;px=999" role="button" title="Designer Workflow Union Fail.PNG" alt="Designer Workflow Union Fail.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Designer Messages Union Fail.PNG" style="width: 607px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104472iAE2E2D6E1DF95010/image-size/large?v=v2&amp;amp;px=999" role="button" title="Designer Messages Union Fail.PNG" alt="Designer Messages Union Fail.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified that the workflow packaged external connection files are still connecting to the database by using the Browse In-DB tools. Both the Data Stream In and the Dynamic Input In-DB tools are successfully connecting to the Oracle Database and returning the expected values; but when it comes time to In-DB Union that data, their shared connection is not recognized as the same by the In-DB Union tool. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dynamic Input Browse.PNG" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/104475iDF6622294D611B99/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dynamic Input Browse.PNG" alt="Dynamic Input Browse.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any advice on this? Is the In-DB Union tool a known problem in Designer/Gallery?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 18:15:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/546509#M5975</guid>
      <dc:creator>andrewfrankwilson</dc:creator>
      <dc:date>2020-03-25T18:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic IN-DB causes IN-DB Union Tool Gallery fail (All inputs must have same connecti</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547664#M5983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/72364"&gt;@andrewfrankwilson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When saving the workflow to Gallery, try clicking on Workflow Options, Manage workflow assets, and verify if the connection file is checked as a workflow dependency. If checked, then a copy is saved to the Gallery’s database along with the workflow. Afterward, when running the workflow, the Data Stream In Tool references the database copy, while the Text Input Tool has the location of the external copy of the connection file.&lt;/P&gt;&lt;P&gt;To avoid this issue, use the method described in this article:&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Guide-to-In-DB-Connection-Files/ta-p/444662" target="_blank" rel="noopener"&gt;Guide to In-DB Connection Files.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option is using a Date Time Now Tool followed by a Data Stream In Tool. This method would allow Designer to provide the current date and stream it into the In-DB portion of the workflow with no separate connection needed for that information. Afterward, you could use an In-DB Formula tool to build the SQL with the current date field for use in the Dynamic Input In-DB Tool.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 21:13:43 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547664#M5983</guid>
      <dc:creator>EricWe</dc:creator>
      <dc:date>2020-03-27T21:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic IN-DB causes IN-DB Union Tool Gallery fail (All inputs must have same connecti</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547671#M5985</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I do realize that problem with the path in the text-input tool; It was detailed in my description, and addressed. The problem is not the connection file, which works both locally and as the gallery packaged asset. I have since moved on from using a Gallery packaged connection file to using a connection file hosted on a shared drive that Alteryx can access. When this approach is taken, the In-DB Union tool error I have described no longer occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion on another approach for a dynamic In-DB query on date.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 21:40:11 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547671#M5985</guid>
      <dc:creator>andrewfrankwilson</dc:creator>
      <dc:date>2020-03-27T21:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic IN-DB causes IN-DB Union Tool Gallery fail (All inputs must have same connecti</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547708#M5986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/72364"&gt;@andrewfrankwilson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad the issue is resolved. For others that may encounter this problem, the linked article in the previous post provides details about how to use In-DB connection files from a shared drive. The Password Encryption option Hide is needed. This method prevents the password encryption from being machine-specific. It ensures the encrypted password for the connection is accessible from the Gallery.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 22:51:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Dynamic-IN-DB-causes-IN-DB-Union-Tool-Gallery-fail-All-inputs/m-p/547708#M5986</guid>
      <dc:creator>EricWe</dc:creator>
      <dc:date>2020-03-27T22:51:10Z</dc:date>
    </item>
  </channel>
</rss>

