Collection insert error: Report conclusion is required

Hi all,

I’m new to meteor and am developing a new app.
I have a page where I submit a simple form, which should add a record in a collection.
Everything worked well until recently, now I get this message when executing the collection insert:

“Error: Report conclusion is required”.

I see no logs neither in the browser console, nor in the server console.
I googled this error but found no match.

Implementation info:
Insert event is triggered by the form submit event:

    var examId = Exams.insert(newExam, function(err, result) {
        if (err) {
            return alert(err);
        }

       .... additional code ....

        // after insert, return home
        Router.go('/');
    });

The error is raised on the Exams.insert call.
This is a mongo collection.
Anyone able to help me out here?

Cheers,
Ricardo

Do you have a schema? If you do that could be the problem.

Are you doing any validation? If so that can be a issue. Check the schema or your form validations

Hi guys,

Thanks for the comments. Indeed it was something very simple: a field in schema didn’t have the “optional” tag, and I was inserting an object that didn’t contain this parameter. It just looked strange to me that the error raised had no indication of what was going on.

In any case, thanks for poiting into the right direction.