Domain cache credential error when running query