by occasion of something—(formal) because of smth.:
- The debate has to be postponed by occasion of the illness of one of the principle speakers.
on the occasion of something—in connection with some formal event or celebration:
- This was given us as a present on the occasion of our silver wedding.