Forum Discussion
Suddenly "Expression.Error: A cyclic reference was encountered during evaluation."
- 4 years ago
Hi Phil,
The only place I can see that could create circular references here is your Parameters that you're using to identify the workbooks in the Source steps.
Try and materialise the parameters somewhere, or check in the parameter settings, to see exactly what they are pointing to, or post the parameter details here if you're not sure what you're looking for.
Pete
Hey Pete,
thanks a lot for your quick reply, much appreciated!
Turned out that the parameter was indeed the culprit; for reasons unknown to me, there was no current value selected. Once I selected it, the query was fixed.
See here:
BR
Phil
Cool, glad it's sorted.
As a completely unrelated bonus hack, you can change the second argument in your Excel.Workbook source function to 'true' to avoid having to do the Promote Headers step:
// From this:
Source = Excel.Workbook(Parameter1, null, true),
// To this:
Source = Excel.Workbook(Parameter1, true, true),
I like tidy code! 🙂
Pete