<?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: SAS ESP in Viya: Errors importing events from CSV using Connector in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/SAS-ESP-in-Viya-Errors-importing-events-from-CSV-using-Connector/m-p/910241#M2185</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is because the connector expects the event opcode and flag in the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either you add "i,n," before each line in the data where "i" stands for insert opcode and "n" stands for normal event flag. Or you can set two properties in the connector All Properties section. The properties are "addcsvopcode" and "addcsvflags". I have added the sample xml snippet for those properties in the connector.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;property name="addcsvopcode"&amp;gt;&amp;lt;![CDATA[true]]&amp;gt;&amp;lt;/property&amp;gt;
&amp;lt;property name="addcsvflags"&amp;gt;&amp;lt;![CDATA[normal]]&amp;gt;&amp;lt;/property&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Also, I will suggest adding some data too to each event apart from the key when testing.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 13:46:18 GMT</pubDate>
    <dc:creator>jbhattacharya</dc:creator>
    <dc:date>2024-01-03T13:46:18Z</dc:date>
    <item>
      <title>SAS ESP in Viya: Errors importing events from CSV using Connector</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-ESP-in-Viya-Errors-importing-events-from-CSV-using-Connector/m-p/910140#M2181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I recently configured ESP for use in Viya and am now attempting to import events from a simple CSV, using a connector I've defined. The csv is stored under a directory in the project package. I've included the simple csv below. In the ESP Studio Modeler I created a Source Window. For the output schema I defined a single key column of 'id', corresponding to the single column included in the csv as a string column. I also defined a file and socket connector of fstype "csv" and used the file browser to select the proper csv file. When I run in Test Mode I get the following error:&amp;nbsp;&lt;SPAN&gt;dfESPeventcodes::dfESPeventopcodes::string2opCode(): Failed parsing opcode: id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone could shed some light as to what I am doing wrong, I would greatly appreciate it as I'd like to import events using csv files!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-ESP-in-Viya-Errors-importing-events-from-CSV-using-Connector/m-p/910140#M2181</guid>
      <dc:creator>nattyd</dc:creator>
      <dc:date>2024-01-02T19:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ESP in Viya: Errors importing events from CSV using Connector</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-ESP-in-Viya-Errors-importing-events-from-CSV-using-Connector/m-p/910241#M2185</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is because the connector expects the event opcode and flag in the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either you add "i,n," before each line in the data where "i" stands for insert opcode and "n" stands for normal event flag. Or you can set two properties in the connector All Properties section. The properties are "addcsvopcode" and "addcsvflags". I have added the sample xml snippet for those properties in the connector.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;property name="addcsvopcode"&amp;gt;&amp;lt;![CDATA[true]]&amp;gt;&amp;lt;/property&amp;gt;
&amp;lt;property name="addcsvflags"&amp;gt;&amp;lt;![CDATA[normal]]&amp;gt;&amp;lt;/property&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Also, I will suggest adding some data too to each event apart from the key when testing.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 13:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-ESP-in-Viya-Errors-importing-events-from-CSV-using-Connector/m-p/910241#M2185</guid>
      <dc:creator>jbhattacharya</dc:creator>
      <dc:date>2024-01-03T13:46:18Z</dc:date>
    </item>
  </channel>
</rss>

