title: SQL71508:The model already has an element that has the same name
body: <p>I have a CLR function in my project:
  I Defined the function as a static method of a class in a language supported by the .NET Framework. Then, compiled the class to build an assembly.</p>
  
  <pre><code>[SqlFunction]
  public static SqlString InsertCampaignRecipients(SqlString url)
  {
      var rowData = string.Empty;
      using (var client = new HttpClient())
      {
          client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
          var response = client.GetAsync(new Uri(url.Value)).Result;
          if (response.IsSuccessStatusCode)
          {
              var result = response.Content.ReadAsStringAsync().Result;
              if (result.IndexOf(@"""Exception"":null}") &gt; 0) //success
              {
                  rowData = "success";
              }
              else
              {
                  rowData = string.Empty;
              }
          }
          else
          {
              rowData = string.Empty;
          }
      }
      return rowData;
  }
  </code></pre>
  
  <p>Then I created the function that references the registered assembly by using the CREATE FUNCTION statement:</p>
  
  <pre><code>CREATE FUNCTION [dbo].[InsertCampaignRecipients] (@url NVARCHAR (4000) NULL)
  RETURNS NVARCHAR (4000)
  AS
    EXTERNAL NAME [SmartTouch.CRM.SqlClrDb].[UserDefinedFunctions].[InsertCampaignRecipients]
  </code></pre>
  
  <p>And I have an error: </p>
  
  <blockquote>
    <p>SQL71508: The model already has an element that has the same name
    dbo.InsertCampaignRecipients</p>
  </blockquote>
  
  <p>But if I rename my SQL function the error is gone. What's the problem?</p>