(Cf. Di Francesco et al, Conformal Field Theory, pp. 40-41) I am trying to derive eqn. (2.142) or
$$\delta S = \int d^d x ~\omega_a~\partial_{\mu}j^{\mu}_a \tag{2.142}$$
in the book CFT by Di Francesco et al. I have obtained the final expression
$$\delta S = \int d^d x\,\partial_{\mu} \omega_a \left[\frac{\delta F}{\delta \omega_a} \frac{\partial L}{\partial(\partial_{\mu}\Phi)} - \frac{\delta x^{\nu}}{\delta \omega_a}\partial_{\nu}\Phi \frac{\partial L}{\partial(\partial_{\mu}\Phi)} + \frac{\delta x^{\mu}}{\delta \omega_a}L\right] +$$ $$ \omega_a\left[ \frac{\delta F}{\delta \omega_a}\frac{\partial L}{\partial \Phi} + (\partial_{\mu}\frac{\delta F}{\delta \omega_a})\frac{\partial L}{\partial(\partial_{\mu}\Phi)} - \partial_{\mu} (\frac{\delta x^{\nu}}{\delta \omega_a})\partial_{\nu}\Phi \frac{\partial L}{\partial(\partial_{\mu}\Phi)} + \partial_{\mu} (\frac{\delta x^{\mu}}{\delta \omega_a})L\right]\tag{A}$$
and indeed the terms multiplying $\partial_{\mu}\omega_a$ there are exactly $j^{\mu}$ as obtained in eqn. (2.141). The problem I am having is that the terms multiplying $\omega_a$ don't appear to vanish. (The first two do as a consequence of the classical equations of motion but the last two do not)
The method Di Francesco employs is to assume a position dependent parameter $\omega = \omega(x)$, then make it constant at the very end.
So, if we make $\omega$ independent of position at the end (i.e impose the rigid transformation), then $$\partial_{\mu}\omega_a = 0\tag{B}$$ identically. In which case, we are left with $$\omega_a\int d^dx [..] = 0,\tag{C}$$ by further considering a symmetry transformation, where [..] are the terms multiplying $\omega$ in the expression above.
So I am not sure how Di Francesco is left with
$$ \delta S~=~-\int d^d x~ j^{\mu}_a ~\partial_{\mu} \omega_a \tag{2.140}.$$
The paragraph preceding eqn. (2.140) seems to be contradictory to me (in particular the first and last sentence) and if indeed he is imposing a rigid transformation then shouldn't $\partial_{\mu}\omega_a = 0$ be zero in (2.140)?