我也试过在报表生成器中运行它,但收到了相同的错误消息。
RDL文件有1710行;下面是的一些节点的代码,这些节点似乎与之相关——reportParameters、reportLayout、queryParameters和commandText。
有人知道是什么导致了这个错误吗?我怎样才能解决?我读过一篇文章,建议隐藏参数必须具有默认值--SSRS the definition of the report is invalid;在8个参数中,7个是隐藏的,没有默认参数。但我不确定默认值应该是什么(如果必须有)。
感谢您的帮助。
第16至20行
<QueryParameters>
<QueryParameter Name=":PmPROD_WHSEPROD_CODE">
<Value>=Parameters!PmPROD_WHSEPROD_CODE.Value</Value>
</QueryParameter>
</QueryParameters>
第1533至1573行
<ReportParameters>
<ReportParameter Name="PmPROD_WHSEPROD_CODE">
<DataType>String</DataType>
<Prompt>Pm-PROD_WHSE.PROD_CODE</Prompt>
</ReportParameter>
<ReportParameter Name="g_invtot">
<DataType>Float</DataType>
<Prompt>invtot</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="g_grdtotinv">
<DataType>Float</DataType>
<Prompt>grdtotinv</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="g_totweight">
<DataType>Float</DataType>
<Prompt>totweight</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="g_grand_tot_wgt">
<DataType>Float</DataType>
<Prompt>grand_tot_wgt</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="g_grdtotwgt">
<DataType>Float</DataType>
<Prompt>grdtotwgt</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="g_totinv">
<DataType>Float</DataType>
<Prompt>totinv</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
<ReportParameter Name="g_totqtyonorder">
<DataType>Float</DataType>
<Prompt>totqtyonorder</Prompt>
<Hidden>true</Hidden>
</ReportParameter>
</ReportParameters>
第1574至1586行
<ReportParametersLayout>
<GridLayoutDefinition>
<NumberOfColumns>4</NumberOfColumns>
<NumberOfRows>2</NumberOfRows>
<CellDefinitions>
<CellDefinition>
<ColumnIndex>0</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>PmPROD_WHSEPROD_CODE</ParameterName>
</CellDefinition>
</CellDefinitions>
</GridLayoutDefinition>
</ReportParametersLayout>
第21至55行
<CommandText>
Select ORD_HDR.ORDER_SEQ_CODE ORD_HDR_ORDER_SEQ_CODE
, ORD_HDR.MASTER_ORDER_NBR
, ORD_HDR.STATUS_CODE
, ORD_HDR.ORDER_TYPE
, ORD_HDR.BILL_PO_ID
, ORD_HDR.SHIP_PO_ID
, ORD_HDR.SHIP_DATE
, ORD_HDR.DELIVERY_DATE
, ORD_HDR.SHIP_FROM_WHSE ORD_HDR_SHIP_FROM_WHSE
, ORD_DTL.PROD_CODE ORD_DTL_PROD_CODE
, ORD_DTL.CASES_ORD
, PRODUCT.DESCR
, Command.PRICE COMMAND_PRICE
, Command.NAME COMMAND_NAME
, Command.CITY COMMAND_CITY
, Command.STATE_CODE COMMAND_STATE_CODE
From (SELECT d.prod_code,
d.order_seq_code,
d.price + NVL (d.market_price_adj, 0) price,
h.cust_shipto_code,
c.name,
c.city,
c.state_code
FROM ord_dtl d, ord_hdr h, customer_shipto c
WHERE d.order_seq_code = h.order_seq_code
AND h.cust_code = c.cust_code
AND h.cust_shipto_code = c.cust_shipto_code) Command
INNER JOIN ROCCO.ORD_HDR ORD_HDR on (Command.ORDER_SEQ_CODE = ORD_HDR.ORDER_SEQ_CODE)
INNER JOIN ROCCO.ORD_DTL ORD_DTL on (Command.PROD_CODE = ORD_DTL.PROD_CODE and ORD_DTL.ORDER_SEQ_CODE = ORD_HDR.ORDER_SEQ_CODE)
INNER JOIN ROCCO.CUSTOMER CUSTOMER on (ORD_HDR.CUST_CODE = CUSTOMER.CUST_CODE)
INNER JOIN ROCCO.PRODUCT PRODUCT on (ORD_DTL.PROD_CODE = PRODUCT.PROD_CODE)
Where (((ORD_HDR.ORDER_TYPE <> 'tr') And (ORD_DTL.PROD_CODE = :PmPROD_WHSEPROD_CODE)) And (Not (ORD_HDR.STATUS_CODE in ('ED', 'dl', 'ip', 'sp')))) And (ORD_HDR.SHIP_FROM_WHSE = '06')
Order by ORD_DTL.PROD_CODE
, ORD_HDR.DELIVERY_DATE</CommandText>