WMI variable problem on 2012 R2

I've been using WMI command line event consumers for years now that trigger on certain WMI events for auditing purposes. The methods that I've used in previous versions of Windows no longer work on 2012 R2 (and possibly 2012 -- never tried it).
From my understanding, when using variables in the command line event consumer, a carriage return or a new line is being added to the response.  Here is the CommandLineTemplate string:
CommandLineTemplate = "cscript.exe "
 "\"pathtoscript.vbs\" "
 "/Class:%__Class% /Generated:%TIME_CREATED% "
 "/RegistryPath:%RootPath% "
 "%TargetInstance% %PreviousInstance%";
The first variable passes to the vbs script successfully, but the other arguments don't get passed to the script.  If I change /class to static text, it passes class and generated, but then stops.  The only time I don't see the carriage return
is when there is no value, like %madeup%.  It returns <unknown> or something similar and continues on as expected.
I've tried adding double quotes around the arguments, but that didn't change the behavior.  I'm not sure what else to do, other than submit a support request on an MSDN subscription.
Anyone have any ideas?  Thanks!

Might try asking over here.
http://social.msdn.microsoft.com/Forums/en-US/home?forum=scripting
http://social.technet.microsoft.com/Forums/scriptcenter/en-Us/home?forum=ITCG
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Similar Messages

  • Bad Bind Variable Problem

    Hi
    I am trying to create a trigger and facing Bad Bind Variable problem.
    Plz let me know, what's the problem in this trigger.
    CREATE OR REPLACE TRIGGER Tender_tax_update AFTER
    INSERT
    OR UPDATE
    OR DELETE OF ITEM_QTY,ITEM_RATE,TENDER_ACC_QTY ON TENDER_ENQUIRY_ITEM_D REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    Declare
         v_amt TENDER_VENDOR_TAX_D.TAX_AMOUNT%TYPE;
         v_tax_ty TENDER_VENDOR_TAX_D.TAX_TYPE%TYPE;
         v_tax_cd TENDER_VENDOR_TAX_D.TAX_CODE%TYPE;
         v_ven_cd TENDER_VENDOR_TAX_D.VENDOR_CODE%TYPE;     
         v_item_cd TENDER_VENDOR_TAX_D.item_cd%TYPE;     
         v_tenno TENDER_VENDOR_TAX_D.tender_enquiry_no%TYPE;
    Begin
         if inserting then
              v_tax_ty:=:new.TAX_TYPE;
              v_tax_cd:=:new.TAX_CODE;
              v_ven_cd:=:new.vendor_code;
              v_item_cd:=:new.item_cd;
              v_tenno:=:new.tender_enquiry_no;
    select TAX_AMOUNT into v_amt from TENDER_TAX_DETAILS where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
    update TENDER_VENDOR_TAX_D set TAX_AMOUNT=v_amt where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
         end if;
    End Tender_tax_update;
    Database deails are as follows:
    TENDER_VENDOR_TAX_D
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE NOT NULL VARCHAR2(4)
    TAX_CODE NOT NULL VARCHAR2(4)
    PERCENTAGE NUMBER(5,2)
    TAX_AMOUNT NUMBER(15,2)
    ITEM_CD NOT NULL VARCHAR2(10)
    TAX_FLAG VARCHAR2(1)
    TAX_TYPE CHAR(3)
    TENDER_TAX_DETAILS
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE VARCHAR2(4)
    ITEM_CD VARCHAR2(10)
    TAX_CODE NOT NULL VARCHAR2(4)
    TAX_TYPE CHAR(3)
    TAX_AMOUNT NUMBER
    Message was edited by:
    user648065

    facing Band Bind Variable problem.Doesn't the error message tell you which bind variable is the problem?

  • Hangman: variable problem

    Good evening. I am in the final stages of finishing up my hangman project but I have encountered a variable problem on 3 lines of code. The compiler doesn't seem to like this line of code "r = in.readLine();" or "word = in.readLine();" obviously it doesn't like this way of reading in. I am seeking any help possible. It would be very much appreciated. Thanks!
    here's the code:
    package hangman;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.io.*;
    import java.text.*;
    public class Hangman {
        public static void main(String[] args)throws IOException
            char[] theWord;
            char[] guesses;
            boolean[] correctGuesses;
            int maxWrong = 6; // We'll give them 6 incorrect
            int numWrong = 0;
            boolean badGuess;
            char guess;
            int numGuesses = 0;
            // Get the word
            theWord = getWord();
            // Initialize correctGuesses
            correctGuesses = new boolean[theWord.length];
            for(int i = 0; i < correctGuesses.length; i++) {
                correctGuesses[i] = false;
            // initialize guesses
            guesses = new char[theWord.length + maxWrong];
            // Keep going until they have guessed everything
    while(!gameOver(correctGuesses) && numWrong < maxWrong) {
                // Print out the current state
                System.out.println("-----");
                // Print out the status
                System.out.print("Status: ");
                for(int i = 0; i < theWord.length; i++)
                    if(correctGuesses)
    System.out.print(theWord[i]);
    else
    System.out.print('_');
    System.out.println();
    // Print out what has been guessed so far
    System.out.print("Guessed: ");
    for(int i = 0; i < numGuesses; i++)
    System.out.print(guesses[i]);
    System.out.println();
    System.out.println((maxWrong - numWrong) + " incorrect guesses remaining");
    System.out.println("*****");
    // Get the guess
    guess = getGuess(guesses, numGuesses);
    // Record it
    guesses[numGuesses] = guess;
    numGuesses++;
    // See if it is in the word
    badGuess = true;
    for(int i = 0; i < theWord.length; i++) {
    if(guess == theWord[i]) {
    correctGuesses[i] = true;
    badGuess = false;
    if(!badGuess) {
    System.out.println("Good guess!");
    } else {
    System.out.println("Bad guess!");
    // If the guess wasn't in the word, increment
    numWrong++;
    if(numWrong == maxWrong)
    System.out.println("Game Over: Sorry you entered too many bad guesses - better luck next time!");
    else
    System.out.println("Good Job - you win!");
    // Get the word
    public static char[] getWord() {
    String word;
    // Get a word
    System.out.print("Please enter a word: ");
    word = in.readLine();
    // And return it as a char array
    return word.toCharArray();
    // See if the game is finished (all the letters guessed)
    public static boolean gameOver(boolean[] g) {
    boolean allGuessed = true;
    // if any element of the array is false
    // then they haven't guessed everything yet
    // and the game is not over
    for(int i = 0; i < g.length; i++)
    if(g[i] == false)
    allGuessed = false;
    return allGuessed;
    // Get a guess
    public static char getGuess(char[] guesses, int numGuesses) {
    char r = 'a';
    boolean done = false;
    // Get a character
    while(!done) {
    // Read and discard the previous newline
    while(r != '\n')
    r = in.readLine();
    System.out.print("Your guess: ");
    r = in.readLine();
    // See if they already guessed this letter
    done = true;
    for(int i = 0; i < numGuesses; i++) {
    if(r == guesses[i]) {
    System.out.println("You already guessed that letter. Please try again.");
    done = false;
    // return the guess
    return r;

    THANKS! i just added a bufferedreader however, the same problem with the variable persists. if anyone can fix it i'd appreciate it dearly!
    code with bufferedreader:
    package hangman;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.io.*;
    import java.text.*;
    public class Hangman {
        public static void main(String[] args)throws IOException
            char[] theWord;
            char[] guesses;
            boolean[] correctGuesses;
            int maxWrong = 6; // We'll give them 6 incorrect
            int numWrong = 0;
            boolean badGuess;
            char guess;
            int numGuesses = 0;
            BufferedReader in;
            in = new BufferedReader(new InputStreamReader(System.in));
            // Get the word
            theWord = getWord();
            // Initialize correctGuesses
            correctGuesses = new boolean[theWord.length];
            for(int i = 0; i < correctGuesses.length; i++) {
                correctGuesses[i] = false;
            // initialize guesses
            guesses = new char[theWord.length + maxWrong];
            // Keep going until they have guessed everything
    while(!gameOver(correctGuesses) && numWrong < maxWrong) {
                // Print out the current state
                System.out.println("-----");
                // Print out the status
                System.out.print("Status: ");
                for(int i = 0; i < theWord.length; i++)
                    if(correctGuesses)
    System.out.print(theWord[i]);
    else
    System.out.print('_');
    System.out.println();
    // Print out what has been guessed so far
    System.out.print("Guessed: ");
    for(int i = 0; i < numGuesses; i++)
    System.out.print(guesses[i]);
    System.out.println();
    System.out.println((maxWrong - numWrong) + " incorrect guesses remaining");
    System.out.println("*****");
    // Get the guess
    guess = getGuess(guesses, numGuesses);
    // Record it
    guesses[numGuesses] = guess;
    numGuesses++;
    // See if it is in the word
    badGuess = true;
    for(int i = 0; i < theWord.length; i++) {
    if(guess == theWord[i]) {
    correctGuesses[i] = true;
    badGuess = false;
    if(!badGuess) {
    System.out.println("Good guess!");
    } else {
    System.out.println("Bad guess!");
    // If the guess wasn't in the word, increment
    numWrong++;
    if(numWrong == maxWrong)
    System.out.println("Game Over: Sorry you entered too many bad guesses - better luck next time!");
    else
    System.out.println("Good Job - you win!");
    // Get the word
    public static char[] getWord() {
    String word;
    // Get a word
    System.out.print("Please enter a word: ");
    word = in.readLine();
    // And return it as a char array
    return word.toCharArray();
    // See if the game is finished (all the letters guessed)
    public static boolean gameOver(boolean[] g) {
    boolean allGuessed = true;
    // if any element of the array is false
    // then they haven't guessed everything yet
    // and the game is not over
    for(int i = 0; i < g.length; i++)
    if(g[i] == false)
    allGuessed = false;
    return allGuessed;
    // Get a guess
    public static char getGuess(char[] guesses, int numGuesses) {
    char r = 'a';
    boolean done = false;
    // Get a character
    while(!done) {
    // Read and discard the previous newline
    while(r != '\n')
    r = in.readLine();
    System.out.print("Your guess: ");
    r = in.readLine();
    // See if they already guessed this letter
    done = true;
    for(int i = 0; i < numGuesses; i++) {
    if(r == guesses[i]) {
    System.out.println("You already guessed that letter. Please try again.");
    done = false;
    // return the guess
    return r;

  • Setting static IP with computer variables with ConfigMgr 2012 R2 + MDT 2013?

    Hi!
    So im trying to set static IP with computer variables in ConfigMgr 2012 R2 with MDT integration. Does not seem to work as expected, after installation it has DHCP enabled.
    This is my config:
    ZTINicConfig.log
    <![LOG[Property ForceCapture is now = ]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[Microsoft Deployment Toolkit version: 6.2.5019.0]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[The task sequencer log is located at X:\WINDOWS\TEMP\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log.]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[ZTINicConfig Script Entered.]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[ PHASE = ]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[ Deployment Method = SCCM]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[ Deployment Type = NEWCOMPUTER]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[Capture Network Settings from local machine and write to Environment.]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[Query networking adapters...]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[Networking Adapters found! Count = 1]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[Property OSDAdapterCount is now = 0]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    <![LOG[ZTINicConfig processing completed successfully.]LOG]!><time="14:18:29.000+000" date="03-19-2015" component="ZTINicConfig" context="" type="1" thread="" file="ZTINicConfig">
    And I can't find any of the variables specified in ZTIGather.log. Do they only work with pure MDT or in CS.ini ?
    Any Ideas ?
    Thanks!

    Many methods to achieve the same. I've done something similar once with a small PowerShell script like this:
    http://www.petervanderwoude.nl/post/setting-a-static-ip-address-during-a-deployment-via-powershell-and-configmgr-2012/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Why would SMO WMI not return SQL 2012 Services in the ManagedComputer.Services collection when the instances are in ServerInstances

    The following code
    var comp = new Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer();
    var bob = comp.Services;
    Only returns the 2008R2 instances on my machine not the sql 2012 instances.
    Oddly the ServerInstances includes all the instances.
    This means I can't get the StartupParameters for the instance.
    I've checked and its definitely using the sql 2012 version of SMO. All services are using the same user account (Network Service)
    Can anyone think why this would be.
    @simon_sabin -
    SQL Know How - SQL Server Consultancy and Real world training - SQLBits - Largest SQL Server Conference in Europe and its free

    2014-09-08T20:23:33.1175952+02:00 *** Test of the default constructor of ManagedComputer
    Name of the ManagedComputer : USER-PC
    - 3 ClientProtocols
    - 0 ServerAliases
    - 3 ServerInstances
    - Instance : EXPRESS_ADV_2014
    - Instance : EXPRESSADV2014
    - Instance : SQLEXPRESS
    - 12 Services
    List of the available services :
    - Service : MSSQL$EXPRESS_ADV_2014
    - DisplayName : SQL Server (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\sqlservr.exe" -sEXPRESS_ADV_2014
    - ProcessId : 1972
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQL$EXPRESSADV2014
    - DisplayName : SQL Server (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\sqlservr.exe" -sEXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlServer
    - StartMode : Disabled
    - Service : MSSQL$SQLEXPRESS
    - DisplayName : SQL Server (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\sqlservr.exe" -sSQLEXPRESS
    - ProcessId : 356
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQLFDLauncher$EXPRESS_ADV_2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESS_ADV_2014
    - ProcessId : 1708
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$EXPRESSADV2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$SQLEXPRESS
    - DisplayName : SQL Full-text Filter Daemon Launcher (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\fdlauncher.exe" -s MSSQL11.SQLEXPRESS_ADV
    - ProcessId : 3980
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : ReportServer$EXPRESSADV2014
    - DisplayName : SQL Server Reporting Services (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS12.EXPRESSADV2014\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : ReportServer
    - StartMode : Auto
    - Service : ReportServer$SQLEXPRESS
    - DisplayName : SQL Server Reporting Services (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS_ADV\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 2516
    - ServiceState : Running
    - Type : ReportServer
    - StartMode : Auto
    - Service : SQLAgent$EXPRESS_ADV_2014
    - DisplayName : SQL Server Agent (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESS_ADV_2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$EXPRESSADV2014
    - DisplayName : SQL Server Agent (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$SQLEXPRESS
    - DisplayName : SQL Server Agent (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\SQLAGENT.EXE" -i SQLEXPRESS
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLBrowser
    - DisplayName : SQL Server Browser
    - ErrorControl : Normal
    - PathName : "C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe"
    - ProcessId : 2628
    - ServiceState : Running
    - Type : SqlBrowser
    - StartMode : Auto
    Hello Simon ,
    For SMO assemblies : the version is 11 for SQL Server 2012 , and 10 for SQL Server 2008 R2 ( and not 10.5 , so when you have SQL Server 2008 and 2008 R2 , the SMO assemblies for 2008 are replaced by the SMO assemblies for 2008 R2 ). I faced this
    problem when I installed SQL Server 2008 R2 aside a left 2008 install.
    On my current computer , I have only 2012 and 2014 instances and I have no problem.
    To check the version of the assemblies ( Microsoft.Smo.SqlWmiManagement mainly ) in your Visual Studio , click on the name of this assembly and look at the Version : it should be 11.0.0 ( for SQL Server 2012 ).
    Yesterday , I have written a little application to view the instances and services on my computer.
    using System.Collections.Specialized;
    using System.Data;
    using System.Linq;
    using System.Management;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using Microsoft.SqlServer.Management.Common;
    using Microsoft.SqlServer.Management.Dmf;
    using Microsoft.SqlServer.Management.Facets;
    using Microsoft.SqlServer.Management.Sdk.Sfc;
    using Microsoft.SqlServer.Management.Smo;
    using Microsoft.SqlServer.Management.Smo.SqlEnum;
    using Microsoft.SqlServer.Management.Smo.Wmi;
    namespace Test_ManagedComputer_SMO2014_VCS2014
    /// <summary>
    /// Class for fields/properties/methods used in the Main method
    /// </summary>
    class Program
    private static ManagedComputer m_mc = null;
    public static ManagedComputer Mc
    get
    return m_mc;
    private set
    m_mc = value;
    static void Main( string[] args )
    String _s = "";
    if ( !CommonCls.AppInit("en-US" , true ) )
    return;
    _s = "Test of the default constructor of ManagedComputer";
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(true , _s);
    m_mc = new ManagedComputer();
    _s = String.Format("Name of the ManagedComputer : {0}" , m_mc.Name );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false , _s);
    _s = String.Format(" - {0} ClientProtocols" , CommonCls.Int32ToString( m_mc.ClientProtocols.Count , 5 ));
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false , _s );
    _s = String.Format(" - {0} ServerAliases" , CommonCls.Int32ToString( m_mc.ServerAliases.Count , 5 ) );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false , _s);
    _s = String.Format( " - {0} ServerInstances" , CommonCls.Int32ToString( m_mc.ServerInstances.Count , 5 ) );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    foreach ( ServerInstance _serverinstance in Mc.ServerInstances )
    _s = String.Format(" - Instance : {0}" , _serverinstance.Name );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = String.Format( " - {0} Services" , CommonCls.Int32ToString( m_mc.Services.Count , 5 ) );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = "List of the available services : ";
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    foreach ( Service _service in Mc.Services )
    _s = " - Service : " + _service.Name;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - DisplayName : " + _service.DisplayName;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - ErrorControl : " + _service.ErrorControl.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - PathName : " + _service.PathName;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - ProcessId : " + _service.ProcessId.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - ServiceAccount : " + _service.ServiceAccount;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false ,_s);
    _s = " - ServiceState : " + _service.ServiceState.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - Type : " + _service.Type.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - StartMode : " + _service.StartMode.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    EndOfProgram :
    CommonCls.AppClose();
    I am getting the following results
    2014-09-08T20:23:33.1175952+02:00 *** Test of the default constructor of ManagedComputer
    Name of the ManagedComputer : USER-PC
    - 3 ClientProtocols
    - 0 ServerAliases
    - 3 ServerInstances
    - Instance : EXPRESS_ADV_2014
    - Instance : EXPRESSADV2014
    - Instance : SQLEXPRESS
    - 12 Services
    List of the available services :
    - Service : MSSQL$EXPRESS_ADV_2014
    - DisplayName : SQL Server (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\sqlservr.exe" -sEXPRESS_ADV_2014
    - ProcessId : 1972
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQL$EXPRESSADV2014
    - DisplayName : SQL Server (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\sqlservr.exe" -sEXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlServer
    - StartMode : Disabled
    - Service : MSSQL$SQLEXPRESS
    - DisplayName : SQL Server (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\sqlservr.exe" -sSQLEXPRESS
    - ProcessId : 356
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQLFDLauncher$EXPRESS_ADV_2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESS_ADV_2014
    - ProcessId : 1708
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$EXPRESSADV2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$SQLEXPRESS
    - DisplayName : SQL Full-text Filter Daemon Launcher (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\fdlauncher.exe" -s MSSQL11.SQLEXPRESS_ADV
    - ProcessId : 3980
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : ReportServer$EXPRESSADV2014
    - DisplayName : SQL Server Reporting Services (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS12.EXPRESSADV2014\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : ReportServer
    - StartMode : Auto
    - Service : ReportServer$SQLEXPRESS
    - DisplayName : SQL Server Reporting Services (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS_ADV\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 2516
    - ServiceState : Running
    - Type : ReportServer
    - StartMode : Auto
    - Service : SQLAgent$EXPRESS_ADV_2014
    - DisplayName : SQL Server Agent (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESS_ADV_2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$EXPRESSADV2014
    - DisplayName : SQL Server Agent (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$SQLEXPRESS
    - DisplayName : SQL Server Agent (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\SQLAGENT.EXE" -i SQLEXPRESS
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLBrowser
    - DisplayName : SQL Server Browser
    - ErrorControl : Normal
    - PathName : "C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe"
    - ProcessId : 2628
    - ServiceState : Running
    - Type : SqlBrowser
    - StartMode : Auto
    CommonCls.AppWriteLog is only a method which has 2 parameters , the 2nd one is the string to write in a application log , the 1st if true , the current datetime is written before the content of the 1st parameter. It is useful to simulate a hardcopy of the screen
    , especially when the application is a console one.
    I have not tested to write the startup parameters but it was working in a previous application
    As you can see , I have 3 instances , 1 SQL Server 2012 and 2 SQL Server 2014 ( but one is "ill" it's why the startup of the SQL Server service is disabled , it will be repaired when I will reinstall W7 or install W8 )
    I don't see any reason why you are not seen the 2012 instances except if the version of your assembly is 10 instead 11 ( a little tip :when you are adding a reference , in the box after a browse , you are sorting the names of the
    assemblies in the selection box , as the assemblies 2008/2008 R2 are appearing before the assemblies 2012 , it' minimizing the risk of confusion of assemblies and try to increase the visibility of the full path by double-clicking the title of the Path
    column , if you don't do that , you should not see the version number included in the path name ).
    Don't hesitate to post again for more help or explanations.
    Have a nice day
    Patrick
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

  • Reporting problem SCCM 2012 R2 / SQL 2012 SP2 CU 5

    Hi,
    i have a problem with reporting in my sccm. I had SQL 2012 SP1 without CU. after setup reporting services point in SCCM i couldnt see any report /no items found. in srsrp.log a i had this :
    Registry change SMS_SRS_REPORTING_POINT 22.4.2015 13:18:30 5544 (0x15A8)
    Waiting for changes for 1 minutes SMS_SRS_REPORTING_POINT 22.4.2015 13:18:30 5544 (0x15A8)
    SRSRP registry key change notification triggered. SMS_SRS_REPORTING_POINT 22.4.2015 13:18:30 5544 (0x15A8)
    Registry change SMS_SRS_REPORTING_POINT 22.4.2015 13:18:30 5544 (0x15A8)
    Waiting for changes for 1 minutes SMS_SRS_REPORTING_POINT 22.4.2015 13:18:30 5544 (0x15A8)
    Timed Out... SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Set configuration SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Check state SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Check server health. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Successfully created srsserver SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Reporting Services URL from Registry [http://scm/ReportServer/ReportService2005.asmx] SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Reporting Services is running SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Retrieved datasource definition from the server. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    [###.cz] [CM_UB1] [Reporty] [###.cz] SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    [REPORTSERVER] [1] [] [###\lankoci] SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    [1] [0] SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Confirmed version [11.0.3000.0] for the Sql Srs Instance. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Extract resource language packs if exists SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Expanding cabFile [C:\Program Files\SMS_SRSRP\SRSRP_CSY.cab] to directory [C:\Program Files\SMS_SRSRP]. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Waiting for process ID [3980] to complete. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:30 5544 (0x15A8)
    Process exited with code [1]. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:32 5544 (0x15A8)
    Loading localization resources from directory [C:\Program Files\SMS_SRSRP\SrsResources.dll] SMS_SRS_REPORTING_POINT 22.4.2015 13:19:32 5544 (0x15A8)
    Looking for 'Czech (Czech Republic)' resources SMS_SRS_REPORTING_POINT 22.4.2015 13:19:32 5544 (0x15A8)
    Looking for 'Czech' resources SMS_SRS_REPORTING_POINT 22.4.2015 13:19:32 5544 (0x15A8)
    Found resources for 'Czech' SMS_SRS_REPORTING_POINT 22.4.2015 13:19:32 5544 (0x15A8)
    Confirmed the configuration of SRS role [ConfigMgr Report Users]. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Confirmed the configuration of SRS role [ConfigMgr Report Administrators]. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Retrieved datasource definition from the server. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Updating data source {5C6358F2-4BB6-4a1b-A16E-8D96795D8602} at Reporty SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Successfully get report server from Registry SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Moved folder from /Reporty to /Reporty.OLD.0. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Created folder [Reporty]. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Creating data source {5C6358F2-4BB6-4a1b-A16E-8D96795D8602} at Reporty SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Service 'SQLSERVERAGENT' is already Stopped SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Delete old SCCMErrorResources folder SMS_SRS_REPORTING_POINT 22.4.2015 13:19:34 5544 (0x15A8)
    Could not find a part of the path 'C:\SCCMErrorResources'. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:35 5544 (0x15A8)
    Delete all srs* files from Reporting Service Location SMS_SRS_REPORTING_POINT 22.4.2015 13:19:35 5544 (0x15A8)
    (!) InitializeSrsWhenNeeded error = The parameter is incorrect. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:35 5544 (0x15A8)
    Failures reported during periodic health check by the SRS Server ###.cz. SMS_SRS_REPORTING_POINT 22.4.2015 13:19:35 5544 (0x15A8)
    after that, i remove reporting services point and aply SP2 and CU5 for SQL.now i have this log :/
    Registry change SMS_SRS_REPORTING_POINT 24.4.2015 8:03:38 6108 (0x17DC)
    Waiting for changes for 1 minutes SMS_SRS_REPORTING_POINT 24.4.2015 8:03:38 6108 (0x17DC)
    Timed Out... SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    Set configuration SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    Check state SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    Check server health. SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    Successfully created srsserver SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    Reporting Services URL from Registry [http://scm/ReportServer/ReportService2005.asmx] SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    System.Web.Services.Protocols.SoapException: The operation you are attempting requires a secure connection (HTTPS). ---> Microsoft.ReportingServices.Diagnostics.Utilities.SecureConnectionRequiredException: The operation you are attempting requires a secure connection (HTTPS).~ at Microsoft.ReportingServices.WebServer.RsSoapExtension.EnsureHttpsLevel(SoapMessage message)~ at Microsoft.ReportingServices.WebServer.RsSoapExtension.ProcessMessage(SoapMessage message)~ at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)~ at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()~ at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    (!) SRS not detected as running SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    Failures reported during periodic health check by the SRS Server ###.cz. SMS_SRS_REPORTING_POINT 24.4.2015 8:04:38 6108 (0x17DC)
    much shorter..can someone help me with that?
    thanks a lot
    O.

    Then it's not configured correctly. I suggest you go back and re-configure it. Here's a blog post that seems like it has all of the details:
    http://learnsqlwithbru.com/2011/12/27/configuring-sql-server-reporting-services-in-sql-server-2012/
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Airplay problem with 2012 MacbookPro w/ Mountain Lion

    I have a 2012 MacbookPro that I recently purchased. I also just bought the AppleTV 3. I upgraded to the Mountain Lion last week and initially the airplay icon showed up in the menu bar, as well as the display in system preferences and I was able to mirror my MacbookPro perfectly. Now, my MacbookPro is not recognizing the AppleTV. The Airplay option in the menu bar and the display is gone. My MacbookPro and AppleTV are connected to the same Wifi and they have both been restarted and updated to the newest software! Why is my MacbookPro not giving me the Airplay option?! Please help!

    Same problem when reseted  the PRAM.
    I read some Chinese Web , Many people got the same problem after upgrade to mountain lion
    you can see the locked icon show in the bottom left conner even my card is unlock
    I can read but can not delete any Photos
    http://i83.photobucket.com/albums/j286/2cktang/OSX/ScreenShot2013-03-11at23227AM .png
    you can see the locked icon show in the bottom left conner
    But I can edit everything in my Harddisk
    http://i83.photobucket.com/albums/j286/2cktang/OSX/ScreenShot2013-03-11at23235AM .png
    External Hard Disk no locked icon show in the bottom left conner
    http://i83.photobucket.com/albums/j286/2cktang/OSX/ScreenShot2013-03-11at23220AM .png

  • Local variable problem

    I am making an application that takes an apartment number and number of occupants in that apartment and then displays a number of statistics. So far I haven't had much problem
    except on a what is probably a very simple problem.
    I have two buttons, and when "store" is clicked the info in the textboxes is input to an array.
    My problem is with the next button, "quit", this is where all the info is supposed to be displayed.
    All my variables that I need from "store" are local and are recognized in " the if statement in quit. Ive tried declaring them outside of the if statement, but it hasn't been working.
    {code}
    public void actionPerformed(ActionEvent event)
                   Object source = event.getSource();
                   Apartment input;
                   if (source == store)
                        Integer aptNo = Integer.parseInt(input1.getText());
                        Integer occup = Integer.parseInt(input2.getText());
                        input = new Apartment(aptNo, occup);
                        if(aptNo > BUILDING_SIZE)
                             JOptionPane.showMessageDialog(null, "That apartment number doesn't exist.");
                        else if(occup > MAX_OCCUPANTS)
                             JOptionPane.showMessageDialog(null, "Too many occupants, only 20 are permitted per apartment.");
                        else
                             occupants[aptNo] = occup;
                             input1.setText("");
                             input2.setText("");
                             JOptionPane.showMessageDialog(null, input.getNumber(occupants));
                   if (source == quit)
                   // I need the variables aptNo and occup in here to put into my methods for output, but I don't know how to get them.     
    {code}

    EmmCeeVee wrote:
    Thank you for all of the responses, it really helps me out.
    Obviously my knowledge of local variables is hurting as I switched it around as your said and declared the aptNo and occup outside of the if's.
    All I need is for the quit button to look at the array ( which has just been modified by the sotre button) and output a bunch of results.
    Heres where im at:Your problem is of scope of the variables.
    Here whatever variable you defined in actionPerformed they are local for that method (they are out of scope when the method is finished/called again), Upon this, the actionPerformed is called twice one for store and another time for quit. So you cant expect the value stored at store should be there still when you all quit
    If you want those values available on both the actions then make them a class level variables.
    Below is a sample program, might help you.
    class Employee
         String empName = null;
         int empNo;
         Employee(String eName,int eNmbr)
              this.empName = eName;
              this.empNo = eNmbr;
    class CheckVariableScope
            Employee empOb; // Here
         int eNo;
         String eName = null;
         public void checkScope(String action)
                    //Instead of defining Employee reference variable, eNo and eName  in checkScope method, define it @ class level.
                    // in your case they are Apartment input, Integer aptNo and Integer occup
                     // like above i did.
                     // If i comment the class level variable and uncomment method variable, this program also give the same error.
              //Employee empOb;
              //int eNo;             
              //String eName = null;
              if (action.equals("Store") )
                        eNo = 10;
                        eName = "Bob";
                        empOb = new Employee(eName, eNo);
                        System.out.println("The eName is : "+empOb.empName+" , empNo is : "+empOb.empNo);
                   if (action.equals("quit"))
                        System.out.println(" eNO from Object is : "+empOb.empNo);
                        System.out.println(eNo); //Error: may not have been intitialized
         public static void main (String st[])
              CheckVariableScope ob = new CheckVariableScope();
              ob.checkScope("Store");
              ob.checkScope("quit");
    }

  • Presentation variable problem in PDF generation

    Hi,
    I have created the custom field using the following code
    *case when (V_balance.yr<=@{var_year}{2009} and V_balance.yr>=@{var_year-3}{2006}) then 1 else 0 end*
    Use this field I have created the filter and remove the field from report.
    When I run the report with different prompts, its working fine as I expected in dashboard.
    But when I generate the PDF for different prompt values ( var_year=2008 ) , I got same result. That is its generate var_year=2009 (default presentation variable)
    Its generate the pdf with 'presentation variable default values' instead of presentation variable.
    How could I rectify this problem.
    Any one facing this problem.
    Is there any alternative for this condition
    Note:
    We are using bise1 10.1.3.2.1
    but I got a right answer in obiee 10.1.3.4.0
    Thanks
    Mohan
    Edited by: Mohan 8732779 on Nov 23, 2009 5:50 AM

    This is a known issue in 10.1.3.2. Oracle solved this problem in the new upgraded 10.1.3.4. Check the Meta link for the service request numbers raised for this problem. How hard it would be for you to migrate to 10.1.3.4.
    Thanks
    Prash

  • Problem maya 2012 and lion!

    Hello,
    I got a problem that many others also have. I installed lion a week ago, and i got maya 2012 today. So when i where trying to install he said on the and of the installation that is was not compatible with mac os x 10.7. This is for me a big problem, i hope that you guys from apple know that there are people that work with such software! I need a patch immediately! I hope apple contact on this discussion.
    Thanks in advance,
    Timothy

    Are you talking about Autodesk's software, Maya 3D Animation?
    Did you read this?
    Compatibility statement
    Important notice for Autodesk® Maya® 2012 software, and prior Maya version, users regarding the latest Apple® Mac OS® X operating system release, version 10.7 “Lion”. Testing Maya 2012, and prior versions of Maya, on the Mac OS X 10.7 operating system, has identified platform compatibility issues.
    The issues:
    Installing Maya on Mac OS X 10.7 may cause the installer to hang.
    Operating Maya on Mac OS X 10.7 may cause stability issues.
    When submitting a crash report while operating Maya on Mac OS X 10.7, may cause the crash error reporting system to hang.
    If you upgrade to Mac OS X 10.7, you may encounter these issues. Autodesk recommends that users of Maya 2012, and prior releases of Maya, do not upgrade to the Mac OS X 10.7 until the compatibility issues have been addressed by Autodesk and Apple. Teams from both companies are working closely to resolve these issues and a notification will be issued once the issues have been addressed.
    Note: As of this time, Autodesk® Maya® 2012 software has not been qualified to run on Mac OS X 10.7. Please consult the qualification charts for more information.

  • Replacing 20 fixstatements by Global Variable - Problem 255 bytes length

    Hello,
    we have an issue in businessrules with setting the fix statement on 1 dimension:
    we currently use Fix (@RELATIVE("CBU_ALL",0) ) - on level 0 are approx. 3000 members - on medium level are 20 CBUs Seat and 20 CBUs Door
    we have approx. 20-30 similar businessrules - which either calculate on seat or door CBUs
    the requirement is to either calculate with a rule the 20 CBUs for Seats or the 20 CBUs for Doors
    as we currently do not fix properly on either Seat or Door CBUs, we calculate approx. 1500 empty members (empty, if fix in another dimension done correctly) - tests showed, that this doubles the time which would be needed.
    I know we could easily set 20 fixes in each business rule:
    @RELATIVE("CBU_BMW_Seat",0)
    ....20 more....
    @RELATIVE("CBU_Ford_Seat",0)
    (the fix above would then exclude the 1500 members, which are below:
    @RELATIVE("CBU_BMW_Doors",0)
    ....20 more....
    @RELATIVE("CBU_Ford_Doors",0)
    unfortunately, the number of CBUs/Customers is frequently renamed or some are added, so I can not afford to built these 20 fixstatements into 20 different businessrules and maintain them all the time.
    I thought of using UDAs or Attribute Values -
    but it seems not to be possible in a fixstatment to combine a relative or Children fixstatement with UDAs, which are set on the upper member ?
    I assume it works, if I classify all 3000 level 0 members with UDA or attribute SEATS or DOORS - but that's inefficient
    @RELATIVE("CBU_BMW_Seat",0) AND @UDA(CBU,"SEATS")
    @CHILDREN("CBU_BMW_Seat") AND @UDA(CBU,"SEATS")
    @Descendants("CBU_BMW_Seat") AND @UDA(CBU,"SEATS")
    @UDA(CBU,"SEATS")
    generally, it seems not to be allowed to combine Children or descendant fixes with any other relations or conditions ?
    @CHILDREN(@Match(CBU," Seat") ) (attempt to search for all children of all CBUs with Seat in its name)
    So the idea is to define 2 global variables:
    1 for Seats and 1 for Doors:
    [SEAT] includes then then: @children("CBU_BMW_Seat") ... 20 more @children("CBU_Ford_Seat")
    advantage would be, we can maintain the list of CBUs in 1 place
    my problem is: length of global variable is limited to 255 bytes - I need 800 to 900 digits to define the 20 CBUs
    having 8 global variables instead of 40 CBUs referenced in Fixstatements is not really an advantage
    even if I would rename the CBUs to just S1,S2,S3,S4 D1,D2,D3 (S for Seat, D for Door) (and use aliases in Planning and Reporting with full name to have the right meaning for the users), it does not fit into 1 variable: @children("S1"), @Children("S2"), ..... is simply too long (still 400 digits)
    also other attempts to make the statement shorter, failed:
    @children(@list("CBU_BMW_Seat","CBU_Ford_Seat",.....)) is not allowed
    is there any other idea of using global variables, makros, sequences ?
    is there a workaround to extend global variable limit ? we have release 9.3.1 - is this solved in future releases ?
    are there any other commands, which I can combine in clever way in fixstatements with
    @relative
    @children
    @descendants
    with things like @match @list ?
    (Generation and Level are no approrate criteria for Separating Seat and Doors, as the hierarchy is the same)
    please understand, that as we use this application for 5 years with a lot of historic data and it's a planning application with a lot of webforms and financial reports, and all the CBU members are stored members with calculated totals and access rights and setup data on upper members,
    I can not simply re-group the whole cbu structure and separate Seats and Doors just for calculation performance
    CBU dimension details is like this:
    Generation:
    1 CBU_ALL
    2 CBU_BMW
    3 CBU_BMW_Seat
    4 Product A
    4 Product B
    ..... hundreds more
    3 CBU_BMW_Door
    4 Product C
    4 Product D
    .... hundreds more
    2 CBU_Ford
    3 CBU_Ford_Seat
    4 Product E
    4 Product F
    .... hundreds more
    3 CBU_Ford_Doors
    4 Product G
    4 Product H
    .... hundreds more
    20 more CBUs with below 20 CBUs Seat and 20 CBUs Door

    How hard would it be to insert 2 children under CBU_All? Name them CBU_Seats and CBU_Doors, then group all the Seats and Doors under them.
    Then your calc could be @Relative(CBU_Doors, 0).
    I know it's not always easy or feasible to effect change to a hierarchy, but I just had the thought.
    Robert

  • Query Bind Variables problem

    I have a ViewObject with bindvariable GroupnameItemname.
    In JHeadstart AppDef this item is not bound to model, but included in Quick Search and Advanced Serach, as in "7.2.5. Using Query Bind Variables in Quick or Advanced Search"
    First I get an error saying GroupnameItemname*Var* is not found on ViewObject, so I changed the bindvariables to GroupnameItemnameVar
    Is something changed here? We are using JHeadstart 10.1.3.3.75 / JDeveloper 10.1.3.4.0
    After changing the bindvariablename I have another problem:
    I get an error in JhsApplicationModuleImpl.advancedSearch on these lines:
    boolean isBindParam = !viewCriterium.isAttributeBased();
    AttributeDef ad = isBindParam ? null : vo.findAttributeDef(attribute);
    The first line returns false for my bindvariable, so the second line raises an error like "JBO-25058: Definition <attr> of type Attribute not found in <VO>".
    In QueryCondition:
    public boolean isAttributeBased()
    return def!=null; //but def is not null here, it is an instance of DCVariableImpl
    This used to work in previous versions of JHeadstart...
    Please help,
    Greetings HJH

    In my MyApplicationModuleImpl (which extends JhsApplicationModuleImpl) I did override advancedSearch.
    Copied the code from JhsApplicationModuleImpl and changed a few lines:
    After
    sLog.debug("executing advancedSearch for " + viewObjectUsage);
    ViewObject vo = getViewObject(viewObjectUsage);
    I added:
    //clear bindParams:
    String[] attrNames =
    vo.getNamedWhereClauseParams().getAttributeNames();
    for (int i = 0; i < attrNames.length; i++) {
    vo.setNamedWhereClauseParam(attrNames\[i\], null);
    sLog.debug("bindParam leeggemaakt: " + attrNames\[i\]);
    And a bit later in the method I made a changed as follows:
    // boolean isBindParam = !viewCriterium.isAttributeBased();
    boolean isBindParam = viewCriterium.getName().endsWith("Var");
    A bit crude, but worked for me...
    Cheerio,
    HJH
    Edited by: HJHorst on Mar 19, 2009 1:56 PM (had to escape square brackets...)

  • Query selection variable problem

    Hi ,
    We have a material "89-9712" . When running a query in the query designer (on portal) with material as selection variable we are having problems. When we enter "89-9712", we are getting an error "enter single values and not a range"...is the fact that there is a "-" in the material key causing the problem. What can we do?
    Thanks,
    Anita.

    Hi,
    Having a '-' while entering the material value shouldn't pose a problem in case the same fromat is adopted while storing the material , or does two no. i.e. 85-39876 , 85 refers to some " material grooup" or category , and the real material no is 39876 in that case it may pose a problem.
    While making an entry make sre you are not putting any sapce other than '-' sice space is not permitted.
    Hope this will be expedite.
    Thax &  Regards
    Vaibhave Sharma
    Edited by: Vaibhave Sharma on Sep 17, 2008 11:35 PM

  • WMI Query to SCCM 2012 results zero results in c#

    In 2007 this works without issues, however in 2012 when attempting the 2nd query it returns zero results.  However if I do this manually I can produce results...Here is my code:
    using (WqlConnectionManager connection = Connect(getServer))
       string query = "select * from SMS_ObjectContainerItem WHERE ContainerNodeID='" + ProfileID + "'";              
       foreach (IResultObject getobject in connection.QueryProcessor.ExecuteQuery(query))
         getPackageID = getobject["InstanceKey"].StringValue;
         query = "select * from SMS_Collection WHERE CollectionID='" + getPackageID + "'";
    **This is where it will return zero results**
         foreach (IResultObject searchID in connection.QueryProcessor.ExecuteQuery(query))
            CMProfiles profile = new CMProfiles();
            profile.Name = searchID["Name"].StringValue;
            profile.ID = getPackageID;
            results.Add(profile);
    I'm pulling my hairs trying to understand by the 2nd query is not returning any results. When this works fine in SCCM 2007

    What you are using here are the SDK libraries, which are admittedly very thin wrappers around WMI, but not quite.  Have you tried implementing this directly using WMI?  I have written software that manipulates 2007 / 2012 and eventually found that
    the SDK libraries just sort of got in my way, so now I do all of my interactions with SCCM directly with WMI and forgoe the SDK libraries.
    Before I changed over, I did find that there are some oddities in using the SDK.  What I eventually found that worked for me was to bind to the 2007 SDK libraries, deliver them with my application and use the 2007 libraries regardless of if I was connecting
    to 2007 or 2012.  What I found was that I would run into issues using the 2012 libraries to talk to 2007, but the 2007 libraries would work fine with both.
    I have tested your queries, directly using WMI and PowerShell on a 2012 server and they work fine.  I am presuming that the folder that you are attempting to access is a Device Collection folder.
    Once again, I would suggest using WMI directly, especially if making a product that will work with 2007 and 2012; you will be a much happier person.
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • Numeric value variable problem with user exit

    Dear experts,
    I've created a variable (numeric value, user exit) and I want to get the value of variable from an user exit.
    Actually, I want to convert "0calyear" to a number to be albe to calculate (multiplying, dividing etc).
    If there is a possible solution only in FOX, the solution will be the best. However I couldn't find anything.
    So, the next solution I am trying is user-exit. But I am in stuck here.
    The problem is that I have no idea whether the numeric value variable has any sturcture like other variables(char. value) or not. If yes, what structure it has?
    I know, the characterisc value variables have the structure as blow,
        ls_varsel-chanm =
        ls_varsel-seqno =
        ls_varsel-sign  =
        ls_varsel-opt   =
        ls_varsel-low   =
    I've tried several times with the same way like above, but it doesn't work when I call the variable in "BPS0" or "UPSPL".
    How can I solve it? Please let me know.
    I am using SEM_BW 4.00.
    Many Thanks.
    Bruce

    Hi Ravi,
    Sorry, there's a correction. <b>var2 is used for getting the first month of the year selected by the user in var1</b>. If the user doesn't enter a value for var1, then var2 should take first month of current year from var1 which has by default last month of current year (populated in i_step1 from sy-datum). The user can select the value of var1 according to his requirement. Then var 2 should get first month of the year selected. That's why I'm using two exit variables.
    It works fine during the initial run of the query. But when the user clicks on the variable button in the toolbar and executes the query, var1 is not being displayed and an error message <i>No value could be determined for var2</i> is shown. All other variables used in the query are displayed except var1.
    Krzys, Is the option <i>Can be changed in Query Navigation</i>  available for Exit variables. I'll check that and get back to you.
    Boujema, Thanks for the OSS note.
    Thanks
    Hari

Maybe you are looking for

  • AirPlay is no longer working

    I haven't used it for a few months, but now that I started having problems with my wifi because of the new iOS 8 updates, I started checking and AirPlay is not working at all..  Sometimes it will connect for about 3 seconds and then it stops working

  • Most Efficient Way to Populate My Column?

    I have several very large tables, some of them are partitioned tables. I want to populate every row of one column in each of these tables with the same value. 1.] What's the most efficient way to do this given that I cannot make the table unavailable

  • FBL5N - Change Layout Disabled

    Friends, I am able to change the layout of the FBL5N report. However, one of my colleagues is not able to do so (the change layout button is grayed out). Is the problem related to authorizations or is there some customization setting available? Pleas

  • Error while taking export

    Hi, I am taking an export of my database, my database is in 9i , i am taking export from 10g database... This is the error i am getting [oracle@oracle system]$ exp system@db file=fulldatabase.dmp log=fulldb.log full=y Export: Release 10.2.0.2.0 - Pro

  • Apex 3.2 Spell Check Bug?

    I have a text area with spell check that holds 4000 characters. The spell check works well until approx 3800 characters are entered into the field. At that point in time the spell check brings up a page can't be displayed popup. Ideas?