Query Works in Query Designer - Doesn't Work in Report

I have a report that runs just fine in the Query Designer, but for some reason does not run when I run the actual report. Here is the query in question:
SELECT
{[Measures].[Employee Hours]} ON COLUMNS
,NON EMPTY
[Employee].[Employee Full Name].[Employee Full Name].ALLMEMBERS*
[Employee].[Employee Discipline].[Employee Discipline].ALLMEMBERS*
[Employee].[Employee Department].[Employee Department].ALLMEMBERS*
[Employee Hours Time Category].[Utilization Category].[Utilization Category].ALLMEMBERS*
[Employee Hours Time Category].[Time Category].[Time Category].ALLMEMBERS*
[Project].[Client].[Client].ALLMEMBERS*
[Time].[Year].[Year].ALLMEMBERS*
[Time].[Month].[Month].ALLMEMBERS*
[Time].[Formatted Week].[Formatted Week].ALLMEMBERS
DIMENSION PROPERTIES
MEMBER_CAPTION
,MEMBER_UNIQUE_NAME
ON ROWS
FROM
SELECT
LastPeriods (7, StrToMember
(@SelectedWeek
,CONSTRAINED
)) ON COLUMNS
FROM
SELECT
StrToSet
(@Department
,CONSTRAINED
) ON COLUMNS
FROM
SELECT
StrToSet
(@Disciplines
,CONSTRAINED
) ON COLUMNS
FROM [OLSON BI]
CELL PROPERTIES
VALUE
,BACK_COLOR
,FORE_COLOR
,FORMATTED_VALUE
,FORMAT_STRING
,FONT_NAME
,FONT_SIZE
,FONT_FLAGS;
The result set is below:
When I try to run the actual report, I get an error on the parameter being passed in. I'm passing in a date that is formatted as a varchar as you can see from the screen shot below:
Not sure what's going on here, but any insight would be appreciated!
Thank you!
A. M. Robinson

Hi ansonee,
Because the query execute successfully in the query designer, so the issue can be caused by the parameter in the report.
If you have a string such as "@string" somewhere in a query, and it is not mapped correctly in the reporting services parameter section, it will send that string directly to the provider with no substitution of parameter values. This will cause
an error like the above. Please check carefully. Here has a thread that is similar to yours, please see:
SSRS error in MDX expression syntax is incorrect
SSRS failing when parameter value contain SPACE in between
Hope this helps.
Regards,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support

Similar Messages

  • How SCCM works internally, about design concepts and working principal of ConfigMgr?

    Hi Guys,
    Could you please recommend me any sort of data or link which explians
    how SCCM works internally, about design concepts and working principal of ConfigMgr.
    I have gone through many sites and videos but they only talk about how to work on SCCM with features however they do not talk about
    how SCCM works\inner working of ConfigMgr.
    Thanks very much in Advance!
    Regards,
    Chandan

    Not really sure what you're looking for here. Not much is explicitly published on the internals and most of what is "known" is anecdotal or based on reverse engineering by the community.There are specific things that have been documented fairly
    well, but those are scattered among various blogs. We can potentially address direct questions here in the forums or point you to that info, but there's not much to really direct you to as a single source because it doesn't really exist in general.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

  • Email doesn't work on iOS, email doesn't work on iOS

    My email went out on my IOS 7 devices for my me and icloud email.Yesterday....
    I've reinstalled and still nothing but works on 4g system doesn't work on internet system...
    Frontier states nothing wrong..
    Iphone 5 4gs/ipad...nothing works on the internet.. but will work on 4g...
    Connection status: Icloud IMAP could not connect..

    Means your ISP or your router blocks ports used by icloud mail. You can find those in that article
    http://support.apple.com/kb/ts1629
    May be it is your router if you trust Frontier...

  • Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Hello lila54,
    It sounds like your Wi-Fi network is working if your desktop works with it, we just need to get the Wi-Fi on your iPhone and iPad connected to it.  I found a couple of resources to help with not being able to connect to Wi-Fi on an iOS device.
    I recommend following the steps in this tutorial first (the steps should work on the iPhone and iPad):
    Join a network
    http://www.apple.com/support/iphone/assistant/wifi/
    If you are still having trouble connecting to Wi-Fi, follow the steps in this article (you can skip any steps you have already taken):
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for posting in the Apple Support Communities. 
    Best,
    Sheila M.

  • Impdp work with system but doesn't work with another user

    Hi,
    We have troubles with import of transportable tablespace, when i try to import it with system the import is done currectly, when i try to use another user we receive this message :
    impdp bmcese/***** directory=TTS_DIR dumpfile=RMCCO_RMC_ANA_STS_ABB_CO121001.dmp TRANSPORT_DATAFILES=/data/TTS/RMCCO_RMC_ANA_STS_ABB_CO121001.dbf logfile=tts_imp_proc.log
    ORA-31626: il job non esiste
    ORA-31633: impossibile creare la tabella principale "BMCESE.SYS_IMPORT_TRANSPORTABLE_05"
    ORA-06512: a "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: a "SYS.KUPV$FT", line 1020
    ORA-00959: tablespace 'RMCCO_RMC_UTZ_PP080531' inesistente
    this happens only on development server and it work into test server, so i don't think that the problem is in grants(i controlled that are the same and i have tried with DBA grant too and we received the error).
    Another strange thing is that tablespace 'RMCCO_RMC_UTZ_PP080531' is not included into the dump that i try to import and it doesn't exist in the database.
    Thx
    Edited by: user11272630 on 10-ott-2012 8.40

    I've extraced the role/privs granted to BMCESE using this query
    select granted_role from DBA_ROLE_PRIVS where grantee='BMCESE'
    union
    select privilege from DBA_SYS_PRIVS where grantee='BMCESE';
    Result on Server where the impdp doesn't work:
    GRANTED_ROLE
    CONNECT
    CREATE ANY TABLE
    CREATE PROCEDURE
    CREATE SESSION
    CREATE TABLE
    CREATE TABLESPACE
    CREATE TRIGGER
    CREATE VIEW
    DATAPUMP_IMP_FULL_DATABASE
    DROP TABLESPACE
    EXECUTE_CATALOG_ROLE
    EXPORT FULL DATABASE
    IMPORT FULL DATABASE
    IMP_FULL_DATABASE
    QUERY REWRITE
    RESOURCE
    UNLIMITED TABLESPACE
    results on server where the impdp work:
    GRANTED_ROLE
    CONNECT
    CREATE PROCEDURE
    EXECUTE_CATALOG_ROLE
    IMP_FULL_DATABASE
    UNLIMITED TABLESPACE
    BMCESE has more grant and privs on the server where the impdp doesn't work.
    I've controlled the grant of read, write on the directory.
    I've tried to give DBA priv too to the user.
    So i don't think in a priv problem, i think that the problem is in the unexistent tablespace reported in the error.
    Someone has another suggest to give.
    Thx

  • ABAP WebDynpro work item in uwl doesn't work

    Hi,
    an ABAP WebDynpro by itself works. But using it in a uwl work item doesn't work:
    After clicking the button to start the WebDynpro in a uwl work item a browser opens but the site could not be load.
    So something is wrong with the url:
    http://<host>:<port>/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fevery_user%2Fgeneral%2Fuwl%2Fcom.sap.netweaver.bc.uwl.uwlLaunchWebdynproABAP&System=T70CLNT100&WebDynproNamespace=sap&WebDynproApplication=zwps_bspobj_Ship_set&DynamicParameter=wi_id%3D000000004020%26WI_ID%3D000000004020&CurrentWindowId=WID1181552609217&NavMode=1
    This is the uwl configuration part:
    [code]
    <ItemType name="uwl.task.webflow.TS97300003.T70CLNT100" connector="WebFlowConnector"
              defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="T70CLNT100" externalType="TS97300003" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher"
                    returnToDetailViewAllowed="yes" launchInNewWindow="yes"
                    launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,
                                             menubar=yes,location=yes,directories=yes">
              <Properties>
                <Property name="WebDynproApplication" value="zwps_bspobj_Ship_set"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,
                                         toolbar=yes,menubar=yes,location=yes,directories=yes"/>
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="WebDynproNamespace" value="sap"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
    </ItemType>[/code]
    What's wrong? Any idea?
    Thanks,
    Susanne

    Hi,
    Your settings seems alright, Can you look at the default trace and UWL log?
    U can find UWL log here
    \usr\sap\<SID>\JC<instance number>\j2ee\cluster\server0\log\applications\sap.com\uwl
    and default trace in \server0\log .. please check the current default trace.
    Cheers!!
    Ashutosh

  • Works... Doesn't Work... Works!.... Doesn't Work.... Trust Time Machine?

    My setup:
    MacBook Pro
    PowerMac G5 + External SATA Drive
    Airport Extreme + External USB Drive
    The PM backs up fine to the External SATA, about 90% of the time.
    The MBP backs up to the External SATA (shared) about 5% of the time so I purchased the External USB for use with the Airport Extreme.
    The first time I set it up and used it, it worked fine. Then it stopped working after a MBP reboot. Then randomly, this morning I noticed it was working again. But now it's not. Whenever it doesn't work it fails with "*+Time Machine Error. The backup volume could not be mounted.+*" This occurs almost 100% of the time.
    The volume is in fact, already mounted. I can browse it and it is fully accessible on my desktop.
    Now, if it never worked it would be one thing, but having this randomly work really has me fed up.
    How could I ever trust TM knowing that the one time I really need it it has a greater than 50% chance of failing?
    One more thing *I can browse my old backups using Time Machine as if nothing were wrong.*
    Thoughts?

    { so i formatted the disk, reinstalled leopard and restored all my information using my time machine back-up file.
    how exactly did you do that? please be specific. did you use system restore utility on the install DVD? did you use setup assistant after the reinstall? or did you use migration assistant later? or did you do it by hand?
    in general you can reset the password as follows:
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/11627.html
    however, depending on what you did the problem might be something else.

  • HT201412 My iphone's home button is not responding when I press it.  I sometimes have to press it several times before it works or it just doesn't work at all.  Any advise?

    My iphone's home button doesn't always work.  I sometimes have to press it several times to get to my home screen.  Many times this doesn't work and I just give up.  It is happening more frequently now, almost daily and usually lasts all day when it's having a bad day.  I've tried calibrating it and I've also tried a phone reset; neither helped.  Any suggestions?

    Re-Calibrate it. Press the power button until the slide to turn off shows. DO NOT TURN IT OFF. Leave it on the slide to unlock screen and press the home button for about 30 seconds until the slide to turn off screen leaves.

  • Sound Blaster ZX works with no drivers, doesn't work with drivers installed...

    Greetings one and all,
    I've just built a Windows 8.1 Enterprise system on an Asus Z9PA-D8 with dual processors installed. When any of the sound blaster drivers (CD or downloaded) are installed the card stops working. Uninstall everything, and it works again.
    I hope this is some simple configuration issue.
    Anybody got any suggestions?

    Okay, it was a configuration issue. I ran diagnostics and configured to output to speakers.

  • File.numbers works on Intel and doesn't work on G5

    I created a Numbers spreadsheet on my G5. The last saved version made on the G5 will not open on G5. I copied it to MacBook Pro, and it opened. I saved it is as a fresh copy (Save As) on the Macbook Pro, and the copy will not open on G5. It still opens on the Macbook Pro. Numbers also is slower on my G5 than on the Macbook Pro though most applications run noticeably faster on the G5 (like Photoshop CS).
    I hope Aple isn't already abandoning full support for the G5 Macs.

    I don't think anything is "clobbered" in the system. Everything else works and the same spread sheet works on earlier edit stages. It was just the latest edit that does not work. I also ran Repair Disk Permissions and rebuilt the file structure with Disk Warrior before the post. It is a reasonably complex spread sheet. I think that the G5 version just has a bug. I would like to have Apple test the spread sheet

  • Alarm & Event Query To Spreadsheet File VI doesn't work correctly (DSC 7.1)

    I am using the Alarm & Event Query To Spreadsheet File VI to write alarms/events to an Excel spreadsheet. However there are two things it does wrong:
    1. Global variables in the header are not correctly inserted. I am using the header "{creationDate}{delimiter}{creationTime}" but none of the variables are translated to their actual values. The same header in Write Traces To Spreadsheet VI works correctly, so I assume it is only the Alarm & Event Query To Spreadsheet File VI that isn't working.
    2. My display format is set to display the date of the alarms but it never appears. Set time/ACK time, etc all appear, just not the date.
    Can anyone explain what might be wrong?

    Hi AndrewWilliams,
    I have been looking into this problem for you and I can't quite figure out exactly what it is you are trying to do. Could you possibly send me your VI's (for the Alarm & Event Query To Spreadsheet File VI and for the Write Traces To Spreadsheet VI) so I can get a better idea of it.
    Have you looked at the Export Alarms to File VI in the LabVIEW examples that are installed with the DSC module. This is a very good VI and it might help you to see any faults in your code.
    Hope this helps, I look forward to speaking to you soon.
    Best regards,
    Peter H.
    Applications Engineer.
    National Instruments.

  • Flex 3 GA Designer doesn't work with my modules

    This is absolutely critical to our application.
    In Flex 3 Beta I had no issues doing this, in Flex 3 GA it
    does not work and I'm wondering if any of you have seen this issue.
    I have extended Module to MyModule and added code that I
    need. My Flex builder is setup into three projects. AppProject,
    ModuleProject, and FrameworkProject.
    My Framework is compiled to myframework.swc and is in the lib
    folder of both ModuleProject and AppProject. Both have the swc
    correctly setup in the project properties.
    When I open one of my Modules in code view it works great.
    But when I go over to design view I get an error message in the
    middle of the design view with the the text "An unknown item is
    declared as the root of your MXML document. Switch to source mode
    to correct it." The root node is MyModule and correctly namespaced.
    Proof of this is that it compiles and runs fine. Only does not work
    in design view of FlexBuilder
    In the Problems view of FlexBuilder shows a warning: Design
    mode: Cannot load myframework.swc (reason: ERROR: Load Verify). It
    may require classes (such as Adobe AIR components) that are not
    supported by design mode. Check the Eclipse error log for more
    details."
    This used to come up just fine in design view with Flex 3
    beta and now does not in Flex 3 GA. In Flex 3 GA, if I remove
    myframework.swc from my ModuleProject and instead add a new source
    link that points to the src folder of my FrameworkProject it works.
    But I don't want to have to setup my ModuleProject this way because
    our customers will be able to build their own Modules based off of
    our Framework and I don't want to give them anything more than a
    swc.
    Our entire application is based heavily on this. Our
    customers will use FlexBuilder to design their own forms, compile
    them to swf modules and our application will load and process them.
    The code in our framework is proprietary and we only want to give
    them a swc, not our code.
    Any suggestions?
    Thanks,
    Dale

    Hi Dale and Anthony,
    Have you switched the SDK in FB? If so, you may be seeing
    this bug:
    error logged when change compiler to Flex 2.0.1 hotfix3 for a
    project which has Flex 3 swc in its lib path, warning remains in
    problem panel after switch compiler back to Flex 3 SDK
    https://bugs.adobe.com/jira/browse/FB-11948
    As in the Comments section of the bug, one way to work around
    the issue is to close and reopen the project.
    If that's not what you're seeing and you've files & steps
    that can reproduce the issue, please log a bug at
    http://bugs.adobe.com/flex
    and let me know or email me the files and reproducible steps. We'll
    have to reproduce the issue first before our engineers can fix it.
    thanks,
    Sharon

  • Adobe CS6 Design  doesn't work anymore

    I bought Adobe CS6 design and Web premium for Windows 14 months ago. Today I started Photoshop and it says: the trial periode has been expired, buy new software. What should I do now?

    Hi,
    Delete these folders and reinstall from the dvd :
    Windows:
    /Program Files/Common Files/Adobe/Adobe PCD
    /Program Files/Common Files/Adobe/caps
    /Program Files/Common Files/Adobe/backup
    Mac OS:
    [startup drive]/Library/Application Support/Adobe/Adobe PCD
    [startup drive]/Library/Application Support/Adobe/caps
    [startup drive]/Library/Application Support/Adobe/backup

  • Data Services Designer doesn't work in Windows 7 64bits

    Hi Experts,
    I have installed the DataServices Designer 12.2.0.0 in my Windows 7 Premium 64 bits. When I starts the DS Designer nothing happens, but in the task manager of Windows 7, I can look for the process *AL_Designer.exe *32 )running
    Any idea ?
    Regards,
    Rodrigo Silveira

    Rodrigo,
    Check to see if your video vard is configured for dual monitors.  If it is, and you only have one monitor, the Designer window may be on the dual display.  This URL might also be helpful:
    Link: http://malektips.com/windows-7-move-off-screen-hidden-window-application.html
    PK

Maybe you are looking for

  • Design view background appears black in CC

    I have a site in which the pages are built from templates. When I look at any page in Live view, it appears correctly with a white background. However, in Design view the background is black. The text is appearing in the correct colour (blue), and im

  • Insight option in Web

    Hi Friends, what is insight option in BPC for  web context and how it updates KPIs data? Can you explore insert insight KPI option? Any special prerequsites for this? Raju

  • Application Server, Message Server, Gateway

    Hi, Can anybody tell me which transaction in SAP gives me the details (Name and port) of the application server, message server, gateway server/service? Regards, Kishore

  • Assessments & Distributions- impact on FI especially for Fin Statemens

    Hello Experts, I understand that Distributions are used for allocating Primary Costs and Assessments are used for allocating both primary and Secondary costs. Financial statements are produced using functional areas (mfg., slg., admin.).  If costs ar

  • Why my location is not shared with friends on Find My Friends?

    I'm not able to share my location with friends. 'Share My Location' option is disabled and I couldn't enable it. Sometimes it is getting enabled automatically and after sometime it is disabled. However my location is never shared with friends. My fri