Patent ID: 8619288

Claim:
A communication apparatus which communicates with an image processing apparatus including a reading unit for reading an image on a document to generate image data based on the read image, the communication apparatus comprising: a receiving unit configured to receive from the image processing apparatus a process definition file defining details of reading processing to be performed by the reading unit and details of transmission processing for transmitting the image data generated by the reading unit, and the image data generated by the reading unit according to definitions described in the process definition file; a first determination unit configured to determine whether the received process definition file is a usable process definition file; a transmission unit configured to transmit the received image data according to the definitions described in the received usable process definition file; a second determination unit configured to determine, when an error occurs in image data transmission by the transmission unit, whether the error is caused by the definitions described in the usable process definition file; a requesting unit configured to request a source of the usable process definition file to correct the usable process definition file when the second determination unit determines that the error is caused by the definitions described in the usable process definition file, wherein the requesting unit does not request the source of the usable process definition file to correct the usable process definition file when the second determination unit determines that the error is not caused by the definitions described in the usable process definition file; and a registration unit configured to register the usable process definition file as an unusable process definition file according to a process ID associated with the usable process definition file when the second determination unit determines that the error is caused by the definitions described in the usable process definition file, wherein when the first determination unit determines that the received process definition file is not usable, transmission processing is canceled.