The grainy texture will come if the pumpkin puree is overcooked. If this happens, not all is lost. You can use a strainer to get out any lumps in the puree and still use it just fine! I also like to strain mine if I'm wanting it to be super smooth for pies or things like that.