Error - The sub-location path is invalid while creating a workspace using ECM_LINK and CWS

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);