Adding custom Metadata when uploading a video from a DropFolder

Hi.

We have a DropFolder working correctly and we were able to set the entry metadata from the XML file when uploading the video entry.

We have created a Custom MetaData profile with two single Text fields and we need to set those fields during the video ingestion from the Drop Folder.

There is no much documentation explaining how to format the XML file so the custom metadata is set from the DropFolder.

We have tried several ways but without any success.

The nearest test is using this upload XML file:

<?xml version="1.0"?>
<mrss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ingestion.xsd">
    <channel>
        <item>
            <action>add</action>
            <type>1</type>
            <userId>cloudvideo-bulk@XXXXXXX</userId>

<name>pruebacalipso20191003001</name>
<description>pruebacalipso20191003001</description>
<categories>
<category>XXXXXXXX</category>
</categories>
            <accessControlId>4</accessControlId>
            <media>
                <mediaType>1</mediaType>
            </media>
            <contentAssets>
                <content>
<dropFolderFileContentResource filePath="pruebacalipso20191003001.mp4"/>
                </content>
            </contentAssets>
                        <customDataItems>
                                <action>update</action>
                                <customData metadataProfile="16">
                                        <xmlData>
                                                <metadata>
<IsPreview>0</IsPreview>
<previewID>51dd37b6490a5a21cc7b08823dfba27d</previewID>
                                                </metadata>
                                        </xmlData>
                                </customData>
                        </customDataItems>
        </item>
    </channel>
</mrss>

We get the following error:

customDataItems failed: Missing custom data metadataProfile attribute

But we have no idea which attribute is missing. We have tried putting both attributes (metadataProfile, metadataProfileID) but we get the same error.

I hope someone could lead us in the correct direction as we are clueless at the moment.

I am sure we are missing something but I have not been able to find any example or docs regarding this.

Regards,

Felipe Borrero
Operations Director
Calipso Comunicaciones S.A.

Using the instructions on this article:

http://techaticpsr.blogspot.com/2012/09/setting-up-kaltura-part-v.html

We ended up with the following XML

    <?xml version=“1.0”?>
<mrss xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=“ingestion.xsd”>
   <channel>
       <item>
           <action>add</action>
           <type>1</type>
           <userId>XXXXXXXXXXX</userId>
<name>pruebacalipso20191003001</name>
<description>pruebacalipso20191003001</description>
<categories>
<category>XXXXXX</category>
</categories>
           <accessControlId>4</accessControlId>
           <media>
               <mediaType>1</mediaType>
           </media>
           <contentAssets>
               <content>
<dropFolderFileContentResource filePath=“pruebacalipso20191003001.mp4”/>
               </content>
           </contentAssets>
                       <customDataItems>
                               <customData metadataProfileId =“16">
                                       <xmlData>
                                               <metadata>
                <IsPreview>0</IsPreview>
                <previewID>51dd37b6490a5a21cc7b08823dfba27d</previewID>
                                               </metadata>
                                       </xmlData>
                               </customData>
                       </customDataItems>
       </item>
   </channel>
</mrss>

And now we are getting this error:

customDataItems failed: The access to service [metadata_metadata-&gt;list] is forbidden

We haven´t figured out what is the correct way of populating customMetadata fields when ingesting videos from a DropFolder.

Any clue will be appreciated

Regards,

Felipe Borrero
Operations Director
Calipso Comunicaciones S.A.

This is the format that worked for me

 <item>
  <action>add</action>
  <type>1</type>
  <referenceId>ultrasound_121008_000000004948p2</referenceId>
  <name>Ultrasound - December 10, 2008</name>
  <description/>
  <categories>
    <category>MediaSpace&gt;site&gt;galleries&gt;R&gt;Radiology Education&gt;Ultrasound</category>
    <category>Bulk Import</category>
  </categories>
  <media>
    <mediaType>1</mediaType>
  </media>
  <customDataItems>
    <customData metadataProfileId="2352532" metadataProfile="MCMeta">
      <xmlData>
        <metadata>
          <LegacyID>6368</LegacyID>
        </metadata>
      </xmlData>
    </customData>
  </customDataItems>
</item>

Thanks for your help @jbrulz1. Seems that we have a permission problem. Our permission items table seems to be inconsistent

We tried with your example (changing attributes) and had the same output.

We had to change our strategy and use the referenceId field to build our solution.

Regards

Felipe Borrero