<?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 Re: SmallInt parameter in paginated report won't work as available values and default values in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3330396#M30513</link>
    <description>&lt;P&gt;This error sounds like you have a NVARCHAR column that you are trying to insert into an smallint, but some of the values in that column are not valid&lt;BR /&gt;&lt;BR /&gt;if you do the following I suspect you will get the same error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Select DISTINCT CAST(paramItems as smallint)&lt;/P&gt;
&lt;P&gt;FROM table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably need to either fix your data or convert your parameter to a text parameter&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 02:38:14 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2023-07-14T02:38:14Z</dc:date>
    <item>
      <title>SmallInt parameter in paginated report won't work as available values and default values</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3326007#M30493</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a paginated report that has a parameter that is a smallint. I originally want the report to load showing all rows without the effect of the parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want this parameter to have a drop down menu showing all the available values you can select from and I have set up Parameter Properties for Available Values to 'Get values from a query'.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As well, when the report initially loads, I would like the report to show all output before we filter it down using the parameter. So I set up the Parameter Properties for Default Values to be 'Get values from a query'. I have also selected 'Allow multiple values in the 'General' menu of the Parameter Properties.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query is simple, it's basically this:&lt;/P&gt;&lt;P&gt;Select DISTINCT paramItems&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the report, I get this error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have tried converting the field to NVARCHAR within the original SQL query but I still get errors and the paginated report will not show all rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get a smallint parameter to default to showing all the rows when it loads but be able to filter after the load? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 20:48:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3326007#M30493</guid>
      <dc:creator>Neka</dc:creator>
      <dc:date>2023-07-11T20:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: SmallInt parameter in paginated report won't work as available values and default values</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3330396#M30513</link>
      <description>&lt;P&gt;This error sounds like you have a NVARCHAR column that you are trying to insert into an smallint, but some of the values in that column are not valid&lt;BR /&gt;&lt;BR /&gt;if you do the following I suspect you will get the same error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Select DISTINCT CAST(paramItems as smallint)&lt;/P&gt;
&lt;P&gt;FROM table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably need to either fix your data or convert your parameter to a text parameter&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 02:38:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3330396#M30513</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-07-14T02:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: SmallInt parameter in paginated report won't work as available values and default values</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3338919#M30573</link>
      <description>&lt;P&gt;Thank you this fixed the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 15:11:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SmallInt-parameter-in-paginated-report-won-t-work-as-available/m-p/3338919#M30573</guid>
      <dc:creator>Neka</dc:creator>
      <dc:date>2023-07-19T15:11:50Z</dc:date>
    </item>
  </channel>
</rss>

