Gå til indhold

Troubleshooting

Dette indhold er ikke tilgængeligt i dit sprog endnu.

The WorkZone Active Directory Connector window prints all logs on its screen. All issues are shown in red color (see the screenshot below for an example). Some error messages contain detailed information. To make the error message more readable, you can copy the error message and paste it into your preferred text editor.

Below you can see a list of common errors that may occur during configuration, and how you can solve them.

(Cloud environment only): AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app ‘<ClientID>’

Section titled “(Cloud environment only): AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app ‘<ClientID>’”

If you get this message, check that the specified client secret is correct and has not expired.

Make sure that the ClientID and Client Secret that you have specified are registered in the tenant with the specified ID <TenantId>.

(Cloud environment only): Exception running Active Directory replication: Unauthorized

Section titled “(Cloud environment only): Exception running Active Directory replication: Unauthorized”

This error occurs because OData cannot authorize the access token from Entra. The reason may be that the tenant that provided the token is not known by WorkZone OData.

To fix this issue, make sure that the app is registered in the same tenant that runs WorkZone OData authorization.

Exception running Active Directory replication: Forbidden

Section titled “Exception running Active Directory replication: Forbidden”

Error example: ERROR: SJADWindow.btnUsers_Click(): Exception running Active Directory replication: An error occurred while processing this request.at System.Data.Services.Client.SaveResult.HandleResponse() at System.Data.Services.Client.BaseSaveResult.EndRequest() at System.Data.Services.Client.DataServiceContext.SaveChanges(SaveChangesOptions options) at SJActiveDirectoryReplication.SJADWindow.AdWriter(Boolean usentauth) at SJActiveDirectoryReplication.SJADWindow.btnUsers_Click(Object sender, EventArgs e)ERROR: SJADWindow.btnUsers_Click(): Exception details: Forbidden

  • For Cloud environments: This error occurs because OData cannot authorize the access token from from Entra. The reason may be that the tenant that provided the token is not known by WorkZone OData.
  • For air-gapped environments: This error occurs because the User ID of the Windows user (SID) that executes the AD Reader is not set in the SJADREPLICATORUSER SID column.

To fix the issue, make sure to set the Object ID/SID (depending on your environment) to SJADREPLICATORUSER. See step 1 of the relevant guidance (for Cloud environments or for air-gapped environments) under Install the AD reader.

Exception running Active Directory replication

Section titled “Exception running Active Directory replication”

Error example: ERROR: SJADWindow.btnUsers_Click(): Exception running Active Directory replication: An error occurred while processing this request. at System.Data.Services.Client.SaveResult.HandleResponse() at System.Data.Services.Client.BaseSaveResult.EndRequest() at System.Data.Services.Client.DataServiceContext.SaveChanges(SaveChangesOptions options) at SJActiveDirectoryReplication.SJADWindow.AdWriter(Boolean usentauth) at SJActiveDirectoryReplication.SJADWindow.btnUsers_Click(Object sender, EventArgs e) ERROR: SJADWindow.btnUsers_Click(): Exception details: <?xml version=“1.0” encoding=“utf-8”?><m:error xmlns:m=“http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">\<m:code>USERMSG_NO_REGISTER_UPDATE_RIGHTS.1;USERMSG_NO_REGISTER_UPDATE_RIGHTS</m:code><m:message xml:lang=“da-DK”>Du har ikke opdateringsrettighed til denne post i register: ad_replication</m:message><m:innererror><m:message>Du har ikke opdateringsrettighed til denne post i register: ad_replication</m:message><m:type>Scanjour.ScanjourComException</m:type><m:stacktrace> at Scanjour.Som.Managed.sjFieldListClass.Create(EsjCommitCommand commitCommand, Boolean autoReload) at Scanjour.Services.OData.Resources.SomResource.SaveChanges()</m:stacktrace></m:innererror></m:error>

This error occurs if the user which executes AD Reader does not have permission to perform this operation.

To fix the issue, make sure to set up the correct user, as described in Install the AD reader. If you need to use a different user than SJADREPLICATORUSER, or the problem exists for the SJADREPLICATORUSER user, add ‘ADREPLICATIONADM’ access code to this user:

insert into ACCESS_CODE (Access_code, User_name) VALUES ('ADREPLICATIONADM', 'SJADREPLICATORUSER');
commit;