We have a job that occasionally does not generate a single record (all are skipped in datamapper). If we run Create Job we get an error “There are no content items to process”.
How can we check the number of generated records before Create Job task?
After either the Execute Data Mapping task or Create Print Content task, you can use the Metadata Attribute Number of documents in Job (GetMeta(SelectedDocumentCount[0], 11, Job)) to check the record count.
var recordCount = Watch.ExpandString("GetMeta(SelectedDocumentCount[0], 11, Job)");
OR
var metadata = new ActiveXObject("MetadataLib.MetaFile");
metadata.LoadFromFile(Watch.GetMetadataFileName());
var recordCount = metadata.Job().SelectedDocumentCount();