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
Solved! Go to Solution.
Ok, you are trying to create nodes by java code. Try switching to nodeService instead of fileFolderService. We always create nodes this way.
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
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);
Ok, you are trying to create nodes by java code. Try switching to nodeService instead of fileFolderService. We always create nodes this way.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.