Views:

Behavior:
When performing a search using the .NET API, you get the following error;
 
404 Not Found (Field with name '[Field Name]' is missing)

Solution:
This error appears when the index field(s) you are referencing when setting up the DialogExpression is not named correctly.

If we have a field name Company Name in our file cabinet and we want to search based on this field, the following would be incorrect and result in the error, "404 Not Found (Field with name 'Company Name' is missing.)"

Incorrect:
var q = new DialogExpression()
            {
                Operation = DialogExpressionOperation.And,
                Condition = new List<DialogExpressionCondition>()
                {
                    DialogExpressionCondition.Create("
Company Name", "Flying Tom" )
                },
                Count = 100,
                SortOrder = new List<SortedField> 
                { 
                    SortedField.Create("DWSTOREDATETIME", SortDirection.Desc)
                }
            };


The database name of the field must be used like the following; 

Correct:
var q = new DialogExpression()
            {
                Operation = DialogExpressionOperation.And,
                Condition = new List<DialogExpressionCondition>()
                {
                    DialogExpressionCondition.Create("
COMPANY_NAME", "Flying Tom" )
                },
                Count = 100,
                SortOrder = new List<SortedField> 
                { 
                    SortedField.Create("DWSTOREDATETIME", SortDirection.Desc)
                }
            };


If you are unsure of the database name, please refer to the following for instructions on finding the database name of an index field. 
KBA-36531  · DocuWare Support Portal

KBA applicable for both Cloud and On-premise Organizations.