I have a script that creates a new book and adds a chapter to it by defining a New BookComponent Object. However, when I try to set up a Table of Contents for the new book, I get the error "Couldn't update this book, because it contains no openable non generated files." I set the BookComponent.IsGeneratable property to 0, but that doesn't seem to resolve the error.
Update:
The problem was that I was setting the BookComponentType property as Constants.FV_BK_TEXT. Changing it to Constants.FV_BK_FILE solved the issue.
Message was edited by: Varun Shah