The modem seems to always give an error when the AT#FTPTYPE=I command is issued.

Make sure that you issue the command as follows:

AT#FTPTYPE="I" ( Make sure there are quotation marks around the I )