In a domain-separated instance, expected SLAs are not being attached when new incidents are createdDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Symptoms In a domain-separated instance, when a new incident is created, certain SLAs are expected to attach. These SLAs are not attaching per the user's expectations. Release Kingston Patch 3, Kingston Patch 6 Cause It was found that the behavior described above resulted from two main causes: FIRST: There was a user who had the "snc_read_only" role which was prohibiting them from accessing the tables needed to create the task_sla record(s).SECOND: Users who were trying to create incidents to trigger the SLAs in Domain "Orange" were not in Domain "Orange" under the domain picker in the header - this is why the task_sla records were not created. Resolution FIRST: There was a user who had the "snc_read_only" role which was prohibiting them from accessing the tables needed to create the task_sla record(s). The reason the affected user was able to create an incident at all with the "snc_read_only" role on their sys_user profile, but is blocked from other tables with "snc_read_only" role, is because there is a system property which controls table exemptions related to the "snc_read_only" role: glide.security.snc_read_only.tables.exempt_create ( ref: /nav_to.do?uri=sys_properties.do?sys_id=5b5259850f164b84ffd5ad7d51050ef2 ). The user had the incident table in that exemption list. SECOND: Users who were trying to create incidents to trigger the SLAs in Domain "Orange" were not in Domain "Orange" under the domain picker in the header - this is why the task_sla records were not created. 1. With domains and SLAs, there is an extra level of configuration related to SLA Definitions which is a feature called "Delegated administration" ( ref: https://docs.servicenow.com/csh?topicname=c_DelegatedAdministration.html&version=latest ). This feature allows a record in one domain to override it's equivalent in a higher domain - this is useful for SLA Definitions as, for example, the user can have a default P1 SLA in the "global" domain. Then, where needed, the same P1 SLA in lower domains to override it - allowing the ability to provide different timings/conditions based on the domain of the Task. Once a table has this behavior (the user can find all the tables that support it by looking for a column called "sys_overrides"), then querying of records works in the opposite direction: - for a table that doesn't have Delegated administration, a user will be able to see all the records in their current domain plus the ones below it (e.g., a user in TOP can see records in TOP, TOP/SubDom1, TOP/Subdom1/Subdom2 etc). - for a table that does have Delegated administration, a query for find all records in the user's current domain plus the ones above it (e.g., a user in TOP can see records in TOP and global only). 2. When creating a new Task record, the default value for the "sys_domain" field is global - but a before insert/update business rule updates this field to match the caller/caller's company. 3. Whenever a record is created or updated through the UI, some specific domain-based code sets the domain used for processing (e.g., business rules) and data (querying of tables) so that the appropriate logic is performed on the record and associated data can be accessed. Typically these will match the domain of the record that has just been created/updated. Applying the above to the behavior the user is experiencing: - a user in the domain "TOP/Apple" logs in and creates a new Incident for a caller in the domain "TOP/Apple/Orange" - on saving the record, the domain code (which runs before any business rules) checks the domain of the record which is "global" and so then looks at the domain of the current user (in this case "TOP/Apple") and uses this for the data domain - the before business rule now sets the Domain field on the Incident to "TOP/Apple/Orange" - SLA processing now runs and queries for SLA Definitions (this is limited to the data domain - e.g., "TOP/Apple") and as this is a delegated administration table, the records in "TOP/Apple/Orange" are not found and so no Task SLAs are created The reason the SLA attaches and the behavior works when the record is updated is because the domain code then finds the "TOP/Apple/Orange" domain in the Incident and so the data domain is set to this before the business rules are processed and the Orange SLA Definitions are now found immediately, without issue. Setting the domain picker to the correct domain solves the issue on creation as the domain code will use the session domain which is correct for the record that is about to be created.To remedy incidents which have been affected by either of these cases, please feel free to use the Repair SLAs functionality ( ref: https://docs.servicenow.com/csh?topicname=c_RepairSLAs.html&version=latest ).