diff --git a/engine/reqfilterhelpers.go b/engine/reqfilterhelpers.go index 5e7458963..9145221fc 100644 --- a/engine/reqfilterhelpers.go +++ b/engine/reqfilterhelpers.go @@ -46,7 +46,9 @@ func matchingItemIDsForEvent(ev map[string]interface{}, fieldIDs []string, } fldVal, canCast := utils.CastFieldIfToString(fieldValIf) if !canCast { - return nil, fmt.Errorf("Cannot cast field: %s into string", fldName) + utils.Logger.Warning( + fmt.Sprintf("<%s> cannot cast field: %s into string", utils.FilterS, fldName)) + continue } dbItemIDs, err := dm.MatchReqFilterIndex(dbIdxKey, fldName, fldVal) if err != nil { diff --git a/utils/consts.go b/utils/consts.go index 7f4201a31..d301542ec 100755 --- a/utils/consts.go +++ b/utils/consts.go @@ -626,6 +626,7 @@ const ( TBLTPSuppliers = "tp_suppliers" TBLTPAttributes = "tp_attributes" TBLVersions = "versions" + FilterS = "FilterS" ) //Cache Name