Thanks For Reaching out MS Q&A
The error you’re encountering could indeed be due to a version mismatch between Node.js and the ‘Synapse Workspace Deployment@2’ task. downgrading Node.js to a version known to be compatible such as
Node.js 18.18.2
Node.js 17.9.1
Node.js 16.20.2
As for the ‘validate’ operation, it’s used to generate the ARM templates based on the specified branch and adds an extra deploy step to deploy only the artifacts from that branch2. This operation is useful when you want to cherry-pick the code that you want to deploy from your lower environment to your target environment, bypassing the manual Publish operation.
If the issue persists after adjusting the Node.js version, it could be beneficial to check the configuration of your ‘Synapse Workspace Deployment’ task. Make sure the operation type is set to 'Validate and Deploy, and the artifacts root folder which has the ARM templates is correctly selected.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.