Info: Creating custom Fields with WebSDK results in Error: 'Config object failed to create. Failed to create or update metadata item: Failed to find immediate parent of the object.'

Info: Creating custom Fields with WebSDK results in Error: 'Config object failed to create. Failed to create or update metadata item: Failed to find immediate parent of the object.'

115
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:55 PM


Symptom


When using the WebSDK REST API to create custom fields, you may encounter the error: 'Config object failed to create. Failed to create or update metadata item: Failed to find immediate parent of the object.' 



Environment


24.3;25.1;25.3 TPP/TLSPDC API

Cause


This can be caused by not having sufficient permissions for the user that is using the API call.  They need to have "Write" permissions to the metadata root folder in the policy tree.



Resolution


By default, you do not see the Metadata Root folder.  You need to manually navigate to it in order to see it listed.   In your browser URL Box, navigate to https://yourTPFSever/vedadmin/Default.aspx?tsel=Policy&tclik=true&tdn=%5CVED%5CMetadata%20Root (replace yourTPFServer with your own TPF server name).

You will then see the following screen:

 

Simply add the user who is using the API to the permissions list and give them "write" permissions, save it, and then try the call again.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000wIXCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail