Skip to content

validate/export fail with "Cannot read properties of undefined (reading 'named')" on minimal single-pipeline repo (CI/CD, Node 20) #754

Description

@arijit219-spec

Summary

Both validate and export commands fail with the same crash
(Cannot read properties of undefined (reading 'named')) even on a
minimal repo containing a single trivial pipeline with no dependencies
(no datasets, linked services, triggers, or credentials). Reproducible
consistently across multiple runs.

Environment

  • @microsoft/azure-data-factory-utilities: ^1.0.0
  • Node.js: v20.20.2
  • Running via GitLab CI/CD (node:20 Docker image, GitLab SaaS Linux runners)
  • Bundle downloaded live from https://adf.azure.com/assets/cmd-api/main.js

Repro steps

  1. Create a repo with the following structure at root:
    factory/adf-rehydrade-demo-dev.json
    pipeline/sample-pipe-line.json
    package.json

  2. factory/adf-rehydrade-demo-dev.json:

   {
       "name": "adf-rehydrade-demo-dev",
       "properties": {},
       "location": "centralindia"
   }
  1. pipeline/sample-pipe-line.json:
   {
     "name": "sample-pipe-line",
     "type": "Microsoft.DataFactory/factories/pipelines",
     "properties": {
       "description": "sampleWait desc",
       "activities": [
         {
           "name": "sampleWait",
           "type": "Wait",
           "dependsOn": [],
           "userProperties": [],
           "typeProperties": {
             "waitTimeInSeconds": 2
           }
         }
       ],
       "annotations": []
     }
   }
  1. Run:
   node node_modules/@microsoft/azure-data-factory-utilities/lib/index.js validate "<repoRoot>" adf-rehydrade-demo-dev

Actual result Error

CmdApiApp: Starting to validate all resources
Validator: Start validation for: pipeline - sample-pipe-line
ERROR === CmdApiApp: Failed to run resource validation. Error: {"stack":"TypeError: Cannot read properties of undefined (reading 'named')\n at _o. (/.../downloads/main.js:2:15910060)\n at Generator.next ()\n at r (/.../downloads/main.js:2:14326978)","message":"Cannot read properties of undefined (reading 'named')"}
=====ERROR=====
Error: Command failed: node .../downloads/main.js validate adf-rehydrade-demo-dev
Execution failed with exit code: 255

Actual result

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