🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"DatabaseExampleSetWriter error"

User: "keith"
New Altair Community Member
Updated by Jocelyn
When I have  DatabaseExampleSetWriter with overwrite_mode set to "overwrite" it works correctly.  However, if I have overwrite_mode set to "append" or "overwrite first, append then", I get the following error:

PatternSyntaxException caught:
Unclosed character class near index0
[
^
Is this a bug, or user error?

UPDATE: This actually doesn't appear to be related to appen/overwrite, but rather writing nominal values to a database.

This causes an error:

<operator name="Root" class="Process" expanded="yes">
    <operator name="NominalExampleSetGenerator" class="NominalExampleSetGenerator">
        <parameter key="number_of_attributes" value="1"/>
        <parameter key="number_of_values" value="3"/>
    </operator>
    <operator name="DatabaseExampleSetWriter" class="DatabaseExampleSetWriter">
        <parameter key="database_system" value="Microsoft SQL Server (Microsoft)"/>
        <parameter key="database_url" value="jdbc:sqlserver:xxxxxx"/>
        <parameter key="overwrite_mode" value="overwrite"/>
        <parameter key="password" value="xxxxxx"/>
        <parameter key="table_name" value="rm_test"/>
        <parameter key="username" value="xxxxxx"/>
    </operator>
</operator>
This one doesn't.  The only change is now I'm using ExampleSetGenerator to produce all numeric data.

<operator name="Root" class="Process" expanded="yes">
    <operator name="ExampleSetGenerator" class="ExampleSetGenerator">
        <parameter key="target_function" value="sum"/>
    </operator>
    <operator name="DatabaseExampleSetWriter" class="DatabaseExampleSetWriter">
        <parameter key="database_system" value="Microsoft SQL Server (Microsoft)"/>
        <parameter key="database_url" value="jdbc:sqlserver:xxxxx"/>
        <parameter key="overwrite_mode" value="overwrite"/>
        <parameter key="password" value="xxxxx"/>
        <parameter key="table_name" value="rm_test"/>
        <parameter key="username" value="xxxxx"/>
    </operator>
</operator>
Thanks,
Keith

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "land"
    New Altair Community Member
    Hi Keith,
    this seems to be a quoting problem to me. Does one of your nominal values include some strange character?
    And could you please post the version and type of your Microsoft SQL Server?

    Greetings,
      Sebastian
    User: "keith"
    New Altair Community Member
    OP
    The example I posted uses only the nominal values that are automatically generated: positive, negative, value0, value1, value2.  So it's unlikely to be just a quoting problem in my data.

    The database server is running SQL Server 2005 standard edition, version 9.0.3042
    User: "Legacy User"
    New Altair Community Member
    I seem to be having the same problem as Keith -- a classification routine and model applier feed into a DatabaseExampleSetWriter, which throws an identical error. The SQL server settings are set to the same parameters as in the initial DatabaseExampleSource operator, and this procedure worked before upgrading to 4.3.  The values produced are all numerical, except for the nominal label value. Is there a chance that something was broken in the version change?

    It's SQL Server2005 (standard), 9.0.3042

    Thanks,
    Jason
    User: "land"
    New Altair Community Member
    Hi guys,
    good news! We have found the bug. The correct version is now available in cvs developer branch or with the next regular update for the enterprise edition which will be published in around a week.

    Greetings,
      Sebastian
    User: "haddock"
    New Altair Community Member
    Hi Sebastian,

    I'm on RM Enterprise 4.3.000 with MS SQL 2005 and am bumping into exactly the same problem. Any idea when the fix will be published? Soon would be great  ;D