This discussion is archived
3 Replies Latest reply: Sep 10, 2013 12:03 AM by Francisco Amores RSS

Unable to get the correct Import Status through FDM Event Script

976790 Newbie
Currently Being Moderated

Hi everyone out there,

 

I am using the below script in the AftImportFile event which is taken from Accelerators Get 1 - Import Status

 

Dim lngStateImport

Dim ImpMsg

 

'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"

 

Else

ImpMsg = Now() & " - Import Failed"

 

End If

End With

 

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!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points