--- title: "1178-6.5SR1 Active Directory ERROR processing new user" slug: "1178-65sr1-active-directory-error-processing-new-user" updated: 2026-02-02T16:11:15Z published: 2026-02-06T13:59:31Z canonical: "documentation.winmagic.com/1178-65sr1-active-directory-error-processing-new-user" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.winmagic.com/llms.txt > Use this file to discover all available pages before exploring further. # 1178-6.5SR1 Active Directory ERROR processing new user **6.5SR1 Active Directory ERROR processing new user** | Problem Description: --------------------------- After upgrading to 6.5SR1 ADSync was unable to sync new users to database ERROR processing new user : Unable to cast object of type “System.Int32” to type “System.String” Is observer in ADSync Event Logs Analysis/Root Cause: --------------------------- Under Tools>Options>General any new user that is imported from AD is automatically set to Token Protection ![A screenshot of a computer Description automatically generated](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1178-6.5sr1-active-directory-error-processing-new-user-image-a6gk3l4x.png) When looking in SQL Database under dbo.Settings **ValNum** for IDNLW_DEFAULT_TOKEN_TYPE was set to 0 and expected value is NULL Solution Provided: ------------------------ Navigate to dbo.Settings Right click on dbo.Settings and select “Edit Top 200” Then locate IDNLW_DEFAULT_TOKEN_TYPE and set ValNum from 0 to Null ![A screenshot of a computer Description automatically generated](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1178-6.5sr1-active-directory-error-processing-new-user-image-fue4gixn.png) | | --- | | Custom Fields **Version:** SecureDoc 6.4, SecureDoc 6.5 |