It is reasonable to your dog to vomit when dog ate something that shouldn't be eaten.
I don't know why your dog is eat the wall, as you didn't give much information about this. I could recommand you to notice, is he borad? or any thing has change recently? You might able to find out why your dog eat the wall?