So i'm exporting an entity by code (incremental push) using batch process every 5 minutes and each time this file gets exported i send it to a third system.
What is happening is that sometimes i get empty files sent because there is no change that happened during these 5 minutes. How can i prevent sending empty files? how can i check it?
fileId = exporter.exportToFile(entityName,
_definitionGroupName,
'', //Optional: ExecutionID
"XML-Element", //Optional::SourceName
#FieldGroupName_AllFields, //Optional field selection
query.pack(), //Optional: Filtered Query
curExt() //Optional: DataAReaId
);