That actually happend to me on a job the vacuum was ommiting a very bad dog smell luckily I had a second vaccum.
What I did was to R/R the bag like mentioned and I also used a product similar to odorcide on the hepa filter I actually soaked the filter with this and vacuum and the smell was not only gone but the room smelled great from the air going through the filter.