2

AX2009 の組み込みクエリ (EmplTableListPage) を使用して SSRS レポートを作成しようとし、フィールド Dimension[1] (または任意のディメンション フィールド) を使用すると、Visual Studio 2008 のレポート プレビューが正しくレンダリングされます。 . レポートを SSRS サーバーに配置した後、次のようなエラーで読み込みに失敗します。

 An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'Dataset1'. (rsErrorExecutingCommand)
The AX query string 'SELECT EmplTable.1.Dimension[1],EmplTable.1.EmplId,DirPartyTable.1.Name FROM EmplTableListPage' is invalid. The valid format is 'SELECT [fields] FROM [AX query name]', where [fields] can be either '*' or a comma separated field list.

レポートから Dimension[1] フィールドを削除して再展開すると、エラーがなくなり、レポートが正しく表示されます。

AOT のクエリにフィールドを追加し、特に Dimension[1] を追加しようとしましたが、どちらも機能しませんでした (同じエラー メッセージ)。

SSRS レポートでディメンション フィールドのデータを表示するにはどうすればよいですか? Visual Studio では機能するのに、AX や Report Manager Web サイトでは機能しないのはなぜですか?

4

3 に答える 3

2

Microsoft のWhat's New in Microsoft Dynamics AX 2012 for Developersホワイトペーパーによると、2012 は AX 2009 でサポートされていなかった分析コードをサポートするように拡張されました。つまり、分析コード フィールドからのデータを SSRS レポートに表示することはできません。 ここに画像の説明を入力

于 2012-08-22T20:32:12.523 に答える
0

had the same problem but was able to resolve it. When you add the data set in SSRS you must add all fields in the dimension (your query has the dimension listed in fields) - and not just the field of the dimension that you want to access.

So the query for the dataset in ssrs should be:

SELECT * FROM EmplTable

The part of your query that is causing the error is: EmplTable.1.Dimension[1]

Get all the fields in your query in the dataset in SSRS and it should solve the problem.

于 2012-08-24T09:26:27.693 に答える
0

この種のアプローチを使用しました(可能なすべてのディメンションテーブルの組み合わせを結合します)。例は最初の2つのディメンションのみを対象としていることに注意してください。 LedgerTransSRSクエリ

ssrsからより:

SELECT LedgerTable.1.AccountName,Dimensions.1.DimensionCode:NAME(SysDimension),Dimensions.2.DimensionCode:NAME(SysDimension) FROM LedgerTransSRS

ちなみに、元のクエリ名はLedgerTransSRSではなく、元のクエリ名はLedgerTransSRS_companySufixでした。この例では_companySufixを消去しました。したがって、元のLedgerTransSRSクエリを変更しないでください(SYSレイヤーに存在し、使用されているため)。

于 2012-08-23T08:34:58.127 に答える