– V10 Error in the FilledDataRated method. Object reference not defined for an object instance & # 39;

When you use the ApprovedData method for a document to have an account
"The object reference is not set to an object instance", but it works fine for invoices and receipts.

docNC = engine.Dates.Documents.PreenCheckData (docNC);