Agree with Daniel, it seems to be a security issue (the user you're using is not authorized to refresh data).
You do not have sufficient rights to refresh the query. Some objects are not available to your user profile. Contact your administrator to request the necessary rights. (IES 00002)
Anthony