Hi everyone out there,
I am using the below script in the AftImportFile event which is taken from Accelerators Get 1 - Import Status
'Initalize Process State to test (See enmProcessState)
lngStateImport = 1
With API.MaintenanceMgr.fProcessStatus(API.POVMgr.PPOVLocation, API.POVMgr.PPOVCategory, API.POVMgr.PPOVPeriod)
If .lngStatus = lngStateImport Then
ImpMsg = Now() & " - Import Successful"
ImpMsg = Now() & " - Import Failed"
I am getting only Import Failed as Status.
The lngStatus display only 0 in case of both Successful and Failed status.
It should dislplay 1 for Success and 2 for Failure.
The same script show the correct status numeric value for Validate, Export and Load stages
Need help guys on this! thanksssssss!
If you look at chapter 11 in the FDM API guide, you will see that at the point the file is imported, the FDM import process has not completed. Following the import there is the mapping and process logic steps amongst others. All the file import step does is load the data form the flat file into a temprary table. the following steps then perform the the mappings etc and load the data to the FDM data table. If you want to check the import status you need to select an event that occurs later in the import sequence, or as the previous repy states do it in the ImportAction script, but again at the appropriate point.