Lookup Error When Using Context_Callback

Check your Dash version and make sure you are getting callback_context (or ctx) name from the correct package.
This what works for dash==2.9.3:

trigger_id = dash.callback_context.triggered[0]['prop_id']