<?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: Watch Folder for XML in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/watch-folder-for-xml/m-p/1143853#M3716</link>
    <description>&lt;P&gt;Andrew, I have seen similar errors with Asterisk and "call Files" where if you write or copy the file to the target directory the watcher starts before the write&amp;nbsp; copy closes the file. In that case it is recommended that you move the file not copy the file to the target direct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what we had to do with the Mobiletec CAD as well for a "paging" interface.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;&lt;EM&gt;&lt;FONT size="2"&gt;As Jeff suggests, the GeoEvent Server system file watcher does not check if a file is currently being written or if a file copy is complete. The recommendation would be to copy the XML file from the CAD system to a local folder on the server used to run GeoEvent Server (to mitigate any latency in the file copy operation) then move rather than copy the file from a local folder such as &lt;/FONT&gt;&lt;/EM&gt;&lt;FONT size="2" color="#000000"&gt;C:\GeoEvent\stage&lt;/FONT&gt;&lt;EM&gt;&lt;FONT size="2"&gt; to the folder your input has been configured to watch (e.g. &lt;FONT size="2" color="#000000"&gt;C:\GeoEvent\input&lt;/FONT&gt;). -- RJ&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 01:02:18 GMT</pubDate>
    <dc:creator>JeffSilberberg</dc:creator>
    <dc:date>2022-02-15T01:02:18Z</dc:date>
    <item>
      <title>Watch Folder for XML</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/watch-folder-for-xml/m-p/1141185#M3715</link>
      <description>&lt;P&gt;I have configured an input to watch a folder for an XML file.&amp;nbsp; A 911 Computer Aided Dispatch system writes an xml file for each dispatch call.&amp;nbsp; The files are copied from the CAD server to the Geoevent server every minute.&amp;nbsp; Sometimes the files are not parsed and I get the following error:&lt;/P&gt;&lt;P&gt;"An unexpected error has occurred while reading the file "xxxxxx".&amp;nbsp; The process cannot access the file because it is being used by another process."&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 14:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/watch-folder-for-xml/m-p/1141185#M3715</guid>
      <dc:creator>AndrewMilanes</dc:creator>
      <dc:date>2022-02-07T14:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Watch Folder for XML</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/watch-folder-for-xml/m-p/1143853#M3716</link>
      <description>&lt;P&gt;Andrew, I have seen similar errors with Asterisk and "call Files" where if you write or copy the file to the target directory the watcher starts before the write&amp;nbsp; copy closes the file. In that case it is recommended that you move the file not copy the file to the target direct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what we had to do with the Mobiletec CAD as well for a "paging" interface.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;&lt;EM&gt;&lt;FONT size="2"&gt;As Jeff suggests, the GeoEvent Server system file watcher does not check if a file is currently being written or if a file copy is complete. The recommendation would be to copy the XML file from the CAD system to a local folder on the server used to run GeoEvent Server (to mitigate any latency in the file copy operation) then move rather than copy the file from a local folder such as &lt;/FONT&gt;&lt;/EM&gt;&lt;FONT size="2" color="#000000"&gt;C:\GeoEvent\stage&lt;/FONT&gt;&lt;EM&gt;&lt;FONT size="2"&gt; to the folder your input has been configured to watch (e.g. &lt;FONT size="2" color="#000000"&gt;C:\GeoEvent\input&lt;/FONT&gt;). -- RJ&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 01:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/watch-folder-for-xml/m-p/1143853#M3716</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2022-02-15T01:02:18Z</dc:date>
    </item>
  </channel>
</rss>

