When attempting to remove a location from a department OR remove a department from a location, I receive an error "Error 500 - Internal Server Error"
Looking at the log file I can see the following:
ERROR 2022-07-26 13:20:29,581 [http-nio-8080-exec-264] web.WebActionController (clarity:myuser@mycompany:19145220__08FC7ED6-310D-4955-99B8-1BCBDC6752E8:revmgr.deleteDeptLocnAssociation) com.niku.union.web.WebException: WebServiceAdapter::processRequest -> failed to process service request at com.niku.union.web.WebServiceAdapter.processRequest(WebServiceAdapter.java:223)
java.base/java.lang.Thread.run(Thread.java:834)Caused by: com.niku.union.service.ServiceException: Error while parsing location or department Id at com.niku.odf.service.ODFActionService.processRequest(ODFActionService.java:165)
A financially enabled company exists tied to the department location association that is being deleted
Ensure the following:
1. The OBS is not associated to any object
2. The departments and locations are not set into any object instance
3. There is no company linked to these departments and locations
Home > Financial Management > Companies.
SELECT COMPANY_NAME, LOCATIONID, DEPARTCODE FROM CLNTSUPP
If a company exists that is financially tied to the department and location, the association can not be removed. Change the company financial details before removing the department location association
Please also see: