Here's a code snippet of the code in question:
if(stream)
{
//Temporarily upload the stream to get the file ID. This is used in the creation of the DIXF project referred to as the sample file ID
SysDictClass uploadStrategyDictClass = new SysDictClass(className2Id('FileUploadTemporaryStorageStrategy'));
FileUploadTemporaryStorageStrategy fileUploadStrategy = uploadStrategyDictClass.makeObject() as FileUploadTemporaryStorageStrategy;
FileUploadTemporaryStorageResult result = fileUploadStrategy.uploadFile(stream, fileName);
SharedServiceUnitFileID SharedServiceUnitFileID = result.getFileId();
DMFEntityBase::addEntityForProcessingV3(dmfDefinitionGroupName,
groupDescription,
",
dmfDataSource.SourceName,
SharedServiceUnitFileID, //Sample File ID
"@SYS6047,
NoYes::No, //Skip Staging
NoYes::No, //No = Import, Yes = Export
"",
NoYes::No,
DMFRefreshType::FullPush);
//Setting up an execution Id to link the DIXF Project to an execution
DMFExecutionId executionId = DMFUtil::setupNewExecution(dmfDefinitionGroupName);
//Begin the execution on the DIXF Project
DMFQuickImportExport::doPGImport(dmfDefinitionGroupName, executionId, true, true);
//Delete the Temporary storage variable
result.deleteResult();
}
This is showing status of Staging Table as "Ended" and Target as "Didn't Run". We have also tried the following and both Staging and Target are showing as "Didn't Run":
DMFUtil::executeDataProjectImport(dmfDefinitionGroupName, executionId, true, false, false);