Hi there
Have you properly added starts and stop transitions? Can you please show your animgraph?
Have you checked this free plugin that comes with a coded animation blueprint? The developer has a discord server to support you and his YT channel has several tutorials:
AGR PRO in Code Plugins - UE Marketplace (unrealengine.com)
This video shows how to integrate root motion animations:
You may want to watch the full series to understand better:
Also, take a look at this series, it uses root motion for everything, it might help you.