While trying to publish my changes in ADF I get the following message:

Error while publishing: Cannot read property 'name' of undefined

I am having a hard time trying to identify the source of the problem since I do not have a variable or env param named 'name'

Would much appreciate any help regarding on how to debug this error.

Thanks

the browser console throws this error:

main.452bdcecf7bf0b79761d.js:2 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined
TypeError: Cannot read property 'name' of undefined
    at Function.t.validateActivityOccurs (main.452bdcecf7bf0b79761d.js:2)
												

Hello @javier and thank you for bringing this to our attention.

Could you please clarify whether you see this message only in the browser console, or whether it also appears in the graphical interface?
Also, is this blocking the publish, or does it publish despite the message?

Thank you for your patience,
Martin

Hello @MartinJaffer-MSFT ,

I am facing same error. I looks like publish button javascript code is failing on git integrated data factory.
I appears in graphical interface as "Error while publishing: Cannot set property 'name' of undefined".

Yes , it is blocking publish.

Thanks in anticipation.

Regards,
Vibhor

Hi @javier ,

I am thinking, probably the issue is not with the pipeline parameters or variables. Wondering , if you have Rule-Based Mapping in any of your DataFlow activity. In the rule-based mapping, you can define columns "name", "type", "stream", "origin", "position" etc. Would you please check the expression (if you have any), there is possibility that it could caused this error. Thanks!

----------

If this helps, please "accept as answer" and "up-vote" it! Thank you!

Could you please let me know how to resolve this issue. I have used column pattern in windows transformation and applied rule based mapping.
Each column that matches : type =='double'
Enter column name expression : $$
Expression : avg($$)

Can you please help me to resolve this issue ?

anonymous userSharma-6930
@javier

I have reached out internally for assistance. This looks similar to (but not the same as) another issue previously resolved.
In the other issue, the cause was a bug in validating the pipeline. The pipeline had an activity where the dataset / linked service had not been chosen.

Hi @MartinJaffer-MSFT ,

We encounter the same issue. While we try to publish from our collaboration branch, we received the error
"Cannot read property of undefined (reading filter) ". So following this topic we tried to find some empty references,
but there we none.
So we literally dropped everything one-by-one, and even with an empty workspace, we still have the same issue.

Could you please help us?

Best regards,

We are facing the exact same issue too as RuudSuithoff-2329, since today evening. We deleted all components and still we are unable to publish. It worked for a brief while (publishing successful) when we changed the collaboration to another branch, but the error is back again. Any help in this regard is highly appreciated