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.indexOutOfBounds

    Employee
    Posted 04-15-2014 15:04

    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.indexOutOfBounds.

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


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

    Employee
    Posted 04-15-2014 15:04

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

    Originally posted by: mmarinelli

    I received this error within in the following script:

    foo = list(0,1)
    emit foo[2] as bar

    It's not clear to me why this isn't working, as there are two elements in the array, and I'm simply accessing the second one.


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

    Employee
    Posted 04-16-2014 06:14

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

    Originally posted by: rnukovic

    List indexes are zero-based, not one-based. So to get the second item on your list, you should 'emit foo[1] as bar'.


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

    Employee
    Posted 11-23-2016 04:59

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

    Originally posted by: awilliams1024

    This error can also be generated by the Deep X-ref node if there is no overlap between the names of the non-key fields in the two data sets.
    For this error to be output the node would have been configured with the 'AllowPartialOverlap' property set to true (else this error message will be output "Fields on input data sets do not match").

    There must be at least one non-key field with the same (case-insensitive) name that is present in both data sets.

    An example of the full error message generated by the Deep X-Ref node is the following:

    -- Errors for Join
    ERROR: getItem index value 0 is out of bounds. Valid indexes for the getItem operation would be between 0--1.
    The list has 0 elements.

    NOTE: List indexes are 0-based.
    Line: 36; BrainScript: sortMap = sortMap.append(find(fields, fieldsTmp[0]))
    Operator: 'get-at'
    Error Code: lae.brainscript.list.indexOutOfBounds