Error when selecting a Document Type

Error when selecting a Document Type

Error Message:
ErrorCode: 0
Message: The given key was not present in the dictionary
                                          OR
Message: Object Reference not set to instance of an object

Cause: 

While browsing through Document Types you may encounter this error. The cause for this is the User profile (for e.g. Superadmin or user Bob) or the DB profile in SOHODOX may have gone corrupted


Solution : 

To solve this issue follow the steps below...
  1. Please make sure that you back up the Sohodox Databases. Backup instructions here...
  2. Close SOHODOX and Open the Windows Command Line window on the machine on which SOHODOX is installed in the Server mode..
  3. You can open the Windows Command Line by opening the RUN dialog (Windows button + R) and in the RUN dialog type 'cmd'. Press Enter, the Windows Command Line Window will be launched.
  4. In the Command Line window type the following at the cursor...
    "C:\Program Files (x86)\Sohodox Desktop\Sohodox.exe" /resetdbprofile /dbid=1
    (Assuming Sohodox is installed in the default location. If SOHODOX is installed on a 32 bit Operating System, replace Program Files (x86) with Program Files)
  5. SOHODOX will be launched prompting you to login with the credentials of the superadmin user. (By default the password for the superadmin user is superadmin)
  6. Now, hit the Enter key. SOHODOX will repair the DB profile.
  7. You will have to run another command...
    "C:\Program Files (x86)\Sohodox Desktop\Sohodox.exe" /resetuserdbprofile /dbid=1 /username=#all
    (Assuming Sohodox is installed in the default location. If SOHODOX is installed on a 32 bit Operating System, replace Program Files (x86) with Program Files)
  8. SOHODOX will be launched prompting you to login with the credentials of the superadmin user. (By default the password for the superadmin user is superadmin)
  9. Now, hit the Enter key. SOHODOX will repair the user profile.
  10. Now try logging in to SOHODOX.

Note:
In case none of the above commands resolves your issue, please try running the below command...
"C:\Program Files (x86)\Sohodox Desktop\Sohodox.exe" /resetuserprofile /dbid=1 /username=superadmin 
(You will need to replace the username with the name of the user facing the error. In the above example the 'superadmin' user is being used)

You can drop in an email to support@sohodox.com, in case none of the above commands resolves your issue.
    • Related Articles

    • Add a new Document Type

      To add additional document types, you will have to go to the Settings pane >> Document Types and click the new button. You can also add fields to the document type based on your requirement. Detailed instructions on creating document type and ...
    • Access: 005 : Disk or network error

      Error Message: ErrNo: -2147155969 ErrDescription: Disk or network error.  Cause:  This is normally a temporary issue and is caused when the network at your end is unstable. When the network is down or inconsistent Sohodox loses connection to the ...
    • SQL: 003 : Cannot open database ‘MainDB_sdx’ requested by the login. The login failed

      Error Message: ErrorCode: 61443 Message: Failed to connect to database 'MainDB_sdx'. (ErrNo:-2147467259 Details:Cannot open database "MainDB_sdx" requested by the login. The login failed.) Cause: This issue usually occurs when SOHODOX is unable to ...
    • Specify a default scanner?

      You can set the default scanner to be used for SOHODOX from the Options dialog.  To do this,  Click the round button on the top left corner of the screen.  Select Options... the Options dialog will be launched In this dialog. Scroll down to find ...
    • DB/User Profile XML problems

      Solution : You will have to perform the below steps on the machine on which SOHODOX is installed in the Server mode. Please make sure that you back up the SOHODOX Databases. ...