Possible to return the "Explain Error" string programmat​ically?

We use custom error handling and I'm interested in being able to return the "Explain Error" string programmatically. I figure, why not have that information available right away?
I know you can get to it from the right-click shortcut menu after execution, but sometimes it's helpful to get that information, and try to keep the program rolling anyway.
http://linkd.in/mikele

Try this:
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
error message.png ‏9 KB

Similar Messages

  • SQL Server Analysis Services (PowerPivot) instance returned the following error:

    SQL Server Analysis Services (PowerPivot) instance returned the following error: Error Code: 3241607174 Description: A connection corresponding to the embedded PowerPivot data was not found in the
    Excel workbook, file 'C:\Program Files\Microsoft SQL Server\MSAS10_50.POWERPIVOT\OLAP\Backup\Sandboxes\PowerPivotServiceApplication1\ReadOnlyExclusive-1096b00b-c487-46f9-afea-f717148863a8-Test_Sheet.xlsx'
    Hi Have Installed power pivot to and exsistinf farm standalone farm.
    What Should be the connection in the Excel fiile?
    Thanks
    Ravi
    Ravi

    Hi,
    According to your post, my understanding is that  you got an error with SQL Server Analysis Services.
    Did you have installed PowerPivot for Excel on a client machine and modeled a database as part of this workbook?
    The refresh in question is about refreshing the embedded Analysis Services database with data retrieved from the backend sources (defined when the database was originally modeled) and resaving the updated workbook. It should not be confused
    with Excel / Excel Services options to refresh the data connections in the workbook. That option is about refreshing data stored in Excel’s caches. With regards to PowerPivot, that would be refreshing from the embedded database, not the backend data from which
    the database was sourced. In summary, this feature will not work against a workbook which does not have an embedded database because there is no database to refresh. This is by design and should not be interpreted as indicating that there is something wrong
    with your system.
    More information:
    http://powerpivotgeek.com/2010/02/07/a-connection-corresponding-to-the-embedded-powerpivot-data-was-not-found-in-the-excel-workbook/
    There are some similar articles for your reference.
    http://technet.microsoft.com/en-us/library/ee210712(v=sql.105).aspx
    http://support.microsoft.com/kb/2761246
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a324436c-9901-494e-9f9b-314399d65ccb/data-refresh-dont-work-for-serverhealthxlsx
    For the error “The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh”.
    There are multiple causes for this error message. The common factor behind all of them is that Excel Services cannot get a valid Windows user identity from a claims token in SharePoint.
    For more information:
    http://technet.microsoft.com/en-us/library/ff487975.aspx
    http://mmman.itgroove.net/2013/03/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • SharePoint returned the following error: Invalid URI: The URI is empty.

    When I try to add Site Feed (News Feed) in the SharePoint 2013, I get
    “SharePoint returned the following error: Invalid URI: The URI is empty. Contact your system administrator for help in resolving
    this problem” error message. Could you please provide me a solution or cause of this issue?
    Many Thanks.

    Hi Aruna
    To resolve this, You have to create and configure my site i.e.
    Created a new web app for my site
    Created the my site host site collection as the root
    Provisioned the User Profile Service App
    Configured the My Site URL in Setup My Site in User Profile Service App
    IISRESET
    Each environment is different and unique, ULS Log viewer is the key to identify and troubleshoot this.
    For more details follow the link
    SharePoint 2013 Invalid URI: The URI is empty
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Zenwsreg returned the following error code: 404

    L.S.
    I'm having problems importing workstations. I've already configured a
    number of networks, and only on this one I'm having problems.
    The problem in short:
    Workstations don't get imported. On the prompt I get:
    Zenwsreg returned the following error code: 404
    The problem more elaborate:
    The network:
    Netware 6.0 SP5
    Zfd 4.01 SP6
    Workstation
    XP
    Tree:
    I would like to import workstations is a separate container.
    I made a server policy package, in Policies, Netware I defined a
    workstation import policy, In this policy I put containers and in
    platform, and in platform general I put allow importing, selected
    container, one of the containers I defined earlier.
    Still I get:
    Error on the XP-DOS prompt:
    Zenwsreg returned the following error code: 404
    Then I put logging on. I got this error line:
    Error line in
    Leaving HTTPUtil::SendMessage, returning 404
    Any help?
    Thanks
    (There is no one at [email protected])
    Complete zenwsreg.log:
    Friday, December 02, 2005 10:29:25 -- -- Entering ZENWSREGRegister
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::InitZENContextIfNeeded
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- About to call
    ZENContextInit(ptr, REMADM)
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZENContextInit
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Returned from
    ZENContextInit(<REMADM><2><switact.rsg1><0>, REMADM, 1)
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
    ZenLiteTree::InitZENContextIfNeeded, returning 1
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree(zenContext)
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
    ZenLiteTree::ZenLiteTree(zenContext)
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    NDSTree::WhoAmI()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- WhoAmI()
    returning switact.rsg1.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
    NDSTree::WhoAmI()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    NDSTree::GetTreeName()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister --
    NDSTree::GetTreeName() returning REMADM.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    NDSTree::GetTreeName()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    Registrar::Register
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Created
    Mutex.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Got Mutex.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    Registrar::Update
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
    Registrar::Update, returning 1
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    Registrar::Import
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    GenerateImportDoc
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- User Tree =
    <REMADM>
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- User DN =
    <switact.rsg1>
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Login count =
    <1>
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- ConnType = 2
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Encountered
    Winsock error 4294967295 when trying to scan the IPX address.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- ConnType = 2
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
    GenerateImportDoc
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
    HTTPUtil::SendMessage
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- HTTP server =
    zenwsimport
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Loaded
    wininet.dll
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- About to
    create an HTTP connection.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Connecting to
    server <zenwsimport> port 8039.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- hConnect =
    13369352
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- hRequest =
    13369356
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Finished
    opening request. hRequest = cc000c.
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- About to send
    the following request:
    Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- <?xml
    version="1.0" encoding="UTF-16LE"?>
    <new_ws>
    <computer>DAVINCI-A750EDC</computer>
    <cpu>PENTIUM 4</cpu>
    <dns>davinci-a750edc.adm.noa.davinci.local</dns>
    <subnet_mask>255.255.255.0</subnet_mask>
    <ip>192.168.30.41</ip>
    <ipx></ipx>
    <mac>00:13:20:83:25:66</mac>
    <os>WINXP (5.1 Service Pack 2)</os>
    <server>FS_NOA_ADM1</server>
    <user_tree>REMADM</user_tree>
    <user_dn>switact.rsg1</user_dn>
    <login_count>1</login_count>
    <auditing_version>4.0.1.53</auditing_version>
    </new_ws>
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Last error =
    12029
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Error: Kan
    geen verbinding maken met de server
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Leaving
    HTTPUtil::SendMessage, returning 12029
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Entering
    HTTPUtil::SendMessage
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- HTTP server =
    zfd_mts
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Loaded
    novinet.dll
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- About to
    create an HTTP connection.
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister --
    InternetSetOption returned 1
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Connecting to
    server <zfd_mts> port 80.
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- hConnect =
    33619969
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- hRequest =
    50397185
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Finished
    opening request. hRequest = 3010001.
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- About to send
    the following request:
    Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- <?xml
    version="1.0" encoding="UTF-16LE"?>
    <new_ws>
    <computer>DAVINCI-A750EDC</computer>
    <cpu>PENTIUM 4</cpu>
    <dns>davinci-a750edc.adm.noa.davinci.local</dns>
    <subnet_mask>255.255.255.0</subnet_mask>
    <ip>192.168.30.41</ip>
    <ipx></ipx>
    <mac>00:13:20:83:25:66</mac>
    <os>WINXP (5.1 Service Pack 2)</os>
    <server>FS_NOA_ADM1</server>
    <user_tree>REMADM</user_tree>
    <user_dn>switact.rsg1</user_dn>
    <login_count>1</login_count>
    <auditing_version>4.0.1.53</auditing_version>
    </new_ws>
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Finished
    sending request. Result = 1
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Leaving
    HTTPUtil::SendMessage, returning 404
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Entering
    Registrar::Import
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Import
    failed. Error: 404
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Released
    Mutex.
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Leaving
    Registrar::Register, returning 404
    Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Leaving
    ZENWSREGRegister, returning 404

    L.S.
    Thanks. Problem solved. For who wants to know, read on
    > ok... the zenwsimport dns is not resolved..
    Aargh! This is "by design" in my workstation deployment strategie .....
    but only up to some point. I was forced to troubleshoot a not very well
    deployed image (when will people read my instructions).
    The workstation at this state had a line in the hosts file to prevent
    registring the workstation. This should be deleted in the final state
    of the workstation but hadn't.
    >
    > that's why he is going for the middletier server..
    >
    > from where the 404 is comming from..
    >
    Well, i'll read that one as soon as I need this.
    > troubleshooting Middle Tier authentication
    > http://support.novell.com/cgi-bin/se...?/10073537.htm
    > --
    >
    Thomas Roes
    there is no one at [email protected]
    www dot switact dot nl (not yet a very mature site)

  • [svn:bz-trunk] 7681: Fix bunch of failing config tests on BlazeDS/ trunk by removing javax.servlet. UnavailableException from the expected error string.

    Revision: 7681
    Author:   [email protected]
    Date:     2009-06-09 11:44:36 -0700 (Tue, 09 Jun 2009)
    Log Message:
    Fix bunch of failing config tests on BlazeDS/trunk by removing javax.servlet.UnavailableException from the expected error string.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/destination/IncorrectRootElement Test/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/AdaptiveServerT oClient/AdaptiveFrequencyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/AdaptiveServerT oClient/FrequencyStepSizeTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/AdaptiveServerT oClient/MaxQueueSizeTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/DestinationWith NoChannelTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/DestinationWith NoIDTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/jms/InvalidAckn owledgeModeTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/jms/InvalidDeli veryModeTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/jms/InvalidDest inationTypeTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/jms/InvalidMess ageTypeTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/jms/NoConnectio nFactoryTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/jms/NoJNDINameT est/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leInbound/InvalidBufferPolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leInbound/InvalidConflatePolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leInbound/UnknownInboundPolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leInbound/frequencies/McfGreaterthanMfTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leOutbound/InvalidBufferPolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leOutbound/InvalidConflatePolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leOutbound/InvalidErrorPolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leOutbound/UnknownOutboundPolicyTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/throttle/thrott leOutbound/frequencies/McfGreaterthanMfTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/validation/nonE xistingValidatorTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/validation/same ExplicitTypeValidatorTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/validation/same TypeValidatorTest/error.txt
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/validation/wron gTypeValidatorTest/error.txt

  • Is it possible to show the day of year in iCal?

    Is it possible to show the day of year in iCal?  There are 365 days of year and for example today april 22 is number 112.
    If it is possible - how is it done?
    thank you!

    The Apple iPad apps don't. Check out Photo Manager Pro http://graphicssoft.about.com/od/iphoneandipodtouchapps/fr/Photo-Manager-Pro.htm
     Cheers, Tom

  • RuleSet returns the same xml string what I send from webdynpro project

    Hello,
    I made an webdynpro application which invokes the RuleSet in BRM project by calling invoke rulset method with 4 parameters e.g. Project name, ruleset name, xmlstring, and rule engine.
    I guess in project name, and ruelset there is no problem.
    xmlString made dynamically picking values from webdynpro UI elements. which is
    [<tns:Insurance xmlns:tns="http://www.example.org/Insurance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/Insurance BasePremiumCalculation.xsd ">
       <tns:Make>Audi</tns:Make>
       <tns:Model>1</tns:Model>
       <tns:TypeClass>19</tns:TypeClass>
       <tns:AreaCode>R9</tns:AreaCode>
       <tns:BasePremium></tns:BasePremium>
    </tns:Insurance>
    I need to get the premium by giving first 4 element of the above xml string.
    After calling the invokeRuleSet method returns the same xmlString as an output.
    Can any body help me??
    Regards,
    Naeem

    Hello!
    Can you tell me how you solved this problem? I have the same problem and i have no idea how to solve it.
    Thanks,
    Szilamer

  • Zenwsreg returned the following error code: 2

    I have imaged a lab from a workstation that is registered, but I cannot
    register any of the imaged lab workstations because of the above error
    code. I cannot locate the error code on the internet or Novell's support
    site. Any ideas on how to remove the error on the imaged computers?

    On Tue, 22 Mar 2005 18:20:29 GMT, [email protected] wrote:
    > Any ideas on how to remove the error on the imaged computers?
    HKLM/Software/Novell/zenworks/zenwsreg/Loglevel = 2 (String Value) which
    will create a log file in c:\program files\novell\zenworks
    Marcus Breiden
    Please change -- to - to mail me.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • I am trying to create the store procedure but it is returning the following error what can I do.

    USE [PHPExtracts]
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[pr_Extract_wt_569_OPTUM]') AND type in (N'P', N'PC'))
    BEGIN
    DROP PROCEDURE [dbo].[pr_Extract_wt_569_OPTUM]
    PRINT '--- Procedure [dbo].[pr_Extract_wt_569_OPTUM] dropped ---'
    END
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <Brian Peterson>
    -- Create date: <02/25/2014>
    -- Description: <This Stored Procedure populates
    -- staging table with Facets Member data
    -- for Groups 100108,100115,105519,100398,106528,108601>
    -- =============================================
    CREATE PROCEDURE [dbo].[pr_Extract_wt_569_OPTUM]
    AS
    BEGIN
    SET NOCOUNT ON;
    declare @lastRunDate datetime
    declare @currentRunDate datetime
    -- RETRIEVE last run date
    SET @lastRunDate = (select CONVERT(datetime,CHAR_CFLD1) from Extracts_Common_Table
    where EXTRACT_ID=569 and SEQ_NO=1 AND DOMAIN_NAME ='LastRunDate'
    AND Active=1)
    -- if the @lastRunDate is null, then set the date to the default MEPE_EFF_DT
    IF @lastRunDate IS NULL
    SET @lastRunDate = '01-01-1920'
    -- SET current run date
    SET @currentRunDate = GETDATE()
    PRINT @lastRunDate
    PRINT @currentRunDate
    -- CHECK for running on same date and exit if true
    IF DATEDIFF(dayofyear, @lastRunDate, @currentRunDate) > 0
    BEGIN
    PRINT 'Deleting tables...'
    TRUNCATE TABLE Extract_wt_569_OPTUM
    PRINT 'Inserting new Current data...'
    -- INSERT statements for procedure here
    Insert into [dbo].[Extract_wt_569_OPTUM]
    ([DATESORT]
    ,[MEMBERNUMBER]
    ,[LASTNAME]
    ,[FIRSTNAME]
    ,[MIDDLENAME]
    ,[GENDER]
    ,[DOB]
    ,[DatePolicyEffective]
    ,[RELATIONTOINSURED]
    ,[SSN]
    ,[DateEffective]
    ,[DateExpiration]
    ,[SUBSCRIBER_ID]
    ,[ALTERNATE_ID]
    ,[ADDRESS1]
    ,[ADDRESS2]
    ,[ADDRESS3]
    ,[CITY]
    ,[STATE]
    ,[ZIP CODE]
    ,[TELEPHONE]
    ,[GROUP_NO]
    ,[GROUPNAME]
    ,[LINEOFBUSINESS]
    ,[PRODUCT_TYPE])
    -- add wt_569 columns
    -- add select here
    SELECT top 1000 ---- remove top 1000 when loading
    null as "DATESORT"
    ,convert(varchar,rtrim(sbsb.SBSB_ID)) + right('000' + rtrim(convert(varchar,meme.MEME_SFX)), 3) as "MEMBERNUMBER"
    ,meme.MEME_LAST_NAME as "LASTNAME"
    ,meme.MEME_FIRST_NAME as "FIRSTNAME"
    ,meme.MEME_MID_INIT as "MIDDLENAME"
    ,meme.MEME_SEX as "GENDER"
    ,replace(CONVERT(varchar(10),meme.MEME_BIRTH_DT,110),'-','') as "DOB"
    ,replace(CONVERT(varchar(10),meme.MEME_ORIG_EFF_DT,110),'-','') as "DatePolicyEffective"
    ,case
    When meme.MCRL_MEME_CREL_CD = 'M' Then 18 -----Added case statement for RELATIONTOINSURED by Andrew 08/19/2014
    When meme.MCRL_MEME_CREL_CD = 'O' Then 34
    When meme.MCRL_MEME_CREL_CD = 'W' or meme.MCRL_MEME_CREL_CD = 'H' Then 01
    When meme.MCRL_MEME_CREL_CD = 'S' or meme.MCRL_MEME_CREL_CD = 'D' Then 19
    END
    as "RELATIONTOINSURED"
    ,case when ltrim(rtrim(meme.MEME_SSN)) = '' THEN '999999999'
    else ltrim(rtrim(meme.MEME_SSN)) end as "SSN"
    ,replace(CONVERT(varchar(10),mepe.MEPE_EFF_DT,110),'-','') as "DateEffective"
    ,replace(CONVERT(varchar(10),mepe.MEPE_TERM_DT,110),'-','') as "DateExpiration"
    ,sbsb.SBSB_ID as "SUBSCRIBER_ID"
    ,null as "ALTERNATE_ID"
    ,sbad.SBAD_ADDR1 as "ADDRESS1"
    ,sbad.SBAD_ADDR2 as "ADDRESS2"
    ,sbad.SBAD_ADDR3 as "ADDRESS3"
    ,sbad.SBAD_CITY as "CITY"
    ,sbad.SBAD_STATE as "STATE"
    ,sbad.SBAD_ZIP as "ZIP CODE"
    ,sbad.SBAD_PHONE as "TELEPHONE"
    ,grgr.GRGR_ID as "GROUP_NO"
    ,grgr.GRGR_NAME as "GROUPNAME"
    ,pdpd.LOBD_ID as "LINEOFBUSINESS"
    ,mctr.MCTR_DESC as "PRODUCT_TYPE"
    -----,null as "BENEFIT_LEVEL" Dropped Benefit_Level not required
    FROM [FacetsReport].[dbo].[CMC_MEME_MEMBER] meme with (NOLOCK)
    JOIN [FacetsReport].[dbo].[CMC_SBSB_SUBSC] sbsb with (NOLOCK) on meme.SBSB_CK = sbsb.SBSB_CK
    JOIN [FacetsReport].[dbo].[CMC_SBAD_ADDR] sbad with (NOLOCK) on meme.SBSB_CK = sbad.SBSB_CK and meme.SBAD_TYPE_MAIL = sbad.SBAD_TYPE
    JOIN [FacetsReport].[dbo].[CMC_MEPE_PRCS_ELIG] mepe with (NOLOCK) on meme.MEME_CK = mepe.MEME_CK
    JOIN [FacetsReport].[dbo].[CMC_GRGR_GROUP] grgr with (NOLOCK) on meme.GRGR_CK = grgr.GRGR_CK
    JOIN [FacetsReport].[dbo].[CMC_PDPD_PRODUCT] pdpd with (NOLOCK) on mepe.PDPD_ID = pdpd.PDPD_ID
    JOIN [FacetsReport].[dbo].[CMC_PDDS_PROD_DESC] pdds with (NOLOCK) on pdds.PDPD_ID = pdpd.PDPD_ID
    JOIN [FacetsReport].[dbo].[CMC_MCTR_CD_TRANS] mctr with (NOLOCK) on mctr.MCTR_VALUE = pdds.PDDS_MCTR_BCAT
    --JOIN [FacetsReport].[dbo].[CMC_CSCS_CLASS] cscs with (NOLOCK) on cscs.PDPD_ID = pdpd.PDPD_ID
    WHERE mepe.MEPE_ELIG_IND = 'Y'
    AND DATEDIFF(day, mepe.MEPE_EFF_DT, @StartDate) >= 0
    AND DATEDIFF(day, mepe.MEPE_TERM_DT, @RunDate) <= 0
    --UPDATE the run date
    PRINT 'Updating LastRunDate...'
    update Extracts_Common_Table set CHAR_CFLD1= @currentRunDate where EXTRACT_ID=569 and SEQ_NO=1 AND
    DOMAIN_NAME ='LastRunDate' AND Active=1
    END -- Same Date Run Check
    END
    GO
    PRINT '------- Procedure [dbo].[pr_Extract_wt_569_OPTUM] Created ----------'
    GRANT EXECUTE ON [dbo].[pr_Extract_wt_569_OPTUM] TO [public] AS [dbo]
    GO
    Message error:
    Msg 102, Level 15, State 1, Procedure pr_Extract_wt_569_OPTUM, Line 71
    Incorrect syntax near ')'.
    Msg 137, Level 15, State 2, Procedure pr_Extract_wt_569_OPTUM, Line 118
    Must declare the scalar variable "@StartDate".
    ------- Procedure [dbo].[pr_Extract_wt_569_OPTUM] Created ----------
    Msg 15151, Level 16, State 1, Line 4
    Cannot find the object 'pr_Extract_wt_569_OPTUM', because it does not exist or you do not have permission.

    Shouldn't @StartDate be an input parameter to the stored procedure? @RunDate also?
    Example for sp with parameters:
    http://www.sqlusa.com/bestpractices2008/stored-procedure-parameters/
    The last error will go away upon a successful sp compile.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • What could be the possible resolution to the below error in SXMB_MONI?

    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    thrown during application mapping
    com/sap/xi/tf/_MM_PREDICTIX_TO_SAP_PurchaseOrderD~
    : Fatal Error:
    com.sap.engine.lib.xml.parser.Parser~
    When I open the message in SXMB_MONI I get the below error in the Inbound Message's Payload.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    System does not support the specified encoding. Error processing resource 'file:///D:/Documents and Settings/aprajita.mathu...
      <?xml version="1.0" encoding="UTF8"?>
    This is File to IDoc scenario.Iam sending the dummy data from Runtime Workbench in order to test the scenario.

    Either your input file is incorrect or the uploaded XSL file is incorrect. In the first row, change the encoding value from
    <?xml version="1.0" encoding="UTF8"?>
    to
    <?xml version="1.0" encoding="UTF-8"?>
    Regards,
    Prateek

  • Calculated key figures are returning the word "ERROR"

    Hi All,
    the calculated key figures which i used in one query are displaying the word  "ERROR" at the end of the results as part of each cells formatting.But when i copied the same query to my system then its not showing the word error and even i created one more query which is a replica of the first one and then also iam not getting the error .
    what might be the cause of this issue . kindly suggest me how to control the word error in the out put
    regards,
    jayakrishna

    Hi,
    you can control the way BW displays exceptions with customizing (SPRO) transaction RSCUSTV4.
    identify differences of these settings in your systems and apply them accordingly.
    hope this helps...
    Olivier.

  • Help: How to Validate XML using SAXParser and return the entire error list

    Hi,
    I have a problem, I'm trying to validate a xml document against the DTD. Here Im using SAXParser and having the ErrorHandler object passed when setting the error Handler, like parser.setErrorHandler(errorHandlerObj).
    I need an output like where the entire XML document is read and all the errors have to be reported with the line number.
    like example:
    <b>Line 6: <promp>
    [Error]:Element type "promp" must be declared.
    Line 8: </prompt>
    [Fatal Error]:The end-tag for element type "promp" must end with a '>' delimiter.
    who can i achieve this.</b>
    what happens with the present code is that it throws the first error it encountered and comes out.
    how can i solve this problem

    You can try to set the following feature to 'true' for your SAXParser:
    http://apache.org/xml/features/continue-after-fatal-error
    At least Xerces supports this feature.

  • It is a possible to return the photo and the phone numbers if I have lost during reseting the iphon 3

    I Have Iphon 3 and I have hade some problems with code, duriring reseting I have lost all photos and telephone numres, so dase egzist any solution to return the photos an telephone numbers?

    You should have a back up on your PC or where ever you sync your phone. Just plug your phone in and say restore from a backup, pick one of the times you backed up your phone (hopefully recently) and everything should be put back on from the day you synced it. Good luck!

  • Get-ADUser : The server has returned the following error: invalid enumeration context.

    I'm running a powershell command to add the email (AD mail) attribute to users in a specific OU.  It seems to work then will bomb out with the error in the title.
    I'm using a "scripting guy" command that I've altered with my specfic OU/domain information however, I'm pasting in the more "generic" version :: Get-ADUser -LDAPFilter "(!(mail=\.name*))" -resultSetSize $null -searchbase "ou=test,dc=nwtraders,dc=com"|
    % {set-aduser -identity $_.distinguishedname -email ($_.samaccountname + "@nwtraders.com")}
    I work for a school district and this command is being used to add the mail attribute to the student's accounts.  I think about 2/3 of the students are completed but the script/command bombs and I'm not sure where or why.  I've resubmitted the
    command several times but I'm not sure whether it's starting from where it bombed or if it's starting again at the beginning and essentially re-doing the ones already completed.
    Can someone point me in the direction of a work around or a resolution to the Get-ADUser error?
    Thanks!!

    I don't know the error, so I can only guess there. But the LDAP syntax filter cannot be correct. Can you provide a link to the reference where "Scripting Guy" suggested this?
    As written, you are retrieving all users where the mail attribute does not begin with the string ".name" (case insensitve), where "name" is not a property or attribute, but a string value. LDAP syntax clauses are in the format:
    (<attributeName><operator><value>)
    In your case, <operator> is "=", <attributeName> is "mail", and <value> is ".name". The "\" character is the escape character, which means to interpret the following character (the period in
    this case) literally. You cannot use an attribute name on the right side of the operator (the "="), unless PowerShell has introduced some functionality I am not familiar with to expand the LDAP syntax. For example, the following does not filter
    on users where the first name is the same as the last name:
    (givenName=\.sn)
    Instead, it filters on users where the first name is the string ".sn". Even if "\.name" was interpreted by the Get-ADUser cmdlet to be the "Name" attribute of the user, this would cause problems. "Name" is the
    Relative Distinguished Name of the user (the value of the cn attribute) and it could include commas or spaces. I would expect "\.sAMAccountName" to make more sense.
    Richard Mueller - MVP Directory Services

  • ZWSReg returned the following error code: 2

    We've been forced to start using the zen4 because the 3.2 version
    suddenly
    stopped working, but when we start zwsreg.exe it exits with error code
    2 and
    doesnt create anything.
    The only way i can get it to make a new workstation is by using
    the -zenimportserver none and either specifying a custom new object or
    by
    specifying the policy, which messes up also by not naming the
    workstation
    propperly.
    We've got it set up with Username-OS-Mac in the users container, when
    i
    specify the policy it generates the object with UsernameMac, it does
    however
    put it in the user container.
    I also tried getting some logfiles in the workstations but its not
    generating any, even after adding those registry keys mentioned in
    TID10068910.
    Shouldnt it just grab all its settings from the nds like wsreg32
    withouth
    having to specify any command line parameters ?
    This is with the zen4 agent from zfdpatch3.
    Arjan

    The message appears when i try to start zwsreg. I did some messing
    around
    and pperantly this reg problem only appears on windows XP...
    I managed to get the following on a win2k station.
    Wednesday, April 23, 2003 15:43:25 -- -- Entering ZENWSREGUnreg
    Wednesday, April 23, 2003 15:43:27 -- -- Entering ZENWSREGRegister
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    ZenLiteTree::InitZENContextIfNeeded
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    LoadZenLite
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
    LoadZenLite, returning 1
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- About to
    call
    pZENContextInit(ptr, GEMDAN)
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Returned
    from
    pZENContextInit(<GEMDAN><ffff><><0>, GEMDAN, 1)
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
    ZenLiteTree::InitZENContextIfNeeded, returning 0
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree(zenContext)
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
    ZenLiteTree::ZenLiteTree(zenContext)
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    NDSTree::WhoAmI()
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- WhoAmI()
    returning
    AMelein.
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
    NDSTree::WhoAmI()
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    NDSTree::GetTreeName()
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister --
    NDSTree::GetTreeName() returning GEMDAN.
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    NDSTree::GetTreeName()
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    Registrar::Register
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    Registrar::Update
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
    Registrar::Update, returning 1
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    Registrar::Import
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
    GenerateImportDoc
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- User Tree =<GEMDAN>
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- User DN =
    <AMelein.>
    Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Login count
    = <1>
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Entering
    ZenLiteTree::ZenLiteTree()
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- ConnType = 2
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Leaving
    GenerateImportDoc
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Entering
    HTTPUtil::SendMessage
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- HTTP server
    =
    zenwsimport
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Loaded
    wininet.dll
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- About to
    create an
    HTTP connection.
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Connecting
    to
    server <zenwsimport> port 8039.
    Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- hConnect =
    13369352
    Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- hRequest =
    13369356
    Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- Finished
    opening
    request. hRequest = cc000c.
    Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- About to
    send the
    following request:
    Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- <?xml
    version="1.0" encoding="UTF-16LE"?>
    <new_ws>
    <computer>AMelein</computer>
    <cpu>PENTIUM 4</cpu>
    <dns>AMelein</dns>
    <subnet_mask>255.255.254.0</subnet_mask>
    <ip>10.254.160.3</ip>
    <ipx>00000002:00080217</ipx>
    <mac>00:08:02:17:37:F6</mac>
    <os>WIN2000 (5.0 Service Pack 3)</os>
    <server>SERVER2</server>
    <user_tree>GEMDAN</user_tree>
    <user_dn>AMelein.</user_dn>
    <login_count>1</login_count>
    <auditing_version>4.0.1.4</auditing_version>
    </new_ws>
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Last error =
    12029
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Error: Kan
    geen
    verbinding maken met de server
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Leaving
    HTTPUtil::SendMessage, returning 12029
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Entering
    HTTPUtil::SendMessage
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Aborting
    SendMessage. Server address is empty.
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Entering
    Registrar::Import
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Import
    failed.
    Error: 2
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Leaving
    Registrar::Register, returning 2
    Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Leaving
    ZENWSREGRegister, returning 2
    Arjan
    "Shaun Pond" <[email protected]> schreef in bericht
    news:[email protected]...
    > Arjan,
    >
    > so, let me understand this - if you enable logging, you get a
    message
    > saying you don't have rights to the registry? At what point does
    this
    > message appear?
    >
    > --
    >
    > Shaun Pond
    > Novell Support Connection SysOp
    >

Maybe you are looking for

  • Assign report layout to Interactive report

    Is it possible to link a Report Layout to an Interactive query so that downloads to pdf will pick up the new format.

  • Thai font is not showing in the PDF report

    Hi Gurus I m generating report in PDF format. I want some fields should be in Thai language which r in thai language in the database. But my PDF report cannot show this. Its showing some gurbage data. Mokarem

  • Program with 2 dynamic i_tabs (cl_alv_table_create= create_dynamic_table)

    Dear Expers I created a ABAP with dynamic internal table using cl_alv_table_create=>create_dynamic_table more or less according to this example here: cl_alv_table_create=>create_dynamic_table error Now I need a second dynamic internal table in the sa

  • Kdm.service for systemd doesn't exist

    In wiki, it says: https://wiki.archlinux.org/index.php/Systemd wrote: Using display manager To enable graphical login, run your preferred Display Manager daemon (e.g. KDM). At the moment, service files exist for GDM, KDM, SLiM, XDM and LXDM. # system

  • Share a Referenced Library between 2 Macs

    Hi there, Sorry if this has been asked before. Recently I am planning to merge the two libraries from my 2011 iMac and 2012 MBPr. Currently I have an individual Managed Library on each of them, where the library on my iMac stores all the pictures, an