Hello im currently running this query (see below) in devrived tables when creating a domain in jaspersofts bi aws suite. However when i do i get the following error "Cannot execute JDBC Query. org.postgresql.util.PSQLException: ERROR: transaction is read-only ." Can anyone explain why and point me in the right direction. Cheers SELECT company.companyStatus, company.CompanyId, company.companyName, count(distinct users.userid) as TotalUsers,sum(case when UserStatusID = 2 then 1 else 0 end) as ActiveUsers,sum( case when UserStatusID= 3 then 1 else 0 end) as SuspendedUsers, (Select COUNT (distinct usersessionid) From UserSession inner join users on usersession.UserID=users.UserIDwhere usersession.UserID=users.UserID and users.companyid= company.CompanyID) as TotalLogin, (Select COUNT( Name) From Template inner join merchendisingmodule on Template.TemplateID= merchendisingmodule.TemplateId inner join Project on Template.ProjectID= Project.ProjectID where Template.TemplateID=merchendisingmodule.TemplateId and Project.companyid= company.CompanyID)as CurrentModules, (Select count(merchendisingmodule.CreatedDate) from merchendisingmodule inner join Template on Template.TemplateID= merchendisingmodule.TemplateId inner join Project on Template.ProjectID= Project.ProjectID where Template.TemplateID=merchendisingmodule.TemplateId and Project.companyid= company.CompanyID)as ModulesCreated, (Select count(merchendisingmodule.UpdatedDate) from merchendisingmodule inner join Template on Template.TemplateID= merchendisingmodule.TemplateId inner join Project on Template.ProjectID= Project.ProjectID where Template.TemplateID=merchendisingmodule.TemplateId and Project.companyid= company.CompanyID)as ModulesUpdated, (Select COUNT(merchendisingarea.merchendisingareaid) from merchendisingarea inner join Project on Project.ProjectID= merchendisingarea.ProjectID where Project.ProjectID=merchendisingarea.ProjectID and Project.companyid= company.CompanyID) as Currentareas, (Select COUNT (merchendisingarea.name) from merchendisingarea inner join Project on Project.ProjectID= merchendisingarea.ProjectID where Project.ProjectID=merchendisingarea.ProjectID and Project.companyid= company.CompanyID) as AreasCreated, (select COUNT (merchendisingarea.UpdatedDate) from merchendisingarea inner join Project on Project.ProjectID = merchendisingarea.ProjectID where Project.ProjectID=merchendisingarea.ProjectID and Project.companyid= company.CompanyID) as AreasUpdated, (Select SUM ( case when merchendisingarea.PublishStatus = 1 then 1 else 0 end) from merchendisingarea inner join PublishingStatus on PublishingStatus.PublishStatusId = merchendisingarea.PublishStatus inner join Project on merchendisingarea.ProjectID = Project.ProjectID where PublishingStatus.PublishStatusId=merchendisingarea.PublishStatus and Project.companyid= company.CompanyID) as SuccessPublished, (Select SUM ( case when merchendisingarea.PublishStatus = 3 then 1 else 0 end) from merchendisingarea inner join PublishingStatus on PublishingStatus.PublishStatusId= merchendisingarea.PublishStatus inner join Project on merchendisingarea.ProjectID = Project.ProjectID where PublishingStatus.PublishStatusId=merchendisingarea.PublishStatus and Project.companyid= company.CompanyID) as FailedPublished from Company inner join users on users.companyid=company.companyid group by company.companyStatus, company.companyid, company.companyname