<?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: Writing to CSV issues in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512445#M2272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an answer from &lt;A href="https://community.esri.com/migrated-users/44379"&gt;RJ Sunderman&lt;/A&gt;​ which indicates, sadly, I can't do what I want unless I hardcode the Filename into my Python script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hello Andrew –&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I think there is some confusion in how the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Output Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ and ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Custom Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ properties of a ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output are used … and from where the “FieldName” to which you are referring is coming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;First, the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output uses the out-of-the-box Text adapter. This adapter’s implementation has some particular characteristics which a lot of folks find useful. The “FieldName” you are referring to, I think, is actually the name of the GeoEvent Definition associated with the GeoEvent delivered to the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;For example, I have a GeoEvent Service which accepts event data sent to a GeoEvent hosted REST endpoint via HTTP/POST. The event data sent looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; "TrackID": "AA-1234",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; "TimeStamp": "3/15/2015 12:34:56",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; "SensorCode": 11210&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The GeoEvent Definition I created for my input to use, named GenericJsonReceiver, looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;IMG alt="RJ1.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/113681_RJ1.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;When I configure a ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output I can leave the default ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Output Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ setting (‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;ISO 8601 Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’) and I’ll get output in my named CSV file which looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;GenericJsonReceiver,AA-1234,2015-03-15T12:34:56.000-07:00,11210&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;There are not field names in the data string. There is only the three data values prefixed with the name of the GeoEvent Definition. You cannot turn off this behavior. One of the features of the Text adapter is that it always prepends the name of the GeoEvent Definition associated with the event data. Precisely because you don’t have field names, seeing the name of the event definition can be very helpful. Also, this is one of the only outbound connectors you can use when you’re unsure which GeoEvent Definition is associated with your data once it is through the filtering and processing of a GeoEvent Service … and you want to find out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If I change my ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output configuration to specify a date/time mask, I can control what date/time value look like (e.g. how they are represented as String values) in the data written to the file. If I specify the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Output Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ and ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Custom Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ properties as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="RJ2.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/113682_RJ2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d;"&gt;Then the text logged into the CSV file will appear as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;GenericJsonReceiver,AA-1234,15-Mar-2015 12:34:56,11210&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;What I’ve done is tell the output that I would like to see the date formatted as days, followed by a three letter abbreviation of the month, and a four digit year, then the time. I’ve also specified that I like dashed used in my date rather than slashes. These settings have absolutely nothing to do with the name of the output file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The name of the output file is static, and configured up above the ‘Advanced’ parameters. You only get to specify a file prefix. Depending on how you elected to have the file rollover (the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;File Rollover Method&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ property) you will either get your specified file prefix with a .csv suffix … or you will get a system generated date/time stamp following your specified prefix with a .csv suffix. You have no control over how the transport (the out-of-the-box File transport in this case) decides to represent the date/time it integrates into the output file’s name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hope this information helps –&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;RJ&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2015 11:46:41 GMT</pubDate>
    <dc:creator>AndrewHargreaves</dc:creator>
    <dc:date>2015-06-26T11:46:41Z</dc:date>
    <item>
      <title>Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512439#M2266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &lt;SPAN style="color: #1f497d;"&gt;have an output that writes to a CSV file. My Questions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;I cannot figure out to get it to consistently overwrite the same CSV file - “example.csv” - each time it’s triggered. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;How do I get it to NOT write out the FieldName before writing the value – I want only the value .&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 16:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512439#M2266</guid>
      <dc:creator>AndrewHargreaves</dc:creator>
      <dc:date>2015-06-25T16:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512440#M2267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew, what are using to write the *.csv?&amp;nbsp; Also, if something can't be deleted, it is probably some application is also using it (ie ArcMap, Windows Explorer etc)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512440#M2267</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-25T17:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512441#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;Attached is a screenshot of my GEE Service. My input detects a change of "status" on a Sewer overflow, if that status is "Verified" it strips out a bunch of unneeded data and pushes the remainder to a CSV file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that uses that CSV file to suck in the info and do some processing. I need that CSV file to always be named the same thing, and to only contain the value not the fieldname &amp;amp; value (in seperated fields) as it does now.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snag.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/113432_Snag.jpg" style="width: 620px; height: 258px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512441#M2268</guid>
      <dc:creator>AndrewHargreaves</dc:creator>
      <dc:date>2015-06-25T17:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512442#M2269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what you are using to make the csv file, but if it is csv.writer, then you can omit the fieldnames.&amp;nbsp; There are literally too many examples on the web about csv production with/and/without fieldnames for example&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/20347766/pythonically-add-header-to-a-csv-file" title="http://stackoverflow.com/questions/20347766/pythonically-add-header-to-a-csv-file"&gt;python - Pythonically add header to a csv file - Stack Overflow&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/csv.html" title="https://docs.python.org/2/library/csv.html"&gt;13.1. csv — CSV File Reading and Writing — Python 2.7.10 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I tend to use NumPy for that sort of thing...but you will stick with what you have and omit the first record.&amp;nbsp; If you say it is writing a separate field for the field name and then the values in a separate column...that is a program logic problem and shouldn't be occuring&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512442#M2269</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-25T17:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512443#M2270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;I'm not using Python to create the CSV - It's a GEE output "Write to CSV file". I need to know if it's possible to configure this output to NOT have a date as part of the name GEE gives it when it creates it upon starting this output. I also need to know how to overwrite it each time the GEE service is triggered...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512443#M2270</guid>
      <dc:creator>AndrewHargreaves</dc:creator>
      <dc:date>2015-06-25T17:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512444#M2271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies Andrew...I missing that oh so important detail that this was for the GeoEvent for server extension.&amp;nbsp; Too many questions this week about *.csv files, overwriting and Python.&amp;nbsp; I had a look through what I could find but to no avail, it appears the 'server' stuff is cloaked in a world parallel to conventional ArcGIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 19:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512444#M2271</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-25T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512445#M2272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an answer from &lt;A href="https://community.esri.com/migrated-users/44379"&gt;RJ Sunderman&lt;/A&gt;​ which indicates, sadly, I can't do what I want unless I hardcode the Filename into my Python script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hello Andrew –&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I think there is some confusion in how the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Output Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ and ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Custom Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ properties of a ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output are used … and from where the “FieldName” to which you are referring is coming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;First, the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output uses the out-of-the-box Text adapter. This adapter’s implementation has some particular characteristics which a lot of folks find useful. The “FieldName” you are referring to, I think, is actually the name of the GeoEvent Definition associated with the GeoEvent delivered to the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;For example, I have a GeoEvent Service which accepts event data sent to a GeoEvent hosted REST endpoint via HTTP/POST. The event data sent looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; "TrackID": "AA-1234",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; "TimeStamp": "3/15/2015 12:34:56",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; "SensorCode": 11210&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The GeoEvent Definition I created for my input to use, named GenericJsonReceiver, looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;IMG alt="RJ1.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/113681_RJ1.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;When I configure a ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output I can leave the default ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Output Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ setting (‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;ISO 8601 Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’) and I’ll get output in my named CSV file which looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;GenericJsonReceiver,AA-1234,2015-03-15T12:34:56.000-07:00,11210&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;There are not field names in the data string. There is only the three data values prefixed with the name of the GeoEvent Definition. You cannot turn off this behavior. One of the features of the Text adapter is that it always prepends the name of the GeoEvent Definition associated with the event data. Precisely because you don’t have field names, seeing the name of the event definition can be very helpful. Also, this is one of the only outbound connectors you can use when you’re unsure which GeoEvent Definition is associated with your data once it is through the filtering and processing of a GeoEvent Service … and you want to find out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If I change my ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Write to a CSV File&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ output configuration to specify a date/time mask, I can control what date/time value look like (e.g. how they are represented as String values) in the data written to the file. If I specify the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Output Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ and ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Custom Date Format&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ properties as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="RJ2.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/113682_RJ2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d;"&gt;Then the text logged into the CSV file will appear as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;GenericJsonReceiver,AA-1234,15-Mar-2015 12:34:56,11210&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;What I’ve done is tell the output that I would like to see the date formatted as days, followed by a three letter abbreviation of the month, and a four digit year, then the time. I’ve also specified that I like dashed used in my date rather than slashes. These settings have absolutely nothing to do with the name of the output file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The name of the output file is static, and configured up above the ‘Advanced’ parameters. You only get to specify a file prefix. Depending on how you elected to have the file rollover (the ‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;File Rollover Method&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;’ property) you will either get your specified file prefix with a .csv suffix … or you will get a system generated date/time stamp following your specified prefix with a .csv suffix. You have no control over how the transport (the out-of-the-box File transport in this case) decides to represent the date/time it integrates into the output file’s name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hope this information helps –&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;RJ&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 11:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512445#M2272</guid>
      <dc:creator>AndrewHargreaves</dc:creator>
      <dc:date>2015-06-26T11:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to CSV issues</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512446#M2273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/writing-to-csv-issues/m-p/512446#M2273</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-26T14:17:21Z</dc:date>
    </item>
  </channel>
</rss>

