Foreman 3.8 creating new location errors: Unknown records found in the database

Problem: when I go to create a new location, it does nothing and says ’ Unknown records found in the database’ and the delete button does not work

Expected outcome: Location is created, or when i press ‘Delete’ on the unknown records it deletes and creation works next time

Foreman and Proxy versions: 3.8.0-1+ubuntu2004

Foreman and Proxy plugin versions: 3.8.0-1+ubuntu2004

Distribution and version: Ubuntu 20.04

Other relevant data: