<?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: Error when passing multiple values to a parameter in report builder in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3675118#M32685</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your swift response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the part that is confusing me because in my source stored procedure the data type for CandidateId is an integer, as shown below:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried what you mentioned but it throws the same error because the where statements looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WHERE CandidateId IN (@CandidateId_coast)&lt;/LI-CODE&gt;&lt;P&gt;But CandidateId is a integer and CandidateId_cost is an nvarchar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like the error comes the way multiple values are concatenated and then passed to the parameter, I've tried a few different expressions to break them up and pass them into the (@CandidateId) parameter but I haven't had any success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 09:06:41 GMT</pubDate>
    <dc:creator>Seanan</dc:creator>
    <dc:date>2024-02-02T09:06:41Z</dc:date>
    <item>
      <title>Error when passing multiple values to a parameter in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3673279#M32675</link>
      <description>&lt;P&gt;I have a report builder report that uses an Azure SQL database stored procedure for it's dataset.&lt;/P&gt;&lt;P&gt;In this report I have 2 parameter that are single value only and I now want to add a third parameter that allows multiple values to be passed to it.&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;I've setup my dataset properties -&amp;gt; parameters to include the new parameter value:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I enter my values I get the following error:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My stored procedure has a variable at the top:&lt;/P&gt;&lt;P&gt;@CandidateId int&lt;/P&gt;&lt;P&gt;and my where statement has the line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AND CandidateId IN (@CandidateId)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what may be causing this issue and how I can pass multiple values into this parameter?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3673279#M32675</guid>
      <dc:creator>Seanan</dc:creator>
      <dc:date>2024-02-01T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error when passing multiple values to a parameter in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3674316#M32679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="333322" data-lia-user-login="Seanan" class="lia-mention lia-mention-user"&gt;Seanan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your error message . It looks like CandidateId is an nvarchar datatype in the table and you've passed an int through your procedure, either use a forced conversion and convert @CandidateId to an nvarchar, or change the CandidateId datatype to an integer in the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DECLARE @CandidateID_coast NVARCHAR(15)

SET @CandidateID_coast = CAST(@CandidateID AS NVARCHAR)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use&amp;nbsp; @CandidateID_coast instead of @CandidateId in SELECT, INSERT and WHERE clause.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 01:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3674316#M32679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-02T01:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error when passing multiple values to a parameter in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3675118#M32685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your swift response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the part that is confusing me because in my source stored procedure the data type for CandidateId is an integer, as shown below:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried what you mentioned but it throws the same error because the where statements looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WHERE CandidateId IN (@CandidateId_coast)&lt;/LI-CODE&gt;&lt;P&gt;But CandidateId is a integer and CandidateId_cost is an nvarchar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like the error comes the way multiple values are concatenated and then passed to the parameter, I've tried a few different expressions to break them up and pass them into the (@CandidateId) parameter but I haven't had any success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 09:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3675118#M32685</guid>
      <dc:creator>Seanan</dc:creator>
      <dc:date>2024-02-02T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error when passing multiple values to a parameter in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3678756#M32698</link>
      <description>&lt;P&gt;Try, do not use "Parameters" page in DataSet configuration (left this empty), and enter parameter name directly into SQL "Query" like this&lt;/P&gt;&lt;PRE&gt;AND CandidateId IN (@CandidateId)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 21:13:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Error-when-passing-multiple-values-to-a-parameter-in-report/m-p/3678756#M32698</guid>
      <dc:creator>josef78</dc:creator>
      <dc:date>2024-02-04T21:13:31Z</dc:date>
    </item>
  </channel>
</rss>

