I am having a heck of a time getting the RD just right on my wife's bike. The upper jockey pulley grabs at the chain making a clicking noise when in the big ring and smaller cogs (7th, 8th, 9th). If I turn in (slacken) the barrel adjuster I can make the noise go away but then I can't select the largest cog (1st) in either chainring. When I turn out the barrel adjuster to tighten the cable I so that I can select 1st, I go back to having the clicking noises in the smaller cogs. When you look closely and turn the crank slowly, you can see the chain stick to the pulley in certain positions as it threads through the derailleur.
I examined the jockey pulley and there are no burrs or odd teeth. I would switch the upper and lower pulleys or flip them over but they makings indicating upper/lower and direction of travel.
I have the upper and lower limit screws, I believe, adjusted correctly because by with the proper cable tension you can get to 1st without shifting into the spokes and you can select 10th without going off the bottom.
I fooled with the the "B" screw (or whatever SRAM calls it) and that didn't change anything so I returned that to a setting that is fairly close to the biggest cog but not touching.
I made sure the RD hanger was tight. I don't have a hanger alignment gauge but the bike has never been over or hit. If something is tweaked, I don't have the tools to measure that.