title: Tridion CoreService create component missing metadata
body: <p><strong>i got exception = {"Unable to find uuid:5708986b-390f-4728-b0c7-b49bd3d8f407:Metadata."}</strong></p>
  
  <pre class="lang-cs prettyprint-override"><code>schemaId = UpdatePubId(schemaId, containerId);
  SchemaData schemaData = (SchemaData)client.Read(schemaId, null);
  string xml = string.Format("&lt;{0} xmlns=\"{1}\"&gt;{2}&lt;/{0}&gt;", schemaData.RootElementName, schemaData.NamespaceUri, fields);
  
  ComponentData componentData = new ComponentData
  {
      Content = xml,
      ComponentType = ComponentType.Normal,
      Title = title,
      Schema = new LinkToSchemaData { IdRef = schemaId },
      LocationInfo = new LocationInfo { OrganizationalItem = new LinkToOrganizationalItemData { IdRef = containerId } },
      Id = "tcm:0-0-0", 
      MetadataSchema = schemaData.MetadataSchema,
      Metadata = schemaData.Metadata
  };
  
  try
  {
      componentData = client.Save(componentData, new ReadOptions()) as ComponentData;
      componentData = client.CheckIn(componentData.Id, new ReadOptions()) as ComponentData;
      message.Set("Component", title + ", successfully");
  }
  catch (Exception exception)
  {
      message.Set("Component", exception.Message);
  }
  </code></pre>
  
  <p>thanks Tridion experts</p>