"Carol O'Neir's Hundredth Dream"
is a short story by Diana Wynne Jones.
Pampered Carol can create dreams which other people can buy and enjoy. But something is blocking her all-important 100th dream. Only Chrestomanci can sort out the dream characters for Carol.
It is in two short story collections: Mixed Magics and Dragons & Dreams.