This project is read-only.
1

Closed

2.0 Beta 2 :: Value cannot be null

description

While testing 2.0 Beta 2, I notice when a reply sent via Outlook which uses the same email address as the queue for both the from and cc fields, an error is thrown:
 
Unhandled exception occurred in ProcessQueue
 
Exception:
Value cannot be null.
Parameter name: source
 
Stack trace:
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at QueueManager.Service.QueueMonitor.ContinueProcessEmail(QueueSetting queueSettings, Queue queue, IOrganizationService service, Email email, QueueItem item)
at QueueManager.Service.QueueMonitor.ProcessQueue(QueueSetting queueSettings)
 
 
The regarding field is set correctly to the Case, but the email message is not removed from the queue.
 
Any ideas?
 
thanks, Chris.
Closed Oct 18, 2012 at 9:07 PM by Eneuman
This issue has been resolved in Beta 3.

comments

Eneuman wrote Apr 19, 2012 at 8:33 PM

Hi

Could you post the settings you are using and I'll try and reproduce it at my end?

Regards,
Per

ceakin wrote Apr 19, 2012 at 9:23 PM

Hi Per,

First off, I have my email flow setup as:

helpdesk1@contoso.com is setup as a user account in Exchange. A support request is sent to this email address, which is also forwarded to the support engineer group.

There is a Queue setup with this email address.

When an end-user emails helpdesk1@contoso.com, CRM Queue Manager coverts the email into a Ticket.

One of the support engineers could send an email (via Outlook, not via CRM), change their email address From field as heldesk1@contoso.com and CC's helpdesk1@contoso.com. The reply lands back in the queue, gets associated with the original ticket. But, CRM Queue Manager throws the error and stops processing any further emails in the queue.

Is it possible the account lookup is failing on the helpdesk1@contoso.com email address?

And here's my settings:

<appSettings>
<add key="ServerAddress" value="localhost"/>
<add key="OrganizationName" value="contoso"/>
<add key="DiscoveryUri" value="https://crm.contoso.net/XRMServices/2011/Discovery.svc"/>
<add key="OrganizationUri" value="https://crm.contoso.net/contoso/XRMServices/2011/Organization.svc"/>
<add key="HomeRealmUri" value=""/>
<add key="UserName" value="qmuser1" />
<add key="Password" value="<password>" />
<add key="Domain" value="contoso" />
<add key="EndpointType" value="ActiveDirectory"/>
<add key="UserPrincipalName" value=""/>
<add key="logeventlog" value="true" />
<add key="logerrornotify" value="" />
<add key="logwarningnotify" value="" />
<add key="lognotifyfrom" value="Automatic Mailer &lt;noreply@contoso.net&gt;" />
<add key="logtofile" value="" />
</appSettings>
<add name="TestQueue"
     queueid="7EE24594-4444-E113-9999-000D298F553C"
     tempqueueid="7EE24594-4444-E113-9999-000D298F553C"
     interval="60"
     tempqueueage="0"
     matchcaseticketnumber="true"
     ignorelist="out of office;autoreply;auto reply"
     moveignored="false"
     createcontact="true"
     allowonlyto="false"
     allowonlyto-reply="false"
     allowonlyto-notify="notify@contoso.net"
     allowonlyto-from="Automatic Mailer &lt;noreply@contoso.net&gt;"
     allowonlyto-template="c:\fullpath\allowto.htm"
     allowonlyto-subject="Support notification"
     sendverificationmail="false"
     verificationmail-from="Automatic Mailer &lt;noreply@contoso.net&gt;"
     verificationmail-bcc="notify@domain.com"
     verificationmail-subject="Welcome to the Support Desk"
     verificationmail-template="c:\fullpath\verify.htm"
     verificationmail-usehtml="true"
     verificationmail-url="http://support.domain.com/ClientInformation.aspx"
     sendcasemail="false"
     casemail-from="Automatic Mailer &lt;noreply@contoso.net&gt;"
     casemail-fromtype="queue"
     casemail-notify=""
     casemail-subject="Case {ticketnumber} has been created for you"
     casemail-template="c:\fullpath\case.htm"
     casemail-usehtml="true"
     updatecasedescription="true"
     caseattributes=""
     resolveparent="true"
     resolveparent-notify=""
     resolveparent-from="Automatic Mailer &lt;noreply@contoso.net&gt;" 
     sendcasenotificationmail="false"
     casenotification-from="Automatic Mailer &lt;noreply@contoso.net&gt;"
     casenotification-to="notify@contoso.net"
     casenotification-subject="{ticketnumber}: A new case has been created"
     casenotification-template="c:\fullpath\casenotify.htm"
     casenotification-usehtml="true"
     removerepliesfromqueue="true"
     mapcasetoaccount="true"
     parentaccountmissing="true"
     setresponsiblecontact="true"
     />

jvanleenen wrote Jul 4, 2012 at 2:04 PM

I have the same issue. Is there already a solution for this issue?

Regards,

Johan

wrote Oct 18, 2012 at 9:07 PM

wrote Feb 14, 2013 at 1:55 AM

wrote May 16, 2013 at 7:54 AM