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.  LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 06-11-2014 10:28

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

    Originally posted by: lae_errors

    This post has been created for discussion of error code lae.brainscript.list.nullList.

    Please reply to this thread with any description of error conditions, diagnostic information, and recommended resolutions.


  • 2.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-04-2015 08:28

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

    Originally posted by: Alex

    I am getting this error trying to get DATE from file in dir. and delete any files older then 4 days.

    r=stat(FileName)
    s=split(FileName+"///","/")
    Server=s[4]
    Graph=s[6]
    User=s[5]

    emit *
    override emit FileDate=date(str(r[1]),"E")
    emit Server
    emit Graph
    emit User
    emit Size=r[0]

    Here is my 4 days older filter

    emit *
    where FileDate.dateAdjust(4) < date()


  • 3.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-04-2015 08:44

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

    Originally posted by: stonysmith

    Did the error message include a line #?
    It's likely that the error is one of these 3 lines:
    Server=s[4]
    Graph=s[6]
    User=s[5]

    If FileName does not include all three pieces you're looking for, the error could be coming from there.
    You may need to filter out some filenames before you try to parse it this way, or use this:
    s=split(FileName+"//////","/")


  • 4.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-04-2015 08:49

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

    Originally posted by: ltolleson

    You can also check the length of your list "s" before you attempt to access the items in the list.

    slength = s.len()

    if slength <= 7 then
    {
    Server=s[4]
    Graph=s[6]
    User=s[5]
    }


  • 5.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-04-2015 08:57

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

    Originally posted by: Alex

    My error is on
    Line: 8; BrainScript: override emit FileDate=date(str(r[1]),"E")
    Operator: 'get-at'

    I am going to try to check the length of my list. Will post results
    Thank you


  • 6.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-04-2015 09:14

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

    Originally posted by: Alex

    I am selecting over 80K files and Looks like my problem is in r=stat(FileName)
    One of the stat items witch containing 3 long integers is NULL, how can I get date for my next node to select any file older then 4 days if I can't read stat.


  • 7.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-04-2015 14:47

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

    Originally posted by: ltolleson

    When you look at that file on the system does it have a date? If it's only 1 files out of 80,000 I would recommend just skipping that file until you are able to determine the reason that it does not have a date.


  • 8.  RE: LAE Error Code: lae.brainscript.list.nullList

    Employee
    Posted 02-05-2015 08:14

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

    Originally posted by: stonysmith

    Yes, the file has a date. The STAT() function is returning a single value of null, instead of the proper value of a list like {null,null,null}

    This has been reported as a bug on case CS-7548