An "Unable to cast object of type 'System.Decimal' to type 'System.String'" Error Occurs on a Retrieve Field Values Activity.

February 9, 2009 | KB: 1012149
Workflow Suite 8

Summary

When a Retrieve Field Values activity attempts to process a document with a number field, the workflow may terminate with the following error message:

    Unable to cast object of type 'System.Decimal' to type 'System.String'.'

Resolution 1

This issue is resolved in Workflow 8.0.1 and later. Please upgrade to the latest version of Laserfiche Workflow.

Resolution 2

There is a hotfix available for Laserfiche Workflow 8.0. The fix is an updated version of Laserfiche.Workflow.dll (version 8.0.0.203).

To update Workflow 8.0

  1. Stop the Laserfiche Workflow services.
  2. Click the following link to download a zip file containing the updated version of Laserfiche.Workflow.dll.
    Hotfix_SCR44503.zip
  3. Extract the contents of the zip file to a temporary location.
  4. To replace the existing version of the file, drag and drop the updated version of Laserfiche.Workflow.dll into the Windows Global Assembly Cache at "C:\WINDOWS\assembly."

Note: User Account Control (UAC) prevents you from manually replacing files in the Global Assembly Cache. If UAC is enabled on your Windows Vista or Windows Server 2008 computer, you must first disable UAC to replace the dll. After replacing the file, re-enable UAC.