@fedaro is right on the cationic incompatibility- sometimes you can overcome this by including a high amount of salt (>2%) in a formulation and adding the polymers far apart from each other in the process, but that comes with its own issues.
Other than cationics, xanthan is pretty tolerant of many situations and ingredients. There are a few unique situations I can think of- for example, some xanthan gum is treated with cellulase to clarify it, so if you are using a cellulose-based polymer in a formula with xanthan gum you should ask your supplier about cellulase activity. In high pH (~9+), xanthan can gel in the presence of polyvalents like Ca2+ or Al3+.
What you described sounds like an issue with dispersion of the gum. You can either use high shear to break up any clumps, or next time try creating a premix of xanthan gum in a polyol like glycerin before you add it to the water.