This project is read-only.

Orchard.Comments Upgrade => Can't Parse Spam as CommentStatus

Topics: Troubleshooting
Jun 25, 2013 at 12:41 PM
If you upgrade to 1.x (will soon be 1.7), and you can't upgrade the Orchard.Comments, see your Logs in App_Data.
If you have this message :

Orchard.Data.Migration.DataMigrationManager - Error while running migration version 3 for Orchard.Comments
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NHibernate.HibernateException: Can't Parse Spam as CommentStatus ---> System.ArgumentException: Requested value 'Spam' was not found.

This is because you have some items in the table Orchard_Comments_CommentPartRecord with CommentStatus = 'Spam' and this status is not anymore in the Enum.

Delete the these lines and you should be able to run the migration.
Jun 25, 2013 at 7:24 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.