Not able to post custom data entries

I created custom data schemas of entries and added some fields to it. I am using kaltura android sample (https://github.com/kaltura/AndroidReferenceApp). Now added the same fields inside the KalturaMediaEntry.java class, also passed those fields in KalturaParams.

Whatever values i am sending in these fields is not being updated on the kaltura kmc console though other fileds like name, description, tags are being updated, also video is being uploaded.

Hello,

Can you please provide the code you used and also, the XSD schema?
The XSD schema can be downloaded via the KMC from the ‘edit metadata schema screen’.

Thanks,

Sending you the edited KalturaMediaEntry class and Xsd Schema I created.

   public class KalturaMediaEntry extends KalturaPlayableEntry {
	
	/**Custom entries*/
	public String department;
	public String location;
	public boolean isFeatured;
	public String valueCategory;
	/*********************/

	/**  The media type of the entry     */
    public KalturaMediaType mediaType;
	/**  Override the default conversion quality       */
    public String conversionQuality;
	/**  The source type of the entry      */
    public KalturaSourceType sourceType;
	/**  The search provider type used to import this entry     */
    public KalturaSearchProviderType searchProviderType;
	/**  The ID of the media in the importing site     */
    public String searchProviderId;
	/**  The user name used for credits     */
    public String creditUserName;
	/**  The URL for credits     */
    public String creditUrl;
	/**  The media date extracted from EXIF data (For images) as Unix timestamp (In
	  seconds)     */
    public int mediaDate = Integer.MIN_VALUE;
	/**  The URL used for playback. This is not the download URL.     */
    public String dataUrl;
	/**  Comma separated flavor params ids that exists for this media entry     */
    public String flavorParamsIds;

    public KalturaMediaEntry() {
    }

    public KalturaMediaEntry(Element node) throws KalturaApiException {
        super(node);
        NodeList childNodes = node.getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node aNode = childNodes.item(i);
            String nodeName = aNode.getNodeName();
            String txt = aNode.getTextContent();
            if (nodeName.equals("mediaType")) {
                this.mediaType = KalturaMediaType.get(ParseUtils.parseInt(txt));
                continue;
            } else if (nodeName.equals("conversionQuality")) {
                this.conversionQuality = ParseUtils.parseString(txt);
                continue;
            } else if (nodeName.equals("sourceType")) {
                this.sourceType = KalturaSourceType.get(ParseUtils.parseString(txt));
                continue;
            } else if (nodeName.equals("searchProviderType")) {
                this.searchProviderType = KalturaSearchProviderType.get(ParseUtils.parseInt(txt));
                continue;
            } else if (nodeName.equals("searchProviderId")) {
                this.searchProviderId = ParseUtils.parseString(txt);
                continue;
            } else if (nodeName.equals("creditUserName")) {
                this.creditUserName = ParseUtils.parseString(txt);
                continue;
            } else if (nodeName.equals("creditUrl")) {
                this.creditUrl = ParseUtils.parseString(txt);
                continue;
            } else if (nodeName.equals("mediaDate")) {
                this.mediaDate = ParseUtils.parseInt(txt);
                continue;
            } else if (nodeName.equals("dataUrl")) {
                this.dataUrl = ParseUtils.parseString(txt);
                continue;
            } else if (nodeName.equals("flavorParamsIds")) {
                this.flavorParamsIds = ParseUtils.parseString(txt);
                continue;
            } 
        }
    }

    public KalturaParams toParams() {
        KalturaParams kparams = super.toParams();
        kparams.add("objectType", "KalturaMediaEntry");
        kparams.add("mediaType", this.mediaType);
        kparams.add("conversionQuality", this.conversionQuality);
        kparams.add("sourceType", this.sourceType);
        kparams.add("searchProviderType", this.searchProviderType);
        kparams.add("searchProviderId", this.searchProviderId);
        kparams.add("creditUserName", this.creditUserName);
        kparams.add("creditUrl", this.creditUrl);

       /**Custom entries params*/
        kparams.add("Department", this.department);
        kparams.add("Location", this.location);
        kparams.add("IsFeatured", this.isFeatured);
        kparams.add("ValueCategory", this.valueCategory);
        return kparams;
     
    }

}

XSD ::

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="metadata">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element id="md_E6FE56E3-8620-B3D6-3773-F38E6D96375D" name="ValueCategory" minOccurs="0" maxOccurs="1">
          <xsd:annotation>
            <xsd:documentation/>
            <xsd:appinfo>
              <label>ValueCategory</label>
              <key>ValueCategory</key>
              <searchable>true</searchable>
              <timeControl>false</timeControl>
              <description/>
            </xsd:appinfo>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="listType">
              <xsd:enumeration value="Horror"/>
              <xsd:enumeration value="Comedy"/>
              <xsd:enumeration value="Action"/>
              <xsd:enumeration value="Thriller"/>
              <xsd:enumeration value="Romantic"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element id="md_C43015D1-72DF-8393-8A38-F38FC82450A3" name="IsFeatured" minOccurs="0" maxOccurs="1">
          <xsd:annotation>
            <xsd:documentation/>
            <xsd:appinfo>
              <label>IsFeatured</label>
              <key>IsFeatured</key>
              <searchable>true</searchable>
              <timeControl>false</timeControl>
              <description>Sets to Yes or No</description>
            </xsd:appinfo>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="listType">
              <xsd:enumeration value="Yes"/>
              <xsd:enumeration value="No"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element id="md_0181C969-CA06-6161-9A33-F3B114044E80" name="Department" minOccurs="0" maxOccurs="1" type="textType">
          <xsd:annotation>
            <xsd:documentation/>
            <xsd:appinfo>
              <label>department</label>
              <key>Department</key>
              <searchable>true</searchable>
              <timeControl>false</timeControl>
              <description>Enter a Department</description>
            </xsd:appinfo>
          </xsd:annotation>
        </xsd:element>
        <xsd:element id="md_3246AE05-E8B7-899D-18EE-F3B356E1F06A" name="Location" minOccurs="0" maxOccurs="1" type="textType">
          <xsd:annotation>
            <xsd:documentation></xsd:documentation>
            <xsd:appinfo>
              <label>Location</label>
              <key>Location</key>
              <searchable>true</searchable>
              <timeControl>false</timeControl>
              <description>Enter the Location</description>
            </xsd:appinfo>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:complexType name="textType">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string"/>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="dateType">
    <xsd:simpleContent>
      <xsd:extension base="xsd:long"/>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:complexType name="objectType">
    <xsd:simpleContent>
      <xsd:extension base="xsd:string"/>
    </xsd:simpleContent>
  </xsd:complexType>
  <xsd:simpleType name="listType">
    <xsd:restriction base="xsd:string"/>
  </xsd:simpleType>
</xsd:schema>