Fixed a couple of typos We had this same issue using a folder that had some custom string properties added to its definition... and, as Jeff stated, the F: prefix fixed it. I accidentally used the D: prefix instead and got the same error. The workbench helped us figure that out - once the XML file, that defined the model, was loaded - we're using Alfresco 4.1.2 and also Community Edition 4.2.b, we could then see the namespace prefix.
We use the Apache Chemistry 0.8.0 binaries Mark On Feb 28, 2013 6:56 PM, "Mark Streit" <[email protected]> wrote: > We had this same issue using folder that had some custom string properties > added to it's definition... and, as Jeff stated, the F: prefix fixed it. I > accidentally used the D: prefix instead and go the same error. The > workbench helped us figure that out - once the XML file that defined the > model was loaded - we're using Alfresco 4.1.2 and also Community Edition > 4.2.b, we could then the namespace prefix. > > We use the Apache Chemistry 0.8.0-RELEASE binaries. > > Mark > > On Thu, Feb 28, 2013 at 6:17 PM, Jeff Potts <[email protected]> wrote: > >> Try "F:ip:akte". When you create an object you need to provide its ID. >> Because this is a folder, I suspect the ID starts with "F", not "D". When >> you do a query, you use the type's query name. >> >> Pop open your workbench and look at the type definition for ip:akte and >> you'll know for sure. >> >> Jeff >> >> On Feb 28, 2013, at 12:06 PM, Sebastian Danninger < >> [email protected]> wrote: >> >> > Dear all, >> > >> > I try to create a folder with custom type. >> > >> > Map<String, String> properties = new HashMap<String, String>(); >> > properties.put(PropertyIds.OBJECT_TYPE_ID, "D:ip:akte"); >> > properties.put(PropertyIds.NAME, name); >> > properties.put("ip:participants", participants); >> > properties.put("ip:owners", owners); >> > Folder root = session.getRootFolder(); >> > Folder folder = root.createFolder(properties, null, null, null, >> > session.getDefaultContext()); >> > >> > I get this error: >> > >> > Exception in thread "main" >> > >> org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: >> > Type 'D:ip:akte' is unknown! >> > >> > but using the alfresco node browser i get: >> > >> > Search *Search Language:*solr-cmis *Search:*SELECT * FROM ip:akte >> > Results (0 rows) NameNodeParent >> > >> > Time ms: 1562 >> > >> > >> > any suggestions or is it a repository specific bug? >> > >> > >> > using v0.8 >> > >> > >> > thanks >> > Sebastian >> >> >
