You have an automatic lookup named YYY that is referencing a lookup definition named XXX that either does not exist at all or exists at a privilege level that is lower than that of the automatic lookup definition. Try this search to find the details of the detached automatic lookup :
|rest/servicesNS/-/-/data/props/lookups splunk_server=local
| search title="YYY"
| dedup id
| table eai:acl.app eai:acl.owner eai:acl.sharing title overwrite value *
| rename eai:acl.* AS *
| sort 0 title
Use this search to find the details of the detached lookup definition (if it exists):
|rest/servicesNS/-/-/data/transforms/lookups splunk_server=local
| search title="XXX"
| dedup id
| table eai:acl.app eai:acl.owner eai:acl.sharing disabled title type filename match_type case_sensitive_match fields_list *
| rename eai:acl.* AS *
| sort 0 title
... View more