Answers.Body: <p>You might have extension or module that implements entityTypes() hook. Try grepping TEAM inside your module or extension directory, if found either remove the code if its implemented in entityType hook or disable the extension or module if not in use</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T23:48:41.877Z
Answers.Text: Thanks! That was it! I carelessly used civicrm_team as the table name.
Answers.UserDisplayName: Mike Steigerwald
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T02:45:55.413Z
Answers.LastActivityDate: 2020-02-04T02:45:55.413Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I've traced a crash in dedupe to a NULL entity. I've worked around that, but I should figure out why the entity is NULL. I've gotten as far as CRM_Utils_Hook::entityTypes($entityTypes)</p>
  
  <p>it's return value seems to refer to a TEAM table that doesn't exist in CiviCRM. I may have created such a table in the same DB months ago, but I don't think it ever followed a naming convention that would have 'fooled' CiviCRM into categorizing it as a core table.</p>
  
  <p>I plan to keep digging, but now seems like a good time to ask for advice. Anyone seen anything like this before?</p>
  
Tags: <core>
Title: Why would CRM_Utils_Hook::entityTypes($entityTypes) return results with a non-civicrm table?
ThreadText: # Why would CRM_Utils_Hook::entityTypes($entityTypes) return results with a non-civicrm table?
  
  (Asked by: username_0 on 2020-02-04)
  
  I've traced a crash in dedupe to a NULL entity. I've worked around that, but I should figure out why the entity is NULL. I've gotten as far as CRM\_Utils\_Hook::entityTypes($entityTypes)
  
  it's return value seems to refer to a TEAM table that doesn't exist in CiviCRM. I may have created such a table in the same DB months ago, but I don't think it ever followed a naming convention that would have 'fooled' CiviCRM into categorizing it as a core table.
  
  I plan to keep digging, but now seems like a good time to ask for advice. Anyone seen anything like this before?
  
  **Tags:** core
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-04. Score: 0 | Accepted answer
  
  You might have extension or module that implements entityTypes() hook. Try grepping TEAM inside your module or extension directory, if found either remove the code if its implemented in entityType hook or disable the extension or module if not in use
  
  > **Comments:**
  > **username_0**: Thanks! That was it! I carelessly used civicrm_team as the table name.  
  
  ---
  
  