Azure / Azure/Azure-DataFactory
validate/export fail with "Cannot read properties of undefined (reading 'named')" on minimal single-pipeline repo (CI/CD, Node 20)
- Dominant language
- PowerShell
- Stars
- 529
- Forks
- 623
- PR merge metrics
- No merged PRs in 30d
Description
## 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`:
```json
{
"name": "adf-rehydrade-demo-dev",
"properties": {},
"location": "centralindia"
}
```
3. `pipeline/sample-pipe-line.json`:
```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": []
}
}
```
4. Run:
```bash
node node_modules/@microsoft/azure-data-factory-utilities/lib/index.js validate "" 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
Contributor guide
Assessment
This issue has not been assessed yet.