Hello everyone
Any one able to help me with this one?
I’m getting a SQL error when trying to calculate the job number.
TEAGLE-630ShiftReportBAQ.baq (38.5 KB)
Error:
Thanks
Aaron
Hello everyone
Any one able to help me with this one?
I’m getting a SQL error when trying to calculate the job number.
TEAGLE-630ShiftReportBAQ.baq (38.5 KB)
Error:
In SubQuery1, the Calculation for Jobs references {SubQuery3}. When you include a subquery in a calculation the subquery can only return 1 value.
@aarong I have got to say that the subquery 3 is just flapping out in the breeze and doesn’t appear to be being used at all, not that I can see anyway.
It’s referenced in TopLevel through a calculated field.
@Doug.C What do you mean? I’ve used this method previously and it’s worked fine. 
I’m assuming by the coding that SubQuery3 is supposed to return one cell with a bunch of Jobs listed between <Calculated_JobNum></Calculated_JobNum>?
Indeed
Have you removed the filtering?
You seem to be missing the FOR XML PATH clause.
I’ve got no active trans in my data setting that to 0 gives me stuff.
How could I be so dumb!
I got the same error when I tried to run it in SQL without that specified.
Thanks I just learnt something 