Four questions to ask about each project
HMRC looks at each project on its own facts. If you can answer yes to all four, the project is likely to qualify.
Only companies within the charge to UK Corporation Tax can claim, including loss-making companies that have no tax to pay. Sole traders and partnerships can't.
The advance has to be in overall knowledge or capability in a field of science or technology. Doing something that is new to your company, but already known or readily done elsewhere, doesn't count.
A competent professional in the field couldn't readily say whether it was possible, or how to do it. Problems they could solve with routine work don't count.
The costs must already have been paid when you claim. Keep a record of what you tried, what failed and what you learned: HMRC asks for this detail on the additional information form. A project that fails can still be R&D.