{"id":3383,"date":"2018-10-04T10:23:12","date_gmt":"2018-10-04T10:23:12","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=3383"},"modified":"2018-10-04T10:23:12","modified_gmt":"2018-10-04T10:23:12","slug":"systemuseraccessmode-is-not-either-of-noninteractive-setupuser","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=3383","title":{"rendered":"SystemUserAccessMode is not either of (NonInteractive, SetupUser)"},"content":{"rendered":"<p>While creating work order record, I got following error:<\/p>\n<p><strong>&#8220;Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The user with SystemUserId=2&#8230;.. in OrganizationContext=5&#8230;&#8230; is not licensed, and its SystemUserAccessMode is not either of (NonInteractive, SetupUser)&#8230;&#8230;..&#8221;<\/strong><\/p>\n<p>First thing I checked if the current user <strong>Access Mode<\/strong> is not set to <strong>Administrative<\/strong> or <strong>non-interactive<\/strong> as the error message was saying, but it was configured correctly (it was set as Read-Write mode). Next, I compared user id with the current user and it was not matching, then looked TraceText details and found this error was coming from <strong>SlaPostCreatePlugin<\/strong>.<\/p>\n<p><em>[Microsoft.Crm.Service.GlobalSlaPlugin: Microsoft.Crm.Service.GlobalSlaPlugin.SlaPostCreatePlugin]<\/em><\/p>\n<p>Next, I checked if there is any SLAs exists and found two SLAs for the work order. While checking SLA record I found the owner of the SLA was a disabled user, assigning SLA record to enabled user solved this issue.<\/p>\n<p>Hope it will help someone !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While creating work order record, I got following error: &#8220;Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The user with SystemUserId=2&#8230;.. in OrganizationContext=5&#8230;&#8230; is not licensed, and its SystemUserAccessMode is not either of (NonInteractive, SetupUser)&#8230;&#8230;..&#8221; First thing I checked if the current user Access Mode is not set to Administrative or non-interactive as the error message was saying, but it was&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=3383\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402,522,6,8],"tags":[649,647,648,646],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3383"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3383"}],"version-history":[{"count":2,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3383\/revisions"}],"predecessor-version":[{"id":3386,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3383\/revisions\/3386"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}