Error : staging to target mapping is not done
Solution :
static void regenerateDMFTargetMapping(Args _args)
{
DMFTargetXMLToEntityMap dmfTargetXMLToEntityMap;
DMFEntity dmfEntity;
// delete all target Mappings
ttsBegin;
delete_from dmfTargetXMLToEntityMap;
ttsCommit;
// Regenerate Target Mapping for all Entities
while select dmfEntity
{
DMFTargetXMLToEntityMap::generateMapping(dmfEntity);
}
info("All Done!");
}
Note : Above job will run for all entities. If you want run only particular one entity add where condition in Regenerate Target Mapping.
Solution :
static void regenerateDMFTargetMapping(Args _args)
{
DMFTargetXMLToEntityMap dmfTargetXMLToEntityMap;
DMFEntity dmfEntity;
// delete all target Mappings
ttsBegin;
delete_from dmfTargetXMLToEntityMap;
ttsCommit;
// Regenerate Target Mapping for all Entities
while select dmfEntity
{
DMFTargetXMLToEntityMap::generateMapping(dmfEntity);
}
info("All Done!");
}
Note : Above job will run for all entities. If you want run only particular one entity add where condition in Regenerate Target Mapping.