Synapse workspace deployment node-js error ERR_INVALID_ARG_TYPE

Simon Plancke 25 Reputation points
2023-11-27T12:05:22.12+00:00

Hi

I am working on a CI/CD DevOps pipeline for Synapse Analytics. The Synapse workspace is integrated in my git repo, and I want to use task 'Synapse Workspace Deployment' with operation 'validate' to generate the ARM templates. The task is configured as follows:

User's image

The DevOps pipeline, however, fails on this task with the following error:User's image

Based on the error and some additional research, the error seems to originate from an internal node.js function. I do, however, have no experience in node.js so this could be an inaccurate conclusion. For full information, the pipeline uses a self-hosted Agent Pool with node.js version v20.10.0.

When running the same task using the windows-latest Agent Pool, the task executes without any problem. Based on what I could find, this Agent pool uses node.js version v18.18.2. This is (obviously) an earlier version than the one used on the self-hosted agent pool mentioned earlier.

Putting everything together, I feel like the problem lies with the version of node.js installed on the Agent pool and a "mismatch" with the main.js file needed to generate the ARM templates. This makes me wonder the following: Could it be possible that certain Node.JS versions do not support the 'Synapse Workspace Deployment@2' task for the validate operation? If so, what versions do support it and which are recommended? If this is not the case, what would be another reason for this error and how could it be solved?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,631 questions
{count} vote

Accepted answer
  1. phemanth 8,165 Reputation points Microsoft Vendor
    2023-11-28T08:31:56.94+00:00

    @Simon Plancke

    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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful