CFExchangemail Error - Appointment cannot be cast as EmailMessage

Engaged ,
May 04, 2018 May 04, 2018

Copy link to clipboard


We have a scheduled task that runs periodically to "harvest" emails out of an Exchange inbox.  It has run well for quite a while.  Recently we're getting this error: cannot be cast to

The error appears to be getting generated within the CFExchangemail tag, itself.  Our guess is that something in the inbox is cast as an Appointment rather than mail but in looking directly at the Inbox on exchange we see nothing amiss.  We've cleared out the whole inbox and calendar of this account but the error continues.

This appears to only affect the Inbox.  I can query other folders using CFExchange with no problems.

Any ideas?

Here's the tag call where the error occurs (nothing special):


    action = "get"

    name = "FindAccountMail"

    connection = "cxn">

    <cfexchangefilter name="Folder" value="Inbox">

    <cfexchangefilter name="MessageType" value="Mail">








Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation