LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Replace text node issue when running the node from the brx

    Employee
    Posted 02-16-2016 07:19

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: gabygyy

    Hi,


    i'm using this node "replace text" which is working fine in the graph.
    when i'm running the graph using the batch for executing brx the batch is crashing at this node, as you can see in the log

    on the Fields i have "*=xxx" without ""
    on the Rules i have on 2 rows:
    "
    xxx::
    ,->.
    "
    the scope is to replace "," with "." on all input columns!


    "]]></message><detail context="buildRules( ) - Exception" file="build/linux-x86-32/release/code/python/jigsaw/replaceTextRules.py" line="30" xsi:type="cppDetail"/></logEvent><logEvent level="ERROR" timestamp="1455632324000"><message xsi:"]]></message><detail context="Salmon::NED::NodeMain::errorMsg()" file="build/linux-x86-64/release/code/source/brain/node/NodeMain.cpp" line="28" xsi:type="cppDetail"/></logEvent><logEvent level="ERROR" timestamp="1455632324000"><message xsi:type="rawMessage"><![CDATA[Couldn't construct python2 node:
    Traceback (most recent call last):
    File "/u01/app/brain/lavastorm/4.6.1/lib/python/lavastorm/brain/python1.py", line 903, in Run
    n = nodeClass(nodeControl)
    File "/u01/app/brain/lavastorm/4.6.1/lib/python/lavastorm/brain/python1.py", line 753, in __init__
    self.initialize()
    File "/data/indata/LAE/brain/tmp/brain/FOM_GENERIC_XML_READER_v1_13a/2016-02-16_151655/temp.null.25634.71690.1455632324236.56bd85fa037230 93.prop", line 12, in initialize
    self.rules.readRules(propRules)
    File "build/linux-x86-32/release/code/python/jigsaw/replaceTextRules.py", line 36, in readRules
    File "build/linux-x86-32/release/code/python/jigsaw/replaceTextRules.py", line 30, in buildRules
    "uleError: Missing rule declaration in string "xxx::
    ]]></message><detail context="buildRules( ) - Exception" file="build/linux-x86-32/release/code/python/jigsaw/replaceTextRules.py" line="30" xsi:type="cppDetail"/></logEvent><logEvent level="ERROR" timestamp="1455632324000"><message xsi:type="rawMessage"><![CDATA[Got Python exception]]></message><detail context="Salmon::NED::NodeMain::errorMsg()" file="build/linux-x86-64/release/code/source/brain/node/NodeMain.cpp" line="28" xsi:type="cppDetail"/></logEvent>[patra500@l2692 indata]$

    thx,
    Gabriel


  • 2.  RE: Replace text node issue when running the node from the brx

    Employee
    Posted 02-19-2016 08:51

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: gmullin

    I've just done the following and compiled it as BRX and ran it successfully. When I imported the BRS it created it had successfully converted fields from , to .

    node:Static_Data
    bretype:core::Static Data
    editor:sortkey=5693d72e44d33a19
    output:@40fe6c55598828e5/=
    prop:StaticData=<<EOX
    Name,Fieldx,FieldY,FieldZ
    John,00.0,12,00
    Andrew,23,00.0,"0,0"
    Mary,00,"0,0",34
    EOX
    editor:XY=110,200
    end:Static_Data
    
    node:Replace_Text
    bretype:core::Replace Text
    editor:sortkey=5693d7bf71db3a44
    input:@40fd2c743f6973ec/=Static_Data.40fe6c55598828e5
    output:@40fd2c7469010b53/=
    prop:Fields=<<EOX
    *=rule1
    EOX
    prop:Rules=<<EOX
    rule1::
    ,->.
    EOX
    editor:XY=270,200
    end:Replace_Text