Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

adf-validation-rules

БесплатноБез исполняемых скриптовНе проверен

ADF activity nesting rules, limits, and validation gotchas. PROACTIVELY activate for: (1) ADF activity nesting rules (ForEach inside If, Switch, Until), (2)…

JosiahSiegelот JosiahSiegel★ 67 звёзд на GitHub17 установок в других каталогах

Об этом скилле

Azure Data Factory Validation Rules and Limitations

🚨 CRITICAL: Activity Nesting Limitations

Azure Data Factory has STRICT nesting rules for control flow activities. Violating these rules will cause pipeline failures or prevent pipeline creation.

Supported Control Flow Activities for Nesting

Four control flow activities support nested activities:

  • ForEach: Iterates over collections and executes activities in a loop
  • If Condition: Branches based on true/false evaluation
  • Until: Implements do-until loops with timeout options
  • Switch: Evaluates activities matching case conditions

✅ PERMITTED Nesting Combinations

Parent Activity Can Contain Notes
ForEach If Condition ✅ Allowed
ForEach Switch ✅ Allowed
Until If Condition ✅ Allowed
Until Switch ✅ Allowed

❌ PROHIBITED Nesting Combinations

Parent Activity CANNOT Contain Reason
If Condition ForEach ❌ Not supported - use Execute Pipeline workaround
If Condition Switch ❌ Not supported - use Execute Pipeline workaround
If Condition Until ❌ Not supported - use Execute Pipeline workaround
If Condition Another If ❌ Cannot nest If within If
Switch ForEach ❌ Not supported - use Execute Pipeline workaround
Switch If Condition ❌ Not supported - use Execute Pipeline workaround
Switch Until ❌ Not supported - use Execute Pipeline workaround
Switch Another Switch ❌ Cannot nest Switch within Switch
ForEach Another ForEach ❌ Single level only - use Execute Pipeline workaround
Until Another Until ❌ Single level only - use Execute Pipeline workaround
ForEach Until ❌ Single level only - use Execute Pipeline workaround
Until ForEach ❌ Single level only - use Execute Pipeline workaround

🚫 Special Activity Restrictions

Validation Activity:

  • ❌ CANNOT be placed inside ANY nested activity
  • ❌ CANNOT be used within ForEach, If, Switch, or Until activities
  • ✅ Must be at pipeline root level only

🔧 Workaround: Execute Pipeline Pattern

The ONLY supported workaround for prohibited nesting combinations:

Instead of direct nesting, use the Execute Pipeline Activity to call a child pipeline:

{
  "name": "ParentPipeline_WithIfCondition",
  "activities": [
    {
      "name": "IfCondition_Parent",
      "type": "IfCondition",
      "typeProperties": {
        "expression": "@equals(pipeline().parameters.ProcessData, 'true')",
        "ifTrueActivities": [
          {
            "name": "ExecuteChildPipeline_WithForEach",
            "type": "ExecutePipeline",
            "typeProperties": {
              "pipeline": {
                "referenceName": "ChildPipeline_ForEachLoop",
                "type": "PipelineReference"
              },
              "parameters": {
                "ItemList": "@pipeline().parameters.Items"
              }
            }
          }
        ]
      }
    }
  ]
}

Child Pipeline Structure:

{
  "name": "ChildPipeline_ForEachLoop",
  "parameters": {
    "ItemList": {"type": "array"}
  },
  "activities": [
    {
      "name": "ForEach_InChildPipeline",
      "type": "ForEach",
      "typeProperties": {
        "items": "@pipeline().parameters.ItemList",
        "activities": [
          // Your ForEach logic here
        ]
      }
    }
  ]
}

Why This Works:

  • Each pipeline can have ONE level of nesting
  • Execute Pipeline creates a new pipeline context
  • Child pipeline gets its own nesting level allowance
  • Enables unlimited depth through pipeline chaining

🔢 Activity and Resource Limits

Pipeline Limits

Resource Limit Notes
Activities per pipeline 80 Includes inner activities for containers
Parameters per pipeline 50 -
ForEach concurrent iterations 50 (maximum) Set via batchCount property
ForEach items 100,000 -
Lookup activity rows 5,000 Maximum rows returned
Lookup activity size 4 MB Maximum size of returned data
Web activity timeout 1 hour Default timeout for Web activities
Copy activity timeout 7 days Maximum execution time

ForEach Activity Configuration

{
  "name": "ForEachActivity",
  "type": "ForEach",
  "typeProperties": {
    "items": "@pipeline().parameters.ItemList",
    "isSequential": false,  // false = parallel execution
    "batchCount": 50,       // Max 50 concurrent iterations
    "activities": [
      // Nested activities
    ]
  }
}

Critical Considerations:

  • isSequential: true → Executes one item at a time (slow but predictable)
  • isSequential: false → Executes up to batchCount items in parallel
  • Maximum batchCount is 50 regardless of setting
  • **Cannot use Set Variab
Полный SKILL.md на GitHub

Установить adf-validation-rules в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/linked-services.mdreferences/nesting-rules.mdreferences/resource-limits.md

FAQ

Что делает скилл adf-validation-rules?

ADF activity nesting rules, limits, and validation gotchas. PROACTIVELY activate for: (1) ADF activity nesting rules (ForEach inside If, Switch, Until), (2) ForEach limitations (no nested ForEach, item limits), (3) pipeline validation errors and ARM-template build failures, (4) linked service authentication issues, (5) Set Variable restrictions in ForEach, (6) Data Flow constraints (transformation limits, source/sink rules), (7) parameter and variable scope, (8) max activities per pipeline, (9) pipeline concurrency limits. Provides: nesting rule matrix, activity limit reference, validation error catalog, and refactoring patterns for unsupported nesting.

Как установить скилл adf-validation-rules?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл adf-validation-rules запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить adf-validation-rules с