LookML error: The field "fieldnamehere" is of type "string" but is listening to a filter of type "field_filter" that specifies a field of type "(?)"

  • 23 June 2022
  • 2 replies



I am getting this warning when I validate in LookML. I have a filter for currency (filter name: Currency).

What is confusing is that there are several fields that listen to this filter, but only some fields have this warning. Moreover, all the fields that have a warning are all in the same model. The LookML dashboard is also in the same model. 

This is what one of element looks like (the errors shows up for all elements where there is a ‘listen’ to the ‘Currency’ filter. The script for filter is also given below.


element parameters..

      Reconciliation Date: view1.field1
      Currency: cash_advance_balances_daily.currency




  - name: Reconciliation Date

  - name: Currency
    title: Currency
    type: field_filter
    model: core
    explore: multi_currency_conversion_batches
    field: fx_conversion_orders_request.source_currency. #this is of string type 
    default_value: 'EUR'
    allow_multiple_values: true
    required: true
      type: dropdown_menu
      display: inline
      - EUR



2 replies

I managed to solve this problem by changing to the filter for Currency. I used a different field for currency in the same model where the LookML dashboard was created. 


I originally got the error when I moved the LookML dashboard script from one model to another model, and I left the filter as it is. But as soon as I changed to filter to another field that was available in the new model as where the dashboard was moved to , the error was fixed. 


I have this same problem, I’m not sure how to deal with it. I’m trying to find a workaround but I haven’t found anything yet