Hi Team,
I am creating a workflow for ADF deployment on GitHub and encountering an issue when running the npm validate command. The validation fails with the following error:
ERROR === Validator: Unhandled validation error for: pipeline - ***, error: {"stack":"TypeError: Cannot read properties of undefined (reading 'parameters')\n at vt.getConceptParameters (/downloads/main.js:2:15899430)\n at vt.resolve (downloads/main.js:2:15897444)\n at jt._getResolution (downloads/main.js:2:15959027)\n at Object.resolve (downloads/main.js:2:15961112)\n at co.<anonymous> (/downloads/main.js:2:16005464)\n at Generator.next (<anonymous>)\n at r (/downloads/main.js:2:14419893)","message":"Cannot read properties of undefined (reading 'parameters')"}
Following are the commands i am using
npm install
npm run build validate `pwd` ${{ inputs.datafactory_id }}
npm run build export `pwd` ${{ inputs.datafactory_id }} ArmTemplateOutput
However, the same commands work successfully in Jenkins, and validation from the ADF UI also passes. I am unsure why this issue occurs only on GitHub.
I have tested with multiple Node.js and @microsoft/azure-data-factory-utilities versions as follows:
On GitHub:
- Node version: 20.x with
@microsoft/azure-data-factory-utilities 1.0.0 and 1.0.3
- Node version: 22.x with
@microsoft/azure-data-factory-utilities 1.0.0 and 1.0.3
On Jenkins:
- Node version: 22.15.1 with
@microsoft/azure-data-factory-utilities 1.0.0
Could you please help me identify why the validation fails only on GitHub? Any guidance would be appreciated.