<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get the data from dataset by passing parameters to Stored procedures? in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Get-the-data-from-dataset-by-passing-parameters-to-Stored/m-p/884532#M12564</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to get data from the shared dataset by passing parameters and I'm calling stored procedures through the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm trying the access the data from the dataset using parameters I'm getting the following error,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The&amp;nbsp;value&amp;nbsp;for&amp;nbsp;parameter&amp;nbsp;'ItemPath'&amp;nbsp;is&amp;nbsp;not&amp;nbsp;specified.&amp;nbsp;It&amp;nbsp;is&amp;nbsp;either&amp;nbsp;missing&amp;nbsp;from&amp;nbsp;the&amp;nbsp;function&amp;nbsp;call,&amp;nbsp;or&amp;nbsp;it&amp;nbsp;is&amp;nbsp;set&amp;nbsp;to&amp;nbsp;null.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The following is my stored procedure is MSSQL&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CREATE PROCEDURE TEST_PROCDURE (@ProductName as VARCHAR(100),@BrandName as VARCHAR(100),@StoreName VARCHAR(100),@CityName VARCHAR(100))&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;if ((@ProductName IS NOT NULL) AND (@BrandName IS NULL) AND (@StoreName IS NULL) AND (@CityName IS NULL))&lt;BR /&gt;BEGIN&lt;BR /&gt;select PRD.PRODUCT_NAME,sum(PRD.LIST_PRICE)&lt;BR /&gt;from BikeStores.production.products PRD&lt;BR /&gt;where PRD.PRODUCT_NAME = @ProductName&lt;BR /&gt;group by PRD.PRODUCT_NAME&lt;BR /&gt;END&lt;BR /&gt;else if ((@ProductName IS NULL) AND (@BrandName IS NOT NULL) AND (@StoreName IS NULL) AND (@CityName IS NULL))&lt;BR /&gt;begin&lt;BR /&gt;select BRND.brand_name,sum(OITM.list_price)&lt;BR /&gt;from BikeStores.production.brands BRND&lt;BR /&gt;join BikeStores.production.products PRD on BRND.brand_id = PRD.brand_id&lt;BR /&gt;join BikeStores.sales.order_items OITM on PRD.product_id = OITM.product_id&lt;BR /&gt;where BRND.brand_name = @BrandName&lt;BR /&gt;group by BRND.brand_name&lt;BR /&gt;end&lt;BR /&gt;else if ((@ProductName IS NULL) AND (@BrandName IS NULL) AND (@StoreName IS NOT NULL) AND (@CityName IS NULL))&lt;BR /&gt;begin&lt;BR /&gt;select STS.store_name,sum(OITM.list_price)&lt;BR /&gt;from BikeStores.sales.stores STS&lt;BR /&gt;join BikeStores.sales.orders ORD on STS.store_id = ORD.order_id&lt;BR /&gt;join BikeStores.sales.order_items OITM on ORD.order_id = OITM.order_id&lt;BR /&gt;where STS.store_name = @StoreName&lt;BR /&gt;group by STS.store_name&lt;BR /&gt;end&lt;BR /&gt;else if ((@ProductName IS NULL) AND (@BrandName IS NULL) AND (@StoreName IS NULL) AND (@CityName IS NOT NULL))&lt;BR /&gt;begin&lt;BR /&gt;select STS.city,sum(OITM.list_price)&lt;BR /&gt;from BikeStores.sales.stores STS&lt;BR /&gt;join BikeStores.sales.orders ORD on STS.store_id = ORD.order_id&lt;BR /&gt;join BikeStores.sales.order_items OITM on ORD.order_id = OITM.order_id&lt;BR /&gt;where STS.city = @CityName&lt;BR /&gt;group by STS.city&lt;BR /&gt;end&lt;BR /&gt;END;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Following is the screenshot my shared dataset and parameters.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Following is the screen shot of calling it from postman&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 26 Dec 2019 13:49:18 GMT</pubDate>
    <dc:creator>saranrajk</dc:creator>
    <dc:date>2019-12-26T13:49:18Z</dc:date>
    <item>
      <title>Get the data from dataset by passing parameters to Stored procedures?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Get-the-data-from-dataset-by-passing-parameters-to-Stored/m-p/884532#M12564</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to get data from the shared dataset by passing parameters and I'm calling stored procedures through the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm trying the access the data from the dataset using parameters I'm getting the following error,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The&amp;nbsp;value&amp;nbsp;for&amp;nbsp;parameter&amp;nbsp;'ItemPath'&amp;nbsp;is&amp;nbsp;not&amp;nbsp;specified.&amp;nbsp;It&amp;nbsp;is&amp;nbsp;either&amp;nbsp;missing&amp;nbsp;from&amp;nbsp;the&amp;nbsp;function&amp;nbsp;call,&amp;nbsp;or&amp;nbsp;it&amp;nbsp;is&amp;nbsp;set&amp;nbsp;to&amp;nbsp;null.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The following is my stored procedure is MSSQL&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CREATE PROCEDURE TEST_PROCDURE (@ProductName as VARCHAR(100),@BrandName as VARCHAR(100),@StoreName VARCHAR(100),@CityName VARCHAR(100))&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;if ((@ProductName IS NOT NULL) AND (@BrandName IS NULL) AND (@StoreName IS NULL) AND (@CityName IS NULL))&lt;BR /&gt;BEGIN&lt;BR /&gt;select PRD.PRODUCT_NAME,sum(PRD.LIST_PRICE)&lt;BR /&gt;from BikeStores.production.products PRD&lt;BR /&gt;where PRD.PRODUCT_NAME = @ProductName&lt;BR /&gt;group by PRD.PRODUCT_NAME&lt;BR /&gt;END&lt;BR /&gt;else if ((@ProductName IS NULL) AND (@BrandName IS NOT NULL) AND (@StoreName IS NULL) AND (@CityName IS NULL))&lt;BR /&gt;begin&lt;BR /&gt;select BRND.brand_name,sum(OITM.list_price)&lt;BR /&gt;from BikeStores.production.brands BRND&lt;BR /&gt;join BikeStores.production.products PRD on BRND.brand_id = PRD.brand_id&lt;BR /&gt;join BikeStores.sales.order_items OITM on PRD.product_id = OITM.product_id&lt;BR /&gt;where BRND.brand_name = @BrandName&lt;BR /&gt;group by BRND.brand_name&lt;BR /&gt;end&lt;BR /&gt;else if ((@ProductName IS NULL) AND (@BrandName IS NULL) AND (@StoreName IS NOT NULL) AND (@CityName IS NULL))&lt;BR /&gt;begin&lt;BR /&gt;select STS.store_name,sum(OITM.list_price)&lt;BR /&gt;from BikeStores.sales.stores STS&lt;BR /&gt;join BikeStores.sales.orders ORD on STS.store_id = ORD.order_id&lt;BR /&gt;join BikeStores.sales.order_items OITM on ORD.order_id = OITM.order_id&lt;BR /&gt;where STS.store_name = @StoreName&lt;BR /&gt;group by STS.store_name&lt;BR /&gt;end&lt;BR /&gt;else if ((@ProductName IS NULL) AND (@BrandName IS NULL) AND (@StoreName IS NULL) AND (@CityName IS NOT NULL))&lt;BR /&gt;begin&lt;BR /&gt;select STS.city,sum(OITM.list_price)&lt;BR /&gt;from BikeStores.sales.stores STS&lt;BR /&gt;join BikeStores.sales.orders ORD on STS.store_id = ORD.order_id&lt;BR /&gt;join BikeStores.sales.order_items OITM on ORD.order_id = OITM.order_id&lt;BR /&gt;where STS.city = @CityName&lt;BR /&gt;group by STS.city&lt;BR /&gt;end&lt;BR /&gt;END;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Following is the screenshot my shared dataset and parameters.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Following is the screen shot of calling it from postman&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Dec 2019 13:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Get-the-data-from-dataset-by-passing-parameters-to-Stored/m-p/884532#M12564</guid>
      <dc:creator>saranrajk</dc:creator>
      <dc:date>2019-12-26T13:49:18Z</dc:date>
    </item>
  </channel>
</rss>

