Search Results fnd_flex_validation_rule_lines




Overview

The FND_FLEX_VALIDATION_RULE_LINES table is a core data object within the Application Object Library (FND) module of Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2. It functions as the child table that stores the individual elements or conditions that collectively define a cross-validation rule for a key flexfield. Cross-validation rules are critical business logic components that restrict the combination of segment values a user can enter into a flexfield, thereby ensuring data integrity and adherence to organizational policies. This table, owned by the APPLSYS schema, holds the detailed criteria that make up each rule defined in the parent FND_FLEX_VALIDATION_RULES table.

Key Information Stored

The table's primary key is RULE_LINE_ID, which uniquely identifies each rule element. Its structure is fundamentally tied to the parent validation rule through a composite foreign key relationship. This relationship is established via the columns APPLICATION_ID, ID_FLEX_CODE, ID_FLEX_NUM, and FLEX_VALIDATION_RULE_NAME, which together reference a specific rule in FND_FLEX_VALIDATION_RULES. While the exact segment-level condition columns are not detailed in the provided metadata, typical columns in this table would define the rule logic, such as the segment number (SEGMENT_NUM), an operator (e.g., '=', 'BETWEEN'), and the allowed or excluded value or range. Each row effectively states a condition like "Segment 1 must equal '01'" for a given rule.

Common Use Cases and Queries

This table is primarily accessed for auditing, troubleshooting, and impact analysis related to flexfield validation. Common scenarios include identifying all conditions for a specific rule before a change, or diagnosing why a valid segment combination is being rejected by the application. A typical query would join to the parent rules table to retrieve a human-readable rule definition.

  • Sample Query to List Rule Conditions:
    SELECT r.flex_validation_rule_name, r.description, l.*
    FROM fnd_flex_validation_rules r,
    fnd_flex_validation_rule_lines l
    WHERE r.application_id = l.application_id
    AND r.id_flex_code = l.id_flex_code
    AND r.id_flex_num = l.id_flex_num
    AND r.flex_validation_rule_name = l.flex_validation_rule_name
    AND r.flex_validation_rule_name = '&RULE_NAME';
  • Reporting Use Case: Generating a comprehensive report of all cross-validation rules and their detailed logic for a specific key flexfield (e.g., the Accounting Flexfield) to support internal controls documentation.

Related Objects

FND_FLEX_VALIDATION_RULE_LINES is centrally connected to several other key flexfield validation objects. Its primary relationship is with the parent table FND_FLEX_VALIDATION_RULES, which stores the rule's header information. Furthermore, it has child relationships with two tables that manage rule exceptions: FND_FLEX_EXCLUDE_RULE_LINES and FND_FLEX_INCLUDE_RULE_LINES. These tables reference the RULE_LINE_ID to store specific value combinations that are explicitly excluded from or included in a rule's effect, providing finer control over the validation logic. Direct manipulation of this table is not standard practice; modifications should be performed through the official flexfield administration forms or APIs.