Error - The sub-location path is invalid while creation a workspace
Hi All,
While trying to create workspaces using ECM_LINK API I am getting an error - Client received SOAP Fault from server: The sub-location path '[5295648:Country]\[5295648:LegalEntity]\Customers\[5295650:CustomerID:(6)]' is invalid. Check the workspace type configuration or contact your administrator. (depuaotcs000.epudev.biz:D:\Services\OpenText\ContentServer\Logs\csdfs, thread 3) Please see the server log to find more detail regarding exact cause of the failure.
I have checked all the settings and permissions but it seems it just doesn't allow us to create workspaces. Kindly help - here is my java code snippet where I am setting the parameters and passing it to create workspaces -
SimpleWorkspace testworkspace = new SimpleWorkspace();
//BO.setObjectType("Athlon_customer");
testworkspace.setName("123095");
//testworkspace.set
testworkspace.setTemplate(5295627);
testworkspace.setClassification(5315277);
testworkspace.setLocation(5315819);
long workspacenodeID = ECMlink.createSimpleWorkspace(testworkspace);
Comments
-
Maybe you need to pass the attribute values (Country,LegalEntity,CustomerID) for your categories with id 5295648,5295650? The way I see that the workspace would get created under the folder hierarchy generated using the pattern specified in Sub Location Path but is unable to find it the path.
0 -
Hi Vishal,
Is there any sample Java code available on knowledgebase to create workspaces using ECMLink? It will be really helpful.
Regards,
Karan
0 -
SOAPUI and calling the WSDL will be the best way to understand ECMLink.I use that for different XECM functions. These are JAX-WS services so creating a java Client will closely follow the standard way of accepting a WSDL and downloading local proxies. The Getting Started with Java link here (This is for Content Webservices and not ECMLink) https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=67792619&objAction=browse&viewType=1 can be used with the ECMLink wsdl as well.
I have always used CreateorUpdateWorkspaces call as I think the simpleworkspace call is for non leading app based calls not sure.
I think the paid version of SoapUI has a Java stub provision much like Postman has that shows different code syntax.
I chanced this on searching perhaps may work as it says it is JAX-WS compliant
https://subscription.packtpub.com/book/web-development/9781784394219/1/ch01lvl1sec10/generating-a-wsdl-first-web-service-using-soapui-tool-integration0 -
Hi Appu,
I am also using ECMLink wsdl, however I do not see any way out for creating workspaces using createorUpdateworkspace since ECMlink methods do not provide any for setting properties of objects or catgeories, I have followed the same path as in CWS where I built utility for bulk document upload and now I am trying for bulk workspace creation but its really frustrating to make way out ECMlink webservice as it is not providing complete methods. Are there any existing sample programs that are for real used to create workpsaces in Content server using Java?
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 151 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories