CreateNewDiscussion error

Aug 19, 2009 at 2:00 AM
Edited Aug 19, 2009 at 11:46 PM

Hi Lefortludovic,

I have created new discussion board list based on your EDB.  I have enabled the list to  receive  emails.

In the  emailReceived event ,  I am calling  following method to create new discussion .

SPListItem newDiscussion = SPUtility.CreateNewDiscussion(list.Items, "new message");

I am getting following error :  Value does not fall within the expected range

Please let me know why this happening and how to fix it.


P.S. I don't get this error for out of box discussion Board.