Dynamic route returning 404 error
I ran into a similar problem with categories and routing a while ago and Marion's answer in this thread worked for me

How would I include the first category slug in the section&#39;s entry URL format?

Darrell