Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I am struggling to create  Routing Rules on our Dynamics 365 online instance. 

When we create Routing Rules on our Dynamics 365 online instance, we are getting this error message :

"Condition for attribute 'template.templatetypecode': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead."

Please help me resolve this issue.

Thanks in Advance!!

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead

    Hi George,

    As you mentioned above, the error is ‘Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.’

    The error appears in the queue, and the queue appears in the sub-grid (rule items) of Routing Rule Set entity form.

    pastedimage1606725336947v1.png

    You can select other queues test again, and check other that queue exists.

    And I notice that you can also select user/Team to set rule, you can select it to check if there is an error.

    pastedimage1606725344079v2.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • George Chuene Profile Picture
    15 on at
    RE: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead

    Here is the  error  details:

    Unhandled exception:

    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]

    Message: Error occured.System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.0000000Z

    OriginalException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040216

    Message: System.ArgumentException: Condit...).Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">

     <ActivityId>d6967154-b9bc-4d0e-baac-f07373510294</ActivityId>

     <ErrorCode>-2147220891</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiExceptionSourceKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Dynamics.OmnichannelBase.Plugins.RoutingRuleItemQueueRestrictPlugin, Microsoft.Dynamics.OmnichannelBase.Plugins, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiOriginalExceptionKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: Error occured.System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.0000000Z

    OriginalException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040216

    Message: System.ArgumentException: Condit...). ---> Microsoft.Crm.CrmException: Error occured.System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.0000000Z

    OriginalException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040216

    Message: System.ArgumentException: Condit...).

      at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricClientTelemetryInterceptor.<>c__DisplayClass2_0.<Intercept>b__0()

      at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)

      at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)

      at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricClientTelemetryInterceptor.Intercept(IInvocation invocation, IExecutionContext context, SandboxFabricCallTracker sandboxFabricCallTracker)

      at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricCodeUnitExecuteBaseInterceptor.Intercept(IInvocation invocation)

      at Castle.DynamicProxy.AbstractInvocation.Proceed()

      at Castle.Proxies.ISandboxFabricCodeUnitProxy.Execute(ILifetimeScope scope, IExecutionContext context, SandboxFabricCallTracker& sandboxFabricCallTracker)

      at Microsoft.Xrm.RemotePlugin.Client.SandboxFabricPlugin.<>c__DisplayClass5_1.<Execute>b__3()

      at Polly.Policy.<>c__DisplayClass150_0`1.<Execute>b__0(Context ctx, CancellationToken ct)

      at Polly.Policy.<>c__DisplayClass143_0`1.<ExecuteInternal>b__0(Context ctx, CancellationToken ct)

      at Polly.RetrySyntax.<>c__DisplayClass12_1.<WaitAndRetry>b__1(Context ctx, CancellationToken ct)

      at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory)

      at Polly.RetrySyntax.<>c__DisplayClass12_0.<WaitAndRetry>b__0(Action`2 action, Context context, CancellationToken cancellationToken)

      at Polly.Policy.ExecuteInternal[TResult](Func`3 action, Context context, CancellationToken cancellationToken)

      at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)

      at Polly.Policy.Execute[TResult](Func`1 action)

      at Microsoft.Xrm.RemotePlugin.Client.SandboxFabricPlugin.Execute(IServiceProvider serviceProvider)

      at Microsoft.Xrm.RemotePlugin.Client.ResilientSandboxPlugin.<>c__DisplayClass11_1.<Execute>b__3()

      at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)

      at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)

      at Microsoft.Xrm.RemotePlugin.Client.ResilientSandboxPlugin.Execute(IServiceProvider serviceProvider)

      at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.RemotePluginExecute(IServiceProvider serviceProvider)

      at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

      --- End of inner exception stack trace ---

      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass6_0.<RunStep>b__0()</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiStepKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">245e25b0-0bb1-420c-b05a-2d081c1011dc</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiDepthKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiActivityIdKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">d6967154-b9bc-4d0e-baac-f07373510294</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">msdyn_OmnichannelBasePatch</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiStepSolutionNameKey</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">msdyn_OmnichannelBasePatch</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiExceptionCategory</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">ClientError</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiExceptionMesageName</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">IsvAborted</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">400</d2p1:value>

       </KeyValuePairOfstringanyType>

     </ErrorDetails>

     <HelpLink>go.microsoft.com/.../

     <Message>Error occured.System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.0000000Z

    OriginalException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead. (Fault Detail is equal to Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040203

    Message: Condition for attribute 'queue.queueid': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.

    TimeStamp: 2020-11-28T09:11:52.9452686Z

    --

    Exception details:

    ErrorCode: 0x80040216

    Message: System.ArgumentException: Condit...).</Message>

     <Timestamp>2020-11-28T09:11:53.1327621Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault i:nil="true" />

     <OriginalException i:nil="true" />

     <TraceText>

    [Microsoft.Dynamics.OmnichannelBase.Plugins: Microsoft.Dynamics.OmnichannelBase.Plugins.RoutingRuleItemQueueRestrictPlugin]

    [245e25b0-0bb1-420c-b05a-2d081c1011dc: OmniChannel.Plugins.RoutingRuleItemQueueRestrictPlugin]

    Entered Microsoft.Dynamics.RoutingRule.Plugins.PreValidationRoutingRuleItemUpdate.Execute(), Correlation Id: 27b1a82a-8a78-444d-8396-ea6fadd13cf0, Initiating User: 7c1aaf37-8221-eb11-a813-000d3a26de78

    PreValidationRoutingRuleItemUpdate ExecuteCrmPlugin: Enter, Correlation Id: 27b1a82a-8a78-444d-8396-ea6fadd13cf0, Initiating User: 7c1aaf37-8221-eb11-a813-000d3a26de78

    RoutingRuleItemService PreValidateForUpdate: Enter

    RoutingRuleItemService PreValidateForUpdate: Exit

    PreValidationRoutingRuleItemUpdate ExecuteCrmPlugin: Exit

    Exiting Microsoft.Dynamics.RoutingRule.Plugins.PreValidationRoutingRuleItemUpdate.Execute(), Correlation Id: 27b1a82a-8a78-444d-8396-ea6fadd13cf0, Initiating User: 7c1aaf37-8221-eb11-a813-000d3a26de78

    </TraceText>

    </OrganizationServiceFault>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans