Getting an error "Invalid Argument" when attempting to create a Quick Campaign.
1. Open an account.
2. Under Contact I click 'Create Quick Campaign' - for all record on current page (to help in testing all the contacts are known to me and are real people)
3. Click Next
4. Enter name "Test."
5. Select 'Email', leave everything else as defaults. Click Next.
I then get the "Invalid Argument."
The following error is appears in the Event log on the CRM server
Event ID 1309
Source ASP.NET 2.0.50727.0
Category: Web Event
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 11/2/2009 4:15:09 PM
Event time (UTC): 11/3/2009 12:15:09 AM
Event ID: a05ba89bb4304cbdb4ee49f9ff
5280e4
Event sequence: 10620
Event occurrence: 28
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root-1-1290167
4837546956
3
Trust level: Full
Application Virtual Path: /
Application Path: c:\inetpub\wwwroot\
Machine name: CRM
Process information:
Process ID: 3216
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: CrmArgumentException
Exception message: Condition for attribute 'activitymimeattachment.ac
tivityid':
expected argument(s) of type 'System.Guid' but received 'System.DBNull'.
Request information:
Request URL:
http://crm/(org)/MA/MiniCampaign/iframes/emailForm.aspx Request path: /(org)/MA/MiniCampaign/ifr
ames/email
Form.aspx
User host address: x.x.x.x
User: (My Company)\(me)
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 6
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at Microsoft.Crm.Query.Condit
ionExpress
ion..ctor(
AttributeM
etadata attribute, ConditionOperator conditionOperator, Array values, Boolean isCustom, Guid organizationId)
at Microsoft.Crm.Query.Condit
ionExpress
ion..ctor(
AttributeM
etadata attribute, ConditionOperator conditionOperator, Array values, Guid organizationId)
at Microsoft.Crm.Query.Entity
Expression
.FromQuery
Visitor.Vi
sit(Condit
ionExpress
ion condition)
at Microsoft.Crm.Sdk.Query.Co
nditionExp
ression.Ac
cept(IQuer
yVisitor visitor)
at Microsoft.Crm.Query.Entity
Expression
.FromQuery
Visitor.Vi
sit(Filter
Expression
filter)
at Microsoft.Crm.Sdk.Query.Fi
lterExpres
sion.Accep
t(IQueryVi
sitor visitor)
at Microsoft.Crm.Query.Entity
Expression
.FromQuery
Visitor.Vi
sit(QueryE
xpression query)
at Microsoft.Crm.Sdk.Query.Qu
eryExpress
ion.Accept
(IQueryVis
itor visitor)
at Microsoft.Crm.Query.Entity
Expression
..ctor(Que
ryBase query, DynamicMetadataCache dynamicCache, Guid organizationId)
at Microsoft.Crm.Query.Entity
Expression
..ctor(Que
ryBase query, Guid organizationId)
at Microsoft.Crm.Query.Entity
Expression
.Converter
.ConvertFr
om(ITypeDe
scriptorCo
ntext context, CultureInfo culture, Object value)
at Microsoft.Crm.BusinessEnti
ties.Conve
rsionHelpe
rs.Convert
(ICrmConve
rsionConte
xt conversionContext, Object source, Type destinationType)
at Microsoft.Crm.Sdk.Dictiona
ryMapper.M
ap(Propert
yBag inputs, ICrmConversionContext context)
at Microsoft.Crm.Extensibilit
y.Internal
OperationP
lugin.Exec
ute(IPlugi
nExecution
Context context)
at Microsoft.Crm.Extensibilit
y.PluginSt
ep.Execute
(PipelineE
xecutionCo
ntext context)
at Microsoft.Crm.Extensibilit
y.Pipeline
.Execute(P
ipelineExe
cutionCont
ext context)
at Microsoft.Crm.Extensibilit
y.MessageP
rocessor.E
xecute(Pip
elineExecu
tionContex
t context)
at Microsoft.Crm.Extensibilit
y.Internal
MessageDis
patcher.Ex
ecute(Pipe
lineExecut
ionContext
context)
at Microsoft.Crm.Extensibilit
y.External
MessageDis
patcher.Ex
ecute(Stri
ng messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.RequestB
ase.Proces
s(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.RequestB
ase.Proces
s(Correlat
ionToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.CrmServi
ceInternal
.Execute(R
equestBase
request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
at Microsoft.Crm.Sdk.InProces
sCrmServic
e.Execute(
Object request)
at Microsoft.Crm.Application.
Platform.S
erviceComm
ands.Platf
ormCommand
.ExecuteIn
ternal()
at Microsoft.Crm.Application.
Platform.S
erviceComm
ands.Retri
eveMultipl
eCommand.E
xecute()
at Microsoft.Crm.ApplicationQ
uery.Execu
teActivity
Attachment
API(String
api)
at Microsoft.Crm.ApplicationQ
uery.Execu
teAPI(Stri
ng queryApi)
at Microsoft.Crm.ApplicationQ
uery.GetVi
ewData()
at Microsoft.Crm.Application.
Controls.A
ppGridData
Provider.G
etDataXml(
QueryBuild
er qb)
at Microsoft.Crm.Application.
Controls.A
ppGridData
Provider.E
xecute()
at Microsoft.Crm.Application.
Controls.A
ppGridUIPr
ovider.Ren
der(HtmlTe
xtWriter output)
at Microsoft.Crm.Application.
Components
.UI.DataGr
id.RenderD
ata(HtmlTe
xtWriter output)
at Microsoft.Crm.Application.
Components
.UI.DataGr
id.RenderI
nnerHtml(H
tmlTextWri
ter output)
at Microsoft.Crm.Application.
Components
.UI.DataGr
id.Render(
HtmlTextWr
iter output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at Microsoft.Crm.Application.
Components
.Sdk.FormC
ontrols.We
b.GridCont
rol.Render
(HtmlTextW
riter output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at Microsoft.Crm.Application.
Forms.Form
Cell.Rende
r(HtmlText
Writer output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at Microsoft.Crm.Application.
Forms.Form
Row.Render
(HtmlTextW
riter output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at Microsoft.Crm.Application.
Forms.Form
Section.Re
nder(HtmlT
extWriter output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at Microsoft.Crm.Application.
Forms.Form
Tab.Render
(HtmlTextW
riter output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at Microsoft.Crm.Application.
Forms.Form
Body.Rende
r(HtmlText
Writer output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at System.Web.UI.Control.Rend
erChildren
Internal(H
tmlTextWri
ter writer, ICollection children)
at System.Web.UI.Control.Rend
erChildren
(HtmlTextW
riter writer)
at System.Web.UI.HtmlControls
.HtmlConta
inerContro
l.Render(H
tmlTextWri
ter writer)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at System.Web.UI.Control.Rend
erChildren
Internal(H
tmlTextWri
ter writer, ICollection children)
at System.Web.UI.Control.Rend
erChildren
(HtmlTextW
riter writer)
at System.Web.UI.HtmlControls
.HtmlTable
Row.Render
Children(H
tmlTextWri
ter writer)
at System.Web.UI.HtmlControls
.HtmlConta
inerContro
l.Render(H
tmlTextWri
ter writer)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at System.Web.UI.Control.Rend
erChildren
Internal(H
tmlTextWri
ter writer, ICollection children)
at System.Web.UI.Control.Rend
erChildren
(HtmlTextW
riter writer)
at System.Web.UI.HtmlControls
.HtmlTable
.RenderChi
ldren(Html
TextWriter
writer)
at System.Web.UI.HtmlControls
.HtmlConta
inerContro
l.Render(H
tmlTextWri
ter writer)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at System.Web.UI.Control.Rend
erChildren
Internal(H
tmlTextWri
ter writer, ICollection children)
at System.Web.UI.Control.Rend
erChildren
(HtmlTextW
riter writer)
at Microsoft.Crm.Application.
Forms.Cust
omizableFo
rm.Render(
HtmlTextWr
iter output)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at Microsoft.Crm.Application.
Components
.UI.CrmUIC
ontrolBase
.RenderCon
trol(HtmlT
extWriter writer)
at ASP.(org)_ma_minicampaign_
iframes_em
ailform_as
px.__Rende
r__control
1(HtmlText
Writer __w, Control parameterContainer)
at System.Web.UI.Control.Rend
erChildren
Internal(H
tmlTextWri
ter writer, ICollection children)
at System.Web.UI.Control.Rend
erChildren
(HtmlTextW
riter writer)
at System.Web.UI.Page.Render(
HtmlTextWr
iter writer)
at System.Web.UI.Control.Rend
erControlI
nternal(Ht
mlTextWrit
er writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer, ControlAdapter adapter)
at System.Web.UI.Control.Rend
erControl(
HtmlTextWr
iter writer)
at System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt)
Custom event details:
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.