Skip to content

EPM-framework - Invalid length parameter passed to the RIGHT function in policy.v_EvaluationErrorHistory #556

Description

Executing SELECT * FROM policy.v_EvaluationErrorHistory in EPM-framework can result in following error when EvaluatedObject doesn't contain a backslash:

Invalid length parameter passed to the RIGHT function

Checking if a backslash is present solves the issue:

case when CHARINDEX('\', REVERSE(EvaluatedObject)) >0 then RIGHT(EvaluatedObject,CHARINDEX('\', REVERSE(EvaluatedObject)) - 1) else EvaluatedObject end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions