Hello,
I have a survey with several complex calculations in it, many of which are defined in javascript functions. I see this warning when I am in Survey123 Connect, but I have not been able to identify where this circular reference is. Are there any tips to being able to identify where this issue might be in the XLS form?
I've tried error checking within the formulas tab or Excel but the circular references option is greyed out.
Thanks!
Solved! Go to Solution.
Hello @Katie_Clark,
Circular references typically occur when there is an expression in the calculation column that references itself. Another spot would be using the indexed-repeat() or another aggregate function within the repeat itself.
Unfortunately since Survey123 uses the XLSForm specification instead of Excel formulas the formula processing tools that are available in Excel won't work.
Hello @Katie_Clark,
Circular references typically occur when there is an expression in the calculation column that references itself. Another spot would be using the indexed-repeat() or another aggregate function within the repeat itself.
Unfortunately since Survey123 uses the XLSForm specification instead of Excel formulas the formula processing tools that are available in Excel won't work.
@ZacharySutherby Thanks so much for your response and additional information about how the XLS Form works.
In my case, it was the indexed-repeat as you mentioned. I'm using position(..) in a repeat question to create ID's for each entry based on it's position in the repeat. This works as intended in the survey and isn't causing issues as far as I can tell.