2016-08-08 8 views
0

ssrs report.myデータセットにはこのクエリが含まれていますが、例外はありません。any1はこのエラーに関する考えを持っていますか?データセット内システムが例外から外れる

TIA

クエリ:

select sum(actual_amount_lcy) as actual_amount_lcy,sum(Actual_Amount_GCY) as actual_amount_gcy, dgl.GLID_SK,fcta.rulecode,dgl.GL_Account_Code,dgl.[From Cost Centre],dgl.[To Cost Centre], fcta.Sales_Channel_SK,isnull(SC.Sales_Channel_Code,'') Sales_Channel_Code,fcta.Location_SK,isnull(lsf.Location_Code,'') Location_Code 
,fcta.Company_SK,fcta.Customer_SK,isnull(csf.Customer_Code,'')Customer_Code,isnull(csf.Customer_Name,'') as [Customer Name], fcta.Material_SK,isnull(dm.Material_Item_code,'') as Material_Item_code,isnull(dm.Material_Item_description,'') Material_Item_Description,isnull(dm.Material_Brand_Code,'') Material_Brand_Code,isnull(dm.Material_Brand_Description,'') as Material_Brand_Description,isnull(dm.Material_Sellingst_Code,'') as[Material Selling state code] ,isnull(dm.Material_Sellingst_name,'') as [Material_Selling_state_Name],isnull(dm.[Material Category Name],'') Material_Category_Name,isnull(dm.Material_Packtype_level_1,'') as MAterial_Packtype_level_1 
,sum(Actual_Amount_LCY) amount,isnull(sdd.name,'') as sales_channel_name,dc.Currency_Code,stc.company_name,stc.business_unit,stc.country_name, 
year(fy.TimeDate) as Year,Month(fy.TimeDate) as Month 


from FCT_Value_Management_Actual fcta with(nolock) 
inner join DIM_General_Ledger dgl with(nolock) on fcta.GLID_SK = dgl.GLID_SK 

left outer join DIM_Material DM with(nolock) on dm.Material_SK = fcta.Material_SK and fcta.Company_SK = DM.company_id 

left outer join DIM_Sales_Channel SC with(nolock) on SC.Sales_Channel_SK = fcta.Sales_Channel_SK and fcta.Company_SK = sc.company_id 
left outer join stg_dim_dimension08 sdd with(nolock) on sdd.code = SC.Sales_Channel_Code and sdd.company_id = SC.company_id 

left outer join DIM_Customer_ShipTo csf with(nolock) on csf.Customer_SK=fcta.Customer_SK and fcta.Company_SK = csf.company_id 
left outer join Setup_Company stc with(nolock) on sc.company_id = csf.company_id 

left outer join DIM_Location_ShipFrom lsf with(nolock) on fcta.Location_SK = lsf.Location_SK and fcta.Company_SK = lsf.company_id 

left outer join DIM_Financial_Year fy with(nolock) on fy.TimeKey = fcta.PostingCalendarID 
left outer join DIM_Currency dc with(nolock) on fcta.Currency_SK = dc.Currency_ID 

where fcta.company_SK in(1,2,3) 

group by dgl.GLID_SK,dgl.GL_Account_Code,fcta.Sales_Channel_SK,SC.Sales_Channel_Code 
,fcta.Company_SK,fcta.Customer_SK,fcta.Material_SK,dm.Material_Item_code 
,csf.Customer_Code,fcta.Location_SK,lsf.Location_Code, 
DM.Material_Sellingst_name, dm.Material_Packtype_level_1,dm.Material_Brand_Code,dm.Material_Brand_Description, 
year(fy.TimeDate) ,Month(fy.TimeDate) ,dgl.[From Cost Centre],dgl.[To Cost Centre],sdd.name,csf.Customer_Name,DM.Material_Item_description,DM.Material_Sellingst_Code,DM.Material_Sellingst_name,DM.[Material Category Name],fcta.rulecode 
,dc.Currency_Code,stc.company_name,stc.business_unit,stc.country_name 
+0

合計例外を貼り付けてください – TheGameiswar

+0

タイプ 'System.OutOfMemoryException'の例外がスローされました。 ---------------------------- レポート処理中にエラーが発生しました。 ---------------------------- ローカルレポート処理中にエラーが発生しました。 –

+0

私はあなたの解決策を最新にして、再構築を清掃することを提案します。また、一度iisresetを実行してください。この問題を解決します。 – pedram

答えて

0

あなたのローカルマシンまたはSSRSサーバー上でこのレポートを実行しているかどうか。これは、エラーが発生したときに正確に依存しますが、基本的にあなたレポートを実行するために物理メモリが不足しています。 Microsoft KB Article for the errorを参照してください。

有効なクエリで、不正なクロス・ジョインを想定しない場合: 1.物理RAMを増やします。 2. 64ビットSSRSへのアップグレード

データベーステーブルの構造を知らなくても、そのクエリを解析して、最適な実行が達成されているかどうかを判断することは困難です。私は、クエリがおそらくリファクタリングを必要とする部分であることを示唆しています。

関連する問題