Hi all, I am having trouble setting configuration ...
# ask-community
d
Hi all, I am having trouble setting configuration variables for my graph. I get this error:
dagster.core.errors.DagsterInvalidConfigError: Error in config for solid 'get_prices'
Error 1: Received unexpected config entry "load_type" at path root:config. Expected: "{ suppliercode_bizids?: { }? }".
Error 1: Received unexpected config entry “load_type” at path root:config. Expected: “{ suppliercode_bizids?: { }? }“. My current graph:
Copy code
@graph
def load_price():
    @configured(
        get_price_loads,
        config_schema={
            "suppliercode_bizids": Field(Noneable(dict), default_value=None),
            "load_type": Field(Noneable(str), default_value=None)
        }
    )
    def get_prices(config):
        return {
            "suppliercode_bizids": config.get("suppliercode_bizids"),
            "load_type": config.get("load_type"),
        }
    (
        get_prices()
            .map(process_prices)
            .map(price_load_sqldb)
    )
I am calling the graph in the UI with the following op added:
Copy code
ops:
  get_prices:
    config:
      load_type: delta
Any ideas why this does not work?
j
Is it possible that your Dagit workspace hasn’t reloaded/isn’t up to date with your code sample?
d
@johann I am launching in ECS so I have to refresh whenever I launch a new version so I dont think that is the case