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.  Allowing a default value into a multiple brd node when its input is 0

    Employee
    Posted 05-20-2014 06:12

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

    Originally posted by: khopkins

    Hello everyone,

    I have a requirement to input data from a set of daily produced brd files and then create an export of what is inside them.
    The problem i have is that sometimes not all of the brd files are produced which is correct and which causes the multiple brd node to fail with a (zero readers passed) error which causes the rest of the graph to fail.

    I wondered if there is a way to default the data to spoof an empty default brd file if the data is empty and pass that into the collector or is there a way around this issue with the multiple brd node?

    Regards,

    Keith


  • 2.  RE: Allowing a default value into a multiple brd node when its input is 0

    Employee
    Posted 05-20-2014 06:39

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

    Originally posted by: ltolleson

    Just keep a dummy.brd file in your data directory that contains a header of the same brd files you read. When the dummy.brd is read using the directory list node you can simply remove that record with a filter node.

    If you empty your data directory after the data is read you can keep the dummy.brd in a different directory and copy (use the appendBrd function) it into your data directory using a filter node before you begin processing the data. You will need to pass in 1 record to the filter node thru a static data node to get the filter to execute the appendBrd command.

    Hope this helps...

    Thanks,
    Larry


  • 3.  RE: Allowing a default value into a multiple brd node when its input is 0

    Employee
    Posted 05-20-2014 07:04

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

    Originally posted by: dsc88dsc88

    Hi Keith,

    You could use the Meta Check to determine whether the Multiple BRD should run or not? I have provided an example below.

    If the graph needs to run through though, you would be best using the method that Larry suggests above.


    - - - - - - - - copy all text below this line into your graph - - - - - - - -

    node:Check_there_1_record
    bretype:core::Meta Check
    editor:Label=Check there >=1 record
    editor:sortkey=537b5c010dce657a
    input:@43c285fc347d19f2/=Directory_List.40fd2c747c2b1c0a
    prop:MinimumRecordCount=1
    prop:SuccessAction=Clock
    prop:TerminusAction=Output
    editor:XY=360,70
    end:Check_there_1_record

    node:Directory_List
    bretype:core::Directory List
    editor:sortkey=537b5bcb327659c2
    output:@40fd2c747c2b1c0a/=
    prop:DirectoryName=H:\
    prop:Pattern=*.brd
    editor:XY=280,140
    end:Directory_List

    node:Multiple_BRD_Files
    bretype:core::Multiple BRD Files
    editor:sortkey=537b5bc811fb6298
    input:@40fd2c7405e716f4/=Directory_List.40fd2c747c2b1c0a
    output:@40fd2c74028104af/=
    inclock:/=Check_there_1_record
    prop:Filename=<<EOX
    FileName
    EOX
    editor:XY=430,140
    end:Multiple_BRD_Files


  • 4.  RE: Allowing a default value into a multiple brd node when its input is 0

    Employee
    Posted 05-21-2014 03:13

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

    Originally posted by: khopkins

    Thanks everyone larrys solution worked just fine