<?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: How to avoid orphaned excel nodes/ hanging processes on Sandbox in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392663#M17159</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312"&gt;@fmvizcaino&lt;/a&gt;&amp;nbsp;Force closing processes on the server requires admin privileges though, or am I misunderstanding?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 16:50:11 GMT</pubDate>
    <dc:creator>vj28</dc:creator>
    <dc:date>2025-05-21T16:50:11Z</dc:date>
    <item>
      <title>How to avoid orphaned excel nodes/ hanging processes on Sandbox</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1391203#M17124</link>
      <description>&lt;P&gt;&lt;I&gt;I use VBA macros as part of my workflow and sometimes when the workflow gets stuck at that part when running through sandbox I cancel the workflow, but it looks like the server still has EXCEL.exe processes running and this causes issues across the sandbox while trying to run different workflows.&amp;nbsp;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Sometimes I also get the vba file in question locked by the alteryx engine :&lt;/I&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandbox_macro_error.png" style="width: 973px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/404107i0FA1C292AA6EEB13/image-size/large?v=v2&amp;amp;px=999" role="button" title="sandbox_macro_error.png" alt="sandbox_macro_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing sysbitechalteryxnp refers to an instance of the alteryx engine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's that macro's code, I've made sure any possible issues that might cause orphan excel nodes or hanging processes are avoided :&lt;/P&gt;&lt;P&gt;VBA :&lt;/P&gt;&lt;P&gt;Sub macro1()&lt;BR /&gt;Dim objExcel&lt;BR /&gt;Dim objworkbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;BR /&gt;objExcel.DisplayAlerts = False&lt;BR /&gt;'view the excel program and file, set to false to hide the whole process&lt;BR /&gt;objExcel.Visible = False&lt;/P&gt;&lt;P&gt;Set objworkbook = objExcel.Workbooks.Open("path\to\file")&lt;/P&gt;&lt;P&gt;objExcel.Calculation = xlCalculationAutomatic&lt;BR /&gt;objworkbook.RefreshAll&lt;BR /&gt;objExcel.CalculateUntilAsyncQueriesDone&lt;BR /&gt;objworkbook.Save&lt;BR /&gt;objworkbook.Close True&lt;/P&gt;&lt;P&gt;objExcel.Quit&lt;/P&gt;&lt;P&gt;Set objworkbook = Nothing&lt;BR /&gt;&lt;BR /&gt;Set objExcel = Nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VBS :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Explicit&lt;/P&gt;&lt;P&gt;' -----------&lt;BR /&gt;dim workbook_path&lt;BR /&gt;workbook_path = "path\to\file\trigger_formulas_vba.xlsm"&lt;BR /&gt;' Place your workbook file here&lt;BR /&gt;dim macro_name&lt;BR /&gt;macro_name = "macro1"&lt;BR /&gt;' Place your macro name here&lt;BR /&gt;' -----------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dim file_system&lt;BR /&gt;dim full_workbook_path&lt;BR /&gt;set file_system = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;full_workbook_path = file_system.GetAbsolutePathName(workbook_path)&lt;BR /&gt;' File address housekeeping&lt;/P&gt;&lt;P&gt;Dim ExcelProgram&lt;BR /&gt;Set ExcelProgram = CreateObject("Excel.Application")&lt;BR /&gt;' Tell the script what Excel is&lt;/P&gt;&lt;P&gt;ExcelProgram.Application.WorkBooks.Open full_workbook_path&lt;BR /&gt;' Open your workbook&lt;/P&gt;&lt;P&gt;ExcelProgram.Application.Visible = False&lt;BR /&gt;' Open it in the background&lt;/P&gt;&lt;P&gt;ExcelProgram.Application.Run "'"&amp;amp;full_workbook_path&amp;amp;"'!"&amp;amp;macro_name&lt;BR /&gt;' Run your Macro - this tells the Excel running in the background to find this workbook and macro.&lt;/P&gt;&lt;P&gt;ExcelProgram.Application.displayalerts = False&lt;BR /&gt;' Do not show prompts since we want this to be automated - Could switch to True to get prompts&lt;/P&gt;&lt;P&gt;ExcelProgram.Activeworkbook.Save&lt;BR /&gt;' Do not forget to save your work&lt;/P&gt;&lt;P&gt;ExcelProgram.Activeworkbook.Close&lt;BR /&gt;' Close the workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to deal with this issue, without having to contact IT/sys admin to manually clear out/ kill any background excel processes?&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 08:00:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1391203#M17124</guid>
      <dc:creator>vj28</dc:creator>
      <dc:date>2025-05-14T08:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid orphaned excel nodes/ hanging processes on Sandbox</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392632#M17158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/662545"&gt;@vj28&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To my knowledge, whenever you cancel a workflow, the VBA script is stopped and the close operation (&lt;SPAN&gt;ExcelProgram.Activeworkbook.Close) doesn`t happen. Even if you add exceptions in your VBA, it won`t work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The way I would do it is to add a Python script (inside your workflow with the Python tool) before running your VBA to force close our xlsm file before running it once again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Keep in mind that your process is running on a server where other workflows are running and probably using excel, so be very specific and use the file name not to kill other excels running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would guess&amp;nbsp;sysbitechalteryxnp&amp;nbsp;is the service account responsible for running your entire Alteryx Server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fernando Vizcaino&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 15:12:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392632#M17158</guid>
      <dc:creator>fmvizcaino</dc:creator>
      <dc:date>2025-05-21T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid orphaned excel nodes/ hanging processes on Sandbox</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392663#M17159</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312"&gt;@fmvizcaino&lt;/a&gt;&amp;nbsp;Force closing processes on the server requires admin privileges though, or am I misunderstanding?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:50:11 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392663#M17159</guid>
      <dc:creator>vj28</dc:creator>
      <dc:date>2025-05-21T16:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid orphaned excel nodes/ hanging processes on Sandbox</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392667#M17160</link>
      <description>&lt;P&gt;The Alteryx Server user running your workflow has admin permissions. I suggest creating a simple Python script and testing it on your server to see if it works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:55:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392667#M17160</guid>
      <dc:creator>fmvizcaino</dc:creator>
      <dc:date>2025-05-21T16:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid orphaned excel nodes/ hanging processes on Sandbox</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392669#M17161</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312"&gt;@fmvizcaino&lt;/a&gt;&amp;nbsp;ah yeah, makes sense. I'll try that out&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:57:28 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-to-avoid-orphaned-excel-nodes-hanging-processes-on-Sandbox/m-p/1392669#M17161</guid>
      <dc:creator>vj28</dc:creator>
      <dc:date>2025-05-21T16:57:28Z</dc:date>
    </item>
  </channel>
</rss>

