dhoppmann Posted December 3, 2010 Share Posted December 3, 2010 A client is trying to delete a report from the repository and I told him to remove scheduled reports associated with the reports before attempting to delete the report because I figured there was a foreign key from scheduled reports pointing to them. He did that and for a couple of them he is still getting this error:The selected item(s) cannot be removed due to being referenced by other objects. What other foreign keys/objects need to be deleted to allow this. I haven't seen this before and am not by a system to check the db fk's, hoping someone could have an answer....Thanks! Link to comment Share on other sites More sharing options...
dhoppmann Posted January 5, 2011 Author Share Posted January 5, 2011 JIReportUnit.id has foreign key references from these table.columns, but there's nothing in those tables with the id of the reports I'm looking at. If anybody could help that would be great....JIAdhocReportUnit.idJIDataDefinerUnit.idJIReportOptions.report_idJIReportUnitInputControl.report_unit_idJIReportUnitResource.report_unit_idUsing 3.7.1... Link to comment Share on other sites More sharing options...
dhoppmann Posted January 5, 2011 Author Share Posted January 5, 2011 OK, manually deleting it from the database back to the JIResource.id showed me that there were constraints with JIResource.id in:JIDashboardResource.resource_idJIAccessEvent.resource_id...so someone must have referenced it in a dashboard. Adios report! Link to comment Share on other sites More sharing options...
ramnik Posted January 7, 2011 Share Posted January 7, 2011 Yes ..if teh report is being used in dashboard or as sub-report in another report , you wont be able to delete. This is refrential integrity feature in use.Ramnik KaurSenior QA Engineer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now