SSRS Help

Hello,

Trying to create my first report using MS SQL Reporting Services in place of Infomaker.

My data source is a stored procedure with 1 of the parameters being membership level. The parameter is a multiple value string. My stored proc has the following line to deal with it:

 

create table #tlevels(memb_level char(3) null)

    Insert    into #tlevels

    Select    memb_level
    From    t_memb_level
    WHERE     charindex(',' + memb_level + ',' , ',' + @level_str + ',') > 0

 

I need help because for some unknown reason, SSRS is not liking the way that Tessitura is sending the string value of the member levels.

For example, from the report parameter selection, the following is output: "VIP","IVI","BA+","CB+"

If I change the parameter values manually to:

VIP,IVI,BA+,CB+

then the SSRS report works.

Any ideas on what I need to do to get it to work?

 

Christian @ The Tech Museum in San Jose CA

 

Parents
  • A Multi-select parameter in SSRS is really an array datatype.  A multi-select parameter in Tessitura is really just a string.  Try changing the parameter in SSRS to a string, uncheck Multi-Select and you should be good to go. 

     

    You can’t pass a SSRS multi-select parameter in SSRS defined as ‘multi-select’ to a stored procedure, but you can use the parameter in a where clause of a SQL query like this:

     

    Select column1, column2

    From SomeTable

    Where somecolumn in (@MyMultiSelectParameter)

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Christian Mauri
    Sent: Thursday, April 02, 2009 2:10 PM
    To: Ryan Creps
    Subject: [Tessitura Technical Forum] SSRS Help

     

    Hello,

    Trying to create my first report using MS SQL Reporting Services in place of Infomaker.

    My data source is a stored procedure with 1 of the parameters being membership level. The parameter is a multiple value string. My stored proc has the following line to deal with it:

     

    create table #tlevels(memb_level char(3) null)

        Insert    into #tlevels

        Select    memb_level
        From    t_memb_level
        WHERE     charindex(',' + memb_level + ',' , ',' + @level_str + ',') > 0

     

    I need help because for some unknown reason, SSRS is not liking the way that Tessitura is sending the string value of the member levels.

    For example, from the report parameter selection, the following is output: "VIP","IVI","BA+","CB+"

    If I change the parameter values manually to:

    VIP,IVI,BA+,CB+

    then the SSRS report works.

    Any ideas on what I need to do to get it to work?

     

    Christian @ The Tech Museum in San Jose CA

     




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums.

    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 04/02/09 06:09:00

  • Ryan,

    Thanks for your reply. I was just watching your webinar on SSRS via the new site. Thanks for that too.

    I have tried changing the parameter to non multi select as well and still doesn't work. If I keep the parameter unhidden, I can see what Tessitura sends over and it is "VIP","IVI","BA+","CB+"

    If I remove the quotation marks, the SSRS report works as intended.

    Christian

  • Tessitura always adds double-quotes as a text qualifier in a multiselect “string”.

     

    Two things you can do to remove the quotations, either do a replace in the stored procedure:

    Replace(@myparameter, ‘”’, ‘’)  -- minus the slanted quotes

     

    Or you can add the quotes to the charindex()

    create table #tlevels(memb_level char(3) null)

        Insert    into #tlevels

        Select    memb_level
        From    t_memb_level
        WHERE     charindex(',' + memb_level + ',' , ',' + @level_str + ',') > 0

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Christian Mauri
    Sent: Thursday, April 02, 2009 2:30 PM
    To: Ryan Creps
    Subject: Re: [Tessitura Technical Forum] RE: SSRS Help

     

    Ryan,

    Thanks for your reply. I was just watching your webinar on SSRS via the new site. Thanks for that too.

    I have tried changing the parameter to non multi select as well and still doesn't work. If I keep the parameter unhidden, I can see what Tessitura sends over and it is "VIP","IVI","BA+","CB+"

    If I remove the quotation marks, the SSRS report works as intended.

    Christian

    From: Ryan Creps <bounce-ryancreps9649@tessituranetwork.com>
    Sent: 4/2/2009 4:16:32 PM

    A Multi-select parameter in SSRS is really an array datatype.  A multi-select parameter in Tessitura is really just a string.  Try changing the parameter in SSRS to a string, uncheck Multi-Select and you should be good to go. 

     

    You can’t pass a SSRS multi-select parameter in SSRS defined as ‘multi-select’ to a stored procedure, but you can use the parameter in a where clause of a SQL query like this:

     

    Select column1, column2

    From SomeTable

    Where somecolumn in (@MyMultiSelectParameter)

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Christian Mauri
    Sent: Thursday, April 02, 2009 2:10 PM
    To: Ryan Creps
    Subject: [Tessitura Technical Forum] SSRS Help

     

    Hello,

    Trying to create my first report using MS SQL Reporting Services in place of Infomaker.

    My data source is a stored procedure with 1 of the parameters being membership level. The parameter is a multiple value string. My stored proc has the following line to deal with it:

     

    create table #tlevels(memb_level char(3) null)

        Insert    into #tlevels

        Select    memb_level
        From    t_memb_level
        WHERE     charindex(',' + memb_level + ',' , ',' + @level_str + ',') > 0

     

    I need help because for some unknown reason, SSRS is not liking the way that Tessitura is sending the string value of the member levels.

    For example, from the report parameter selection, the following is output: "VIP","IVI","BA+","CB+"

    If I change the parameter values manually to:

    VIP,IVI,BA+,CB+

    then the SSRS report works.

    Any ideas on what I need to do to get it to work?

     

    Christian @ The Tech Museum in San Jose CA

     




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums.

    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 04/02/09 06:09:00




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums.

    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 04/02/09 06:09:00

  • Ryan, That did the trick. Thanks again for your help.

    Christian

  • Not a problem!

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Christian Mauri
    Sent: Thursday, April 02, 2009 3:10 PM
    To: Ryan Creps
    Subject: Re: [Tessitura Technical Forum] RE: RE: SSRS Help

     

    Ryan, That did the trick. Thanks again for your help.

    Christian

    From: Ryan Creps <bounce-ryancreps9649@tessituranetwork.com>
    Sent: 4/2/2009 4:41:29 PM

    Tessitura always adds double-quotes as a text qualifier in a multiselect “string”.

     

    Two things you can do to remove the quotations, either do a replace in the stored procedure:

    Replace(@myparameter, ‘”’, ‘’)  -- minus the slanted quotes

     

    Or you can add the quotes to the charindex()

    create table #tlevels(memb_level char(3) null)

        Insert    into #tlevels

        Select    memb_level
        From    t_memb_level
        WHERE     charindex(',' + memb_level + ',' , ',' + @level_str + ',') > 0

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Christian Mauri
    Sent: Thursday, April 02, 2009 2:30 PM
    To: Ryan Creps
    Subject: Re: [Tessitura Technical Forum] RE: SSRS Help

     

    Ryan,

    Thanks for your reply. I was just watching your webinar on SSRS via the new site. Thanks for that too.

    I have tried changing the parameter to non multi select as well and still doesn't work. If I keep the parameter unhidden, I can see what Tessitura sends over and it is "VIP","IVI","BA+","CB+"

    If I remove the quotation marks, the SSRS report works as intended.

    Christian

    From: Ryan Creps <bounce-ryancreps9649@tessituranetwork.com>
    Sent: 4/2/2009 4:16:32 PM

    A Multi-select parameter in SSRS is really an array datatype.  A multi-select parameter in Tessitura is really just a string.  Try changing the parameter in SSRS to a string, uncheck Multi-Select and you should be good to go. 

     

    You can’t pass a SSRS multi-select parameter in SSRS defined as ‘multi-select’ to a stored procedure, but you can use the parameter in a where clause of a SQL query like this:

     

    Select column1, column2

    From SomeTable

    Where somecolumn in (@MyMultiSelectParameter)

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Christian Mauri
    Sent: Thursday, April 02, 2009 2:10 PM
    To: Ryan Creps
    Subject: [Tessitura Technical Forum] SSRS Help

     

    Hello,

    Trying to create my first report using MS SQL Reporting Services in place of Infomaker.

    My data source is a stored procedure with 1 of the parameters being membership level. The parameter is a multiple value string. My stored proc has the following line to deal with it:

     

    create table #tlevels(memb_level char(3) null)

        Insert    into #tlevels

        Select    memb_level
        From    t_memb_level
        WHERE     charindex(',' + memb_level + ',' , ',' + @level_str + ',') > 0

     

    I need help because for some unknown reason, SSRS is not liking the way that Tessitura is sending the string value of the member levels.

    For example, from the report parameter selection, the following is output: "VIP","IVI","BA+","CB+"

    If I change the parameter values manually to:

    VIP,IVI,BA+,CB+

    then the SSRS report works.

    Any ideas on what I need to do to get it to work?

     

    Christian @ The Tech Museum in San Jose CA

     




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums.

    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 04/02/09 06:09:00




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums.

    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 04/02/09 06:09:00




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums.

    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.0.238 / Virus Database: 270.11.33/2031 - Release Date: 04/02/09 06:09:00

  • Ryan,

     

    1 more question. In the SSRS report I am not seeing the parameter values displayed for the multi select member level strings. The other non multi paramters are showing up fine. I have the table setup properly as you demonstrated in your webinar:

    =Fields!formatted_value.Value

    any ideas?

    Christian

  • Christian,

    This has been found to be a bug in v8.0.0.3.  This will be fixed in v9.0, and I will email you offline with a fix.

    -Ryan

  • I have a similar problem described above but my multi-select passes a string of numbers rather than a string of varchars and applying any combination of the above changes does not lead me to success.

    I want to add a multi-select to allow users to pick more than one fund_no (parameter is called fund_no_str).

    SSRS - fund_no_str is set up as a string parameter, single-select, hidden, allow NULLs and blanks.

    GSRSETUP -  Fund parameter is set up as string, multiselect.

    When two funds are selected Tessitura passes the string as '110,111'. Reporting Services reports "

  • The 'fund_no_str' parameter is missing a value
  • ".

    Selecting one fund only works fine.

    Can anyone help?

    David Joyce (Sydney Opera House)

  • Hi David,

    Good day.

    we have the same problems too.

    at last, I have to give up passing parameters from Tessitura, and create datasets for parameters from SQL reporting service.

    so even without dropdown lists from Tessitura, you still can have them from SQL reporting service.

    have fun

    Ben

     

  • Guys,

    I figured out the proper syntax to pass fund no as a string. It took me awhile but it can be done. I'll be in touch very soon with the correct syntax. Passing the multi selct in SSRS is different than Infomaker, so the SQL syntax of your charindex command is different. 

    Thanks,

    Christian @ The Tech

  • Reply Children