Salesforce

Directory Scanner - Error Handling (Magic xpi 4.7)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Directory Scanner – Error Handling (Magic xpi 4.7)

The Magic xpi Server Flow Manager checks for errors during the execution of a step. If there is an error in a Directory Scanner component step, the Error Handler is invoked and handles the error.

The first error in the step causes the termination of the step execution. If the step has multiple methods, and an error occurs in one of these methods, all subsequent methods are not executed.

For Directory Scanner steps: While executing any method on the FTP server, if there is a connection error (Socket Exception), the Reconnection Policy (the Number of login retries and Delay between login retries parameters in the FTP Resource) is applied:

  • If the reconnection is successful, then the process is continued.

  • If the reconnection fails, then the process is terminated and an error message is shown in the Monitor.

For Directory Scanner triggers: The Directory Scanner connects to the FTP server to Get the directory listing. If the connection is successful, it processes each file in the list one after the other. If there is a connection error (Socket Exception) while Getting the Directory Listing, the Reconnection Policy is applied:

  • If the reconnection is successful, then a message is shown in the Monitor and the process is continued.

  • If the reconnection fails, then a message is shown in the Monitor and the Directory Scanner trigger is delayed for the Polling Interval (as specified in the configuration) and continues for the next processing cycle.

The error codes for the Directory Scanner component are listed below. You can also use Magic xpi's General Component Errors with the Directory Scanner component. The codes are returned to the Magic xpi Server in the Invocation program’s Error Code parameter.

Error Code

Description

250

Java Exception

251

FTP server errors

252

Data validity errors

Error code 252 in the Directory Scanner indicates a permission problem. This means you need to check if Magic xpi can delete, write, or rename files in the relevant locations.

This error also appears when there is a file that is locked by another system while Magic xpi tries to process it.

253

FTP(SSL) connection has failed

254

Failed to load Server Certification

255

Failed to load Client Certification

256

Failed to load Client Password

257

FTP connection has failed

Related Topics

Reference
Attachment 
Attachment