03-30-2020 08:09 AM
We want to create custom type for FOLDER object don’t want to modify OOTB one) that we have done following steps through alfresco share UI:
Approach 1:
Approach :2
Issue is : We are not able create the folder . Showing error below
02300016 Wrapped Exception (with status template): Type is not handled by this service: {}http://www.steepgraph.org/model/supplierportal/1.0
03-31-2020 05:14 AM
Ok, you are trying to create nodes by java code. Try switching to nodeService instead of fileFolderService. We always create nodes this way.
03-31-2020 01:19 AM
Maybe you are trying to create new type in approach 1 specifying the full uri? Sorry but you did not paste the url you called. I have always done that by specifying the prefix, try to add a prefix to your namespace in model.xml, and use it instead of full uri.
Also, in approach 1, i think you should deactivate the model you created from share UI.
Look at the logs at startup time too, to see whether there are errors on project startup.
Hope it helps
03-31-2020 03:56 AM
Thanks for replying.
I have used below url for creating Qname:
{http://www.steepgraph.org/model/supplierportal/1.0}Part_Number
ans specified prefix as sp.
Below is the sample code where I am trying to create folder of new type
QName custom_type = QName.createQName("{http://www.steepgraph.org/model/supplierportal/1.0}Part_Number");
FileInfo folderInfo = serviceRegistry.getFileFolderService().create(parentFolderNodeRef, folderName, custom_type);
03-31-2020 05:14 AM
Ok, you are trying to create nodes by java code. Try switching to nodeService instead of fileFolderService. We always create nodes this way.
Explore our Alfresco products with the links below. Use labels to filter content by product module.