Skip to main content

Data Factory

Needs Votes

Increment Variable Value

Vote (2) Share
Andy Leonard's profile image

Andy Leonard on 04 Jan 2025 18:32:04

I would like to be able to increment the value of a numeric variable in a single activity.


Currently, when I attempt to increment the value of a variable using a Set Variable activity, I get an error, "The expression contains self referencing variable. A variable cannot reference itself in the expression."


A search reveals a solution that involves using two variables and two Set variable activities. That feels clunky to me.