Error Code: 10156 - dictionary error

Problem

This error usually occurs within “grids”, fields within Avatar forms that allow multiple lines of entry (i.e. like the Plan Participants grid within Treatment Plan forms). The type of error this article covers is a specific one, referring to a bad entry into one of these fields that then prevents submission/finalizing the form.

The error may look like this:

Solution

This specific kind of error is caused by a bad entry within the grid. In most fields within grids, Avatar is expecting specific values to be selected from a locked dictionary, and when they aren’t selected an error is thrown.

In the example above, Avatar mentions “PrintDict” meaning this is a dictionary issue. It then says “AvatarCWSTIFF” to say that it could not produce a .tiff image because of this issue, then says “CWSRCO(3,57009.12, “y”)

The last portion refers to a specific dictionary (57009.12) in the CWS library and says “y” is the value causing the issue. In this example, that dictionary is for Plan Author and this can be looked up via the Dictionary Update form (CWS version as that is what’s referred to in the error). A look at that field in this case shows this:

Note that the “Plan Author” entry is a lowercase “y” while the Notification entry is a full “Yes (Y)”. Avatar is expecting a selection in the Plan Author field of “Yes (Y)” but the user somehow input a lowercase “y” and that is what caused this error. Once the user went back into that field and changed the selection to a valid one, the issue was resolved.