The topic at https://docs.looker.com/reference/manifest-params/remote_dependency#overriding_imported_constants_wi... looks straightforward enough but I’m getting the error “Cannot override constant ‘my_dataset’ for dependency ‘my_base’”
In the my_base manifest file:
constant: my_dataset {
value: “BaseDatasetName”
export: override_required
}
In the project that imports my_base:
remote_dependency: my_base {
url: “git@github.com:Company/my_base.git”
ref: “********************”
override_constant: my_dataset {
value: “RealDatasetName”
}
}
Thanks in advance for any pointers!
Hi! Did you ever find out what was causing this? I’m currently getting the same error.
I had the same problem and the solve was to include the “export” parameter on the source project’s constant definition.
constant: connection_name {
value: "my_connection_name"
export: override_required
}