Error While Creating Domain

I tried to create a domain with 5 tables and one derived table. Whenever I tried to add some specific fields (three fields from one table), it gives me below error.

You are attempting to modify fields that are used in the following Ad Hoc views or reports. You can't save the Domain in its current state. To resolve dependencies, note the information below and remove the fields from the views and reports where they occur. 
One or more resources that you do not have permission to access.

When it allows me to add the table, why it is not allowing me to add these three columns.

 

muhammad.rehman's picture
Joined: Jun 30 2014 - 4:18am
Last seen: 8 years 1 month ago

2 Answers:

You could try "Configuring Domain Dependency Behavior". You can set the defaultDomainDependentsBlockAndUpdate property in applicationContext.xml to false. Ad Hoc views that use the fields you make may become unusable, but it sounds like that it less of a problem for you than the current behavior. See this link in the docs: http://community.jaspersoft.com/documentation/jasperreports-server-admin...
elizam's picture
13946
Joined: Mar 5 2012 - 9:19am
Last seen: 2 years 7 months ago

When it says:  'You are attempting to modify fields that are used in the following Ad Hoc views or reports'

Is there a list of objects (Views, Reports, etc) after the mesage?  Those objects (If they are there - this is a new feature, there could be a bug) are dependent on something that you are changing (removing, renaming, etc).

The Domain designer does this as part of its sanity checker when you either push the 'check' button or when you exit the designer.

So, if you're getting a list, you need to deal with each object on the list. If you're not getting a list, that probably is a bug. It could be that you don't have permissionto access the dependent object - hence the 'One or more resources that you do not have permission to access.' clause.

djohnson53's picture
162742
Joined: May 25 2012 - 11:10am
Last seen: 1 year 1 month ago
Feedback
randomness