Script to include error checking

Hi All,
Hopefully someone can help me with this.  I'm quite new to powershell and dont really know much about it.  A bit of background on what i want to achieve.  
At the end of each server build (vm or physical), I would like to run a script which does a full inventory of our windows servers and checks for anything which is not configured / installed.  So for example once the server is build, I would like to
check what windows features are installed / GPO's are applied / windows activation status etc and then i want the script to create a HTML report and highlight anything it finds which could be missing or not configured.  I understand this is quite vague
but for the time being i would just like a generic check and then can fine tune it later.  I have managed to get the following script from another site and added a few modifications myself but need to now get it doing what i want:
Set-ExecutionPolicy RemoteSigned -ErrorAction SilentlyContinue 
$UserName = (Get-Item  env:\username).Value
$ComputerName = (Get-Item env:\Computername).Value 
#$filepath = (Get-ChildItem env:\userprofile).value
$share = "\\files\general$\Operations\Build Reports"
#ReportDate 
$ReportDate = Get-Date | Select -Property DateTime |ConvertTo-Html -Fragment 
#General Information 
$ComputerSystem = Get-WmiObject -Class Win32_ComputerSystem |  
Select -Property Model , Manufacturer , Description , PrimaryOwnerName , SystemType |ConvertTo-Html -Fragment 
#Operating System Information 
$OS = Get-WmiObject -Class Win32_OperatingSystem | Select -Property Caption , CSDVersion , OSArchitecture , OSLanguage | ConvertTo-Html -Fragment 
#Windows Activation Status
$Activation = Get-CimInstance -ClassName SoftwareLicensingProduct | where PartialProductKey | Select Name, @{Label="Grace period (days)"; Expression={ $_.graceperiodremaining / 1440}}, @{Label= "License Status"; Expression={switch (foreach
{$_.LicenseStatus}) { 0 {"Unlicensed"} 1 {"Licensed"} 2 {"Out-Of-Box Grace Period"} 3 {"Out-Of-Tolerance Grace Period"} 4 {"Non-Genuine Grace Period"} 5 {"Notification Period"} 6 {"Extended Grace"}
} } } | ConvertTo-Html -Fragment 
#Logical Disk Information 
$Disk = Get-WmiObject -Class Win32_LogicalDisk -Filter DriveType=3 | 
Select SystemName , DeviceID , @{Name=”size(GB)”;Expression={“{0:N1}” -f($_.size/1gb)}}, @{Name=”freespace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}} | 
ConvertTo-Html -Fragment 
#Time Zone Information 
$TimeZone = Get-WmiObject -Class Win32_TimeZone | Select Caption , StandardName | ConvertTo-Html -Fragment 
#CPU Information 
$SystemProcessor = Get-WmiObject -Class Win32_Processor  |  Select SystemName , Name , MaxClockSpeed , Manufacturer , status |ConvertTo-Html -Fragment
#Memory Information 
$PhysicalMemory = Get-WmiObject -Class Win32_PhysicalMemory | Select -Property Tag , SerialNumber , PartNumber , Manufacturer , DeviceLocator , @{Name="Capacity(GB)";Expression={"{0:N1}" -f ($_.Capacity/1GB)}} | ConvertTo-Html -Fragment 
#Software Inventory 
$Software = Get-WmiObject -Class Win32_Product | Select Name , Vendor , Version , Caption | ConvertTo-Html -Fragment  
#Windows Features Inventory
$Features = Get-WmiObject -query "select * from win32_optionalfeature where installstate=1" | select Name, Caption | ConvertTo-Html -Fragment
ConvertTo-Html -Body "<font color = blue><H4><B>Report Executed On</B></H4></font>$ReportDate 
<font color = blue><H4><B>Report Generated By</B></H4></font>$username
<font color = blue><H4><B>General Information</B></H4></font>$ComputerSystem 
<font color = blue><H4><B>Operating System Information</B></H4></font>$OS 
<font color = blue><H4><B>Activation Status</B></H4></font>$Activation
<font color = blue><H4><B>Time Zone Information</B></H4></font>$TimeZone 
<font color = blue><H4><B>Disk Information</B></H4></font>$Disk 
<font color = blue><H4><B>Processor Information</B></H4></font>$SystemProcessor 
<font color = blue><H4><B>Memory Information</B></H4></font>$PhysicalMemory 
<font color = blue><H4><B>Windows Features Iventory</B></H4></font>$Features
<font color = blue><H4><B>Software Inventory</B></H4></font>$Software" -CssUri  "$share\style.CSS" -Title "Server Inventory" | Out-File "$share\$ComputerName.html" 
Write-Host "Script Execution Completed" -ForegroundColor Yellow 
Invoke-Item -Path "$share\$ComputerName.html"
So what I would like is in the HTML report, anything that is not done right is highlighted in Red with a quick sentence at the end stating the issue.  So for example where this script checks the Windows Activation status, I would like that any status
which is reported that is not "Licensed" is highlighted red in the HTML report and a sentence at the end of the report which reads out something like "Windows is not activated.  Please activate".  All our base build have a certain
set of windows features installed, so the  script could reference a set of features installed on a current system (possibly output the windows features from a correctly built system which is output to a file and then compared on the newly built server)
and check what is missing and again highlight in red (for example "Failover clustering is not Installed" etc.  
I would appreciate any help that could be provided
Thanks

There are so many things that, in your environment, you might want to check to verify a server build that it is highly unlikely that anyone else does, or would want to do, the same tests.
You will probably have better luck asking separate questions about how to do some of the specific checks you want to run, and, possibly, how to use colour-coding to highlight in HTML.
I'll start you off by pointing out that what you make look complex can be done in a much simpler manner. For example, how you get the username from the username environment variable:
PS C:\Users\Al> $UserName = (Get-Item env:\username).Value
PS C:\Users\Al> $username | gm | select typename -first 1
TypeName
System.String
PS C:\Users\Al>
It is good that you are concerned with the type of value assigned, but there is a simpler way that works for all environment variables (all of which are strings):
PS C:\Users\Al> $UserName = $env:username
PS C:\Users\Al> $username | gm | select typename -first 1
TypeName
System.String
PS C:\Users\Al>
This also returns a string, but, in the process, the code is simpler and a bit more intuitive, at least in my opinion.
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Similar Messages

  • What do you think of my Bash Script? What about the error checking?

    Well what do you think of this Bash script
    It works
    I gave it some problems (i.e. unpluged the ethernet, messed up the URL's, uninstaled some programs...) to see if would report errors and stop or just keep going... But it did
    I just kind of thought up a way to do some error checking with the commands that I know.....
    What is a better way to do error checking?
    What do you think I should add/Do to this script?
    #!/bin/bash
    # Shell script to make a USB Tumb Drive for Flashing BIOS on a Lenovo Ideapad Y510.
    # This script needs to be owned and run as ROOT with the "sudo command"
    # i.e. sudo usbbiosflasher
    # If you have anyideas send me a PM on ubuntufourms.org my user name is HunterThomson
    # Name/Rename this script usbbiosflasher and save it to the ~/home directory.
    # Then run the command- chown root:root usbbiosflasher
    # Then run the command- chmod 755 usbbiosflasher
    # Then copy the script to the directory /usr/bin.
    # Run this comand to do that- sudo cp ~/usbbiosflasher /usr/bin
    # You also must have the program "mbr" installed
    # You can install the mbr program by running this comand in the shell on Ubuntu
    # sudo apt-get install mbr
    # In Arch Linux you have to get it from Aur
    # First you will need to know a few things...
    # You will also need to know the Mount Point i.e. /media/disk and the /dev path i.e. /dev/sdb1.
    # You can find these by using the df -T comand.
    # Run df -T in the shell. Then plug in the USB Thumb Drive and run the df -T comand agin.
    # The new listing is the USB Thumb Dirve.
    # Also check to make sure the File System tipe is vFAT or FAT16 or FAT32.
    # If it is not use gparted to format it to FAT32.
    # I am farly certen that all USB Thumb drives come formated with FAT file system out of the BOX.
    # You may want to fromat it anyway just to make sure.
    echo "Interactive Shell Script to Make a USB Thumb Drive \for Flashing BIOS On a Lenovo Ideapad Y510"
    echo ""
    echo "You will need to have the program mbr installed"
    echo "If you are on Ubuntu Linux you can retreve it form the repositories"
    echo "If you are on Arch Linux you will need to get it from the Aur repository"
    echo "Open anuther shell and \do that now..."
    echo ""
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you have mbr installed... yes or no?"
    read AN1
    echo ""
    printf "You answered... $AN1 I have installed mbr. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN1" == "no" ]
    then
    echo "Install mbr now. Then run this script agin"
    exit
    else
    echo "contunuing script"
    fi
    echo ""
    # The next comand will make a directory to put needed files into. Note this file and everything init will be owned by root.
    mkdir ~/usbbiosfiles && check1="yes"
    if [ "$check1" = "yes" ]
    then
    echo "Made directory usbbiosfiles... OK"
    else
    echo "Could not \make directory usbbiosfiles"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    exit
    fi
    # The next two comands will get the FreeDOS file and the .ROM file.
    cd ~/usbbiosfiles && checka="yes"
    if [ "$checka" = "yes" ]
    then
    echo "Changing to the usbbiosfiles directory... OK"
    else
    echo "Could not Change to the usbbiosfiles directory"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    wget "http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz" && check2="yes"
    if [ "$check2" = "yes" ]
    then
    echo "Download of FreeDOS... OK"
    else
    echo "Could not Download FreeDOS"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    wget "http://ubuntuforums.org/attachment.php?attachmentid=78460&d=1216648756" && check3="yes"
    if [ "$check3" = "yes" ]
    then
    echo "Download of the BIOS.ROM \file... OK"
    else
    echo "Could not Downlad the BIOS.ROM \file"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    # The next comand will name the .ROM file to the right name.
    mv ~/usbbiosfiles/attachment.php?attachmentid=78460\&d=1216648756 ~/usbbiosfiles/06CN29WW.bios.update.tar.bz2 && check4="yes"
    if [ "$check4" = "yes" ]
    then
    echo "Renameing of the BIOS.ROM \file... OK"
    else
    echo "Could not rename the BIOS.ROM \file"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    echo ""
    # The next two comands set the variables. DEVX for the path i.e. /dev/xxx and MOUNTX for the mount point i.e. /media/xxx
    verify="n"
    while [ "$verify" != y ]
    do
    echo "You will need to know the Mount Point and the dev Path. You will also need to \make sure the File System \type is vFAT, FAT16 or FAT32."
    echo ""
    echo "With the USB Thumb Drive unpluged, Open another shell and run the comand df -T Then plug \in the USB Thumb Drive and run the comand df -T one \more time. The new device listed is the USB Thumb Drive. Note the Mount Point and The dev Path and the File system Type i.e. vFAT... If the File System \type is not vFAT, FAT16 or FAT32 you will need to fromat it with gparted. You may want to format the USB Thumb Drive anyway just to \make sure. In any \case delete all files and directorys on the USB drive before you go any ferther with this program."
    echo ""
    printf "Enter the dev path the USB Thumb Drive is at?"
    read DEVX
    echo ""
    echo "Are you sure $DEVX is the dev path of the USB Thumb Drive... y or n?"
    read verify
    done
    echo ""
    verify="n"
    while [ "$verify" != y ]
    do
    printf "What is the Mount Point of the USB Thumb Drive?"
    read MOUNTX
    echo ""
    echo "Are you sure $MOUNTX is the Mount Point of the USB Drive... y or n?"
    read verify
    done
    echo ""
    install-mbr --enable A1 --partition 1 --force --timeout 0 $DEVX && check5="yes"
    if [ "$check5" = "yes" ]
    then
    echo "Installing MBR on USB Thumb Dirve... OK"
    else
    echo "Could not install MBR on USB Thumb Drive"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    tar xjf ~/usbbiosfiles/*.tar.bz2 && check7="yes"
    if [ "$check7" = "yes" ]
    then
    echo "Unpacking BIOS.ROM file... OK"
    else
    echo "Could not unpack BIOS.ROM file"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    gunzip ~/usbbiosfiles/FDOEM.144.gz && check8="yes"
    if [ "$check8" = "yes" ]
    then
    echo "Unpacking FreeDOS files... OK"
    else
    echo "Could not unpack FreeDOS files"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    mkdir ~/usbbiosfiles/fdoem144 && check9="yes"
    if [ "$check9" = "yes" ]
    then
    echo "Made directory fdoem144 in direcoty usbbiosfiles... OK"
    echo ""
    echo "Going to \sleep \for 5secs"
    else
    echo "Could not make directory fdoem144 in usbbiosfiles directory"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    modprobe loop && sleep 5 && check0="yes"
    if [ "$check0" = "yes" ]
    then
    echo "Modprobeing loop... OK"
    else
    echo "Could not \modprobe loop"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    mount -o loop ~/usbbiosfiles/FDOEM.144 ~/usbbiosfiles/fdoem144 && check10="yes"
    if [ "$check10" = "yes" ]
    then
    echo "Mounting FreeDOS on the fdoem144 directory... OK"
    else
    echo "Could not \mount FreeDOS on the fdoem144 directory"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    cp ~/usbbiosfiles/fdoem144/* $MOUNTX && check11="yes"
    if [ "$check11" = "yes" ]
    then
    echo "Copying FreeDOS files to $MOUNTX... OK"
    else
    echo "Could not copy FreeDOS files to $MOUNTX"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    cp ~/usbbiosfiles/*.ROM $MOUNTX && check12="yes"
    if [ "$check12" = "yes" ]
    then
    echo "Copying BIOS.ROM files to $MOUNTX... OK"
    else
    echo "Could not copy BIOS.ROM files to $MOUNTX"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    sync && check13="yes"
    if [ "$check13" = "yes" ]
    then
    echo "Runing the syncing command... OK"
    else
    echo "Could not run the syncing command"
    echo "look above \for \info"
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this scrip agin"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    rm -r ~/usbbiosfiles
    exit
    fi
    umount ~/usbbiosfiles/fdoem144 && check14="yes"
    if [ "$check14" = "yes" ]
    then
    echo "Unmounting of FreeDOS... OK"
    else
    echo "Could not unmount FreeDOS"
    echo "Look above for errors or problems reported and fix the problem"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this script agin"
    rm -r ~/usbbiosfiles
    exit
    fi
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you see any errors... yes or no?"
    read AN2
    echo ""
    printf "You answered... $AN2 to errors. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN2" == "yes" ]
    then
    echo "User Repoted... Error"
    echo "Look above for errors or problems reported and fix the problem"
    echo ""
    echo "removeing directory usbbiosfiles..."
    echo ""
    echo "Reformat the USB Stick to FAT32 with gparted"
    echo "Fix the problem and run this script agin"
    rm -r ~/usbbiosfiles
    exit
    else
    echo "Success"
    echo "I did a lot of error checking too and didnt find anything"
    echo ""
    echo "Go get a pen and paper to write down these instructions"
    printf "Then hit the Enter to continue"
    read WAIT
    echo ""
    echo "Now leave the USB Thumb Drive pluged into your computer and Reboot. When the Lenovo Logo POST screen appears hit F2 to enter the CMOS setup utility. Go over to BOOT tab and go down to HardDrive \(Not Boot Order) \then \select the USB Thumb Drive as the 1st hard drve. Then F10 and yes to save changes. Your compter will reboot agin. Then when the Lenovo Logo POST Screen appers on reboot hit F4 to enter the BIOS FLASHING program. The USB Thumb Drive will be seen as the C drive \in the list on the Left, Select it. Then \select the .ROM \file \in the list on the Right and start the BIOS FLASH. \(NOTE Your hart may stop beating... This is normal) Pray to any God you know of and your computer should restart just like normal. Hit F2 and the BIOS will now stay it is 06CN29WW. You will need to \set the boot order to the way you like it and other things \if you need to because they have been changed to the default."
    fi
    echo ""
    echo "End of script"
    Last edited by hunterthomson (2008-08-10 11:17:47)

    Personally.....  (this is just how I would have written it - if it works, then it's good enough for me though )
    I would change this whole block:
    verify="n"
    while [ "$verify" != y ]
    do
    printf "Do you have mbr installed... yes or no?"
    read AN1
    echo ""
    printf "You answered... $AN1 I have installed mbr. Is this correct... y or n?"
    read verify
    done
    echo ""
    if [ "$AN1" == "no" ]
    then
    echo "Install mbr now. Then run this script agin"
    exit
    else
    echo "contunuing script"
    fi
    To this much shorter code:
    MBR='/usr/bin/install-mbr' # Or where ever you expect it to be
    if [ ! -x $MBR ] ; then
    echo "mbr doesn't appear to be installed."
    echo "If it is installed, check it's location, make sure it's executable and then make sure the MBR variable in this script is correct"
    exit 1
    fi
    I wouldn't have used the checkXX variables for each stage:
    mkdir ~/usbbiosfiles
    if [ $? != 0 ] ; then
    #failed
    echo "Could not \make directory usbbiosfiles"
    echo "look above \for \info"
    echo "Fix the problem and run this scrip agin"
    exit 1
    else
    echo "Made directory usbbiosfiles... OK"
    fi
    There is an issue with the way you do your verifications - the user can never get out unless they answer 'y' or hit CTRL+C. Something like this gives them options:
    verify="n"
    while [ "$verify" != "y" && "$verify" != "n" ]; do
    echo "You need to answer 'y'es or 'n'o"
    read verify
    echo $verify | tr "[:upper:]" "[:lower:]" # This converts the answer to lowercase so replies entered in upper case will still work
    done
    if [ $verify != 'y' ] ; then
    exit 1
    fi
    One last thing I try to do in scripts... Declare all your binaries as variables at the start of the program, then execute the binary program by using the variable. For example:
    # Binaries
    TAR='/bin/tar'
    CP='/bin/cp'
    CHMOD='/bin/chmod'
    # Execute tar and chmod the created file
    $TAR cvzf /tmp/tarfile.tar.gz /etc/*.conf
    $CHMOD 400 /etc/*.conf
    This way, it's easy to change the path in future without having to hunt through the script if the paths change, and it also ensures you're calling the programs using the full paths to make sure you're not executing some strange variant or alias that someone has setup. If I use `chmod` 30 times in a script, and the path changes in the future or on a different system (`chmod` is a bad example cause it's highly unlikely to change, but you know what I mean), then all you need to do is update the variable at the start of the script, and it all works again without having to script-hunt and change it 30 times.

  • REPORT/PROGRAM statement missing, or program type is INCLUDE error upgrade.

    Hi Experts,
    I have done the recording for FK05 and created functionmodule for the same. But when I use that function module in my custom program or if I try directly execute the FM, I am getting dump like syntax error. So I did syntax check and tried to activate, I am getting "REPORT/PROGRAM statement missing, or program type is INCLUDE error upgrade" error.
    Please help me soon to resolve this issue.
    Thanks in advance.
    Shreyansh

    Hi
    Goto main function group include name attributes tab and double click.
    once the include is opened, try to activate it. if shows errors then fix.
    regards
    Shiva

  • When I error check my Pages-created epub, I get the error code "undeclared prefix: ibooks." How do I resolve this error?

    I'm creating an epub with Pages for upload to various sites. When I error check the epub, I get only one error message: "undeclared prefix: ibooks." The file itself works perfectly and looks fantastic when I open it directly from my computer/ipad with numerous Mac-compatible reading apps. However, I have no idea what distortions this "error" will cause when the epub is uploaded and redistributed. Has anyone else had this problem? If so, did it create problems in distribution? Or is it irrelevant? Thanks for any practical and straight forward answers and/or suggestions.

    Based on that, it does sound like the sites you were having problems with had to do with filenames, not this error.  I can imagine a site running a standard EPUB verifier, and if any errors at all are thrown rejecting the file, but practically speaking an unknown META tag (what's causing this error) should be ignored by the parser and therefore by definition be harmless.
    I was using a free Java-based checker myself, and the fact that I managed to clear up the error indicates to me (unless I'm remembering wrong or misunderstood what fixed it in my case) that it's probably not technically the EPUB checker's failure to recognize the Apple META property; more accurately, it's that the XML dictionary the file is referencing doesn't include the Apple items in it, so the EPUB checker is correctly complaining about it.
    It could also be something as simple as Pages generating a file that is marked as an EPUB v2 file but that uses EPUB v3 features (I know my book was intended to be v3, and I could have inadvertently used headers for v2).
    Regardless, if the sites accept it, there's a good chance it is okay; DRM, at least, isn't going to change anything--only if an e-reader changes its EPUB parser at some point and breaks something, which seems unlikely.
    However, the best way to find out if it's going to work right is to test it.  Kindle is far and away the most popular reader, so try it with that and see if it comes out looking how you expect.  You should be able to view it in the Kindle application, and there is also a Kindle simulatior available from Amazon that lets you see how an e-paper Kindle will render books without having to buy one.  They have very limited EPUB support as far as features go, so it's definitely worth testing even if there are no errors--a lot of things iBooks will display just fine a Kindle will choke on.  The older e-paper Nooks, in my experience, are even worse.

  • Syntax/error checking breaks in FlexBuilder/Flashbuilder with class libraries over Samba?

    We have our class libraries on a shared server we access via Samba (and ssh for command line). Sadly, several features seem to fail in both Flex Builder and Flash Builder/Gumbo with this setup. For example, we no longer get automatic syntax and error checking. Anyone familiar with this issue and able to suggest a solution? Thanks!

    Be sure you are not mixing -compat=4 and -compat=5 compilations in the same program.
    The -compat=4 mode is for compiling very old source code that was written for C++ 4.2 (1996). It provides almost none of the features of standard C++. Don't use this mode unless there is a specific reason why you must.
    Do not use -I or -L options that point into /usr/include, /usr/lib, or into the compiler installation area. These directories are always searched by default in the correct order. If you specify them explicitly, you force an incorrect search order.
    Be sure you have the minimum patch level of SUNWlibC required by the compiler. The patch includes libCstd, libCrun, libC, libiostream, libdemangle, and some other files. The minimum patch level comes with the compiler, and the Sun Studio installer will install the patch on the system where the compiler is installed.
    You also need the patch on every system that runs the compiler, and every system that runs programs created by the compiler.
    It is always safe to use the latest SUNWlibC patch. You can download the current patch from
    http://developers.sun.com/sunstudio/downloads/patches/index.jsp
    But the link failure in your case is due to a missing function from your own code, since it involves a function parameter of a programmer-defined type. I suspect you have either
    1. failed to define (provide a body for) the function,
    2. declared it inconsistently as inline and not inline,
    3. defined the function in a namespace different from the one where it was declared, or
    4. failed to link the object file where the function is defined.

  • Error checking work status

    Dear ALL,
    I'm working on SAP BPC 10.0 NW version.
    So, I'm launching a script logic for a particular company, actually working on the currency translation but unfortunately I got an error "Error checking work status".
    I did enable the Work Status in my model, and I did also put 2 Controls in it. But, I'm very sure the 2 Controls are all pass which I could also see the same from Control Monitor.
    Any part which I could have missed out or any steps I have to work on in order to skip the error?
    BR,
    Antony

    Hi Antony
    Finally the problem was bigger than I thought; the user uploaded data from previous period and it’s affected the currency conversion, because it is configured at periodic way
    The access member profile for each group was configured wrongly, too
    We fix this point and the currency conversion and the work status pass OK
    Thank for your time answer its
    Regards
    Ariel

  • Package Log - Error checking work status

    Hi, Experts,
    We are using SAP BPC 10 NW.
    When we run a package manually it is ok. But when we include it at package link (with the same prompt) and run it, we received error message (Error checking work status). Look at the log below:
    ++++++++++++++++++++++++++++++++++++++++++++++
    /CPMB/MODIFY finished in 0 seconds
    /CPMB/ALLOCATION_LOGIC finished in 449 seconds
    /CPMB/CLEAR finished in 0 seconds
    [Selection]
    SELECTION = /CEREAL/EXPENSE/PRIVATEPUBLICATIONS/BPCADMINBIP/TempFiles/FROM.TMP@@@SAVE@@@@@@EXPAND@@@|DIMENSION:CATEGORY|PROJETADO,REVISAO|DIMENSION:ENTITY|CC_11
    [Message]
    RUN_LOGIC:
    Error checking work status
    +++++++++++++++++++++++++++++++++++++++++++++++
    There is no work status activity at REVISAO and PROJETADO category members at this model.
    Would anybody help us to understand what is happening?
    Best Regards,
    Ana Teresa

    Hi Ana
    I found a related note.
    1945016 - "Error checking work status" when executing package
    Symptom
    There is "Error checking work status" in the status log after executing clear package:/CPMB/CLEAR.
    Environment
    SAP BusinessObjects Planning and Consolidation, version 10 for SAP NetWeaver
    Reproducing the Issue
    Run clear package:/CPMB/CLEAR
    Set check work status when clearing as YES. ("CHECKLCK"=YES)
    Check detail status log
    CauseWork status is not set or not found for the "to be cleared" data.
    Resolution
    Try to change the work status of the data in EPM and check if system pops up with "work status not found".
    If yes, check in work status table (you can get the table name by running program UJ0_GET_GEN_TABNAME) if there is default work status assigned.
    If yes, check UJW_STATCODE table in SE16, incase the line which contain field ORDERN=0 is missing, run program: UJW_UP_INSERT_0_STATE to insert this line.
    See Also
    1862768 - EPMWorkStatus function displays wrong status
    Hope this helps.
    Regards
    Juan Pablo

  • "Error check activation" is the message I get when pulling a book from the library. My computer is authorized (per the ADE screen) I have tried un-authorrzing and re-authorizing but nothing works. Please help

    "Error check activation" is the message I get when pulling a book from the library. My computer is authorized (per the ADE screen) I have tried un-authorrzing and re-authorizing but nothing works. Please help

    I am having the same problem, and my computer is authorized through my Adobe ID and I cannot open any books.  I tried downloading a book from the university library, using my ID, the book is in ACSM format, and I cannot open the book because it keeps telling me
    "error check activation"   I am including screen shots to show my computer is authorized. 

  • SWE3- Help needed to include a check FM

    Hi All,
       I am trying to include a check function module for the instance linkage of IDOCORDERS.INPUTFINISHED through SWE3 transaction.  I get the error that "Parameter SENDER not found". My FM just has a wait statement in it.Is there a standard for the interface?
    Error: Check FM Y_EDIIDOC_EVENT: Parameter SENDER not available Message no. WA683
    Diagnosis
    A parameter was expected for the specified function module, which does not exist in the interface.
    System Response
    The action was aborted.
    Procedure
    Chekc the function module's interface.

    Did you go through the help of that field? Did you define your function module similar to this template function module SWE_CD_TEMPLATE_CHECK_FB? I think that is the issue here. You have to define your function module interface exactly like this template.

  • "Include when checking for new mail" option not working

    Hi,
    I have 2 email accounts set up on mail, but I only want 1 of them to pull down mail (the other will only be used for sending). For the account I don't want to get mail I deselect the box "include when checking for new mail".
    However, Mail still pulls down messages from that account. When I put in the correct server settings for the incoming, it pulls all of my mail (in this case gmail), and when I put in bad settings (as a way of avoiding getting the mail) I get an annoying error message.
    Does anyone know of a way to make that function of Mail work?

    Hi feuerstein.
    How have you set up the Gmail account in Mail (POP, IMAP), and under which circumstances does Mail check for new mail on that account? More info, please.
    BTW, Mail doesn’t automatically check when launched every account if Include when automatically checking for new mail has been turned OFF. That happens with IMAP accounts only (and only if they’re “online”), not with POP accounts, but it isn’t clear at all whether that’s what you’re talking about...

  • Real Time Clock Error - Check Date and Time settings, System CMOS Checksum bad

    Hello everybody,
    Can help anyone to resolve my problem.
    I have an Thinkpad W520 (42823FG), BIOS 8BET60WW 1.4        When I disconect AC power and remove battery and connect again, I see this message on screen:
    "Real Time Clock Error - Check Date and Time settings, System CMOS Checksum bad
    Press Esc to continue or F1 to enter Setup"
    Is this a system board problem or CMOS battery problem ?
    Thank you

    Hello and welcome,
    It's probably (hopefully) just the CMOS battery.  The easiest way to find out is to just replace that battery.
    Page 85 of the Hardware Maintenance Manual:
    Hardware Maintenance Manual
    Here's an example of the battery.  I'm not recommending (or not) this vendor:
    http://www.ebay.com/itm/New-Lenovo-ThinkPad-W500-W510-W520-W530-W700-W701-W701ds-CMOS-RTC-Backup-BAT...
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Error checking no longer works when filling in a form - FF 29

    I am running FF 29.0 and when I try to fill in the following form, the error checking on the form does not work, I cannot tick the checkbox and the 'Submit' button remains 'greyed-out'.
    The problem persists in 'Safe' mode. Here is the form in question:-
    https://digitalmailbox.com.au/registration
    Hope a solution can be found.
    Regards
    Dennis W

    I don't normally use Internet Explorer but on this occasion I thought I would give it a try.
    IE 11.0.9600.17105 handles the above registration page without a problem.
    Is the problem with FF 29 or with the webpage in question?
    Regards
    Dennis W

  • Error checking transport group configuration in System BQS

    Hi Everyone,
    I made a client export from Production to Quality. It went successfully,, I noted the requests numbers and transported them from PRD to Quality, but while transporting there was a tp error(which i did not note), next i went to the quality import queue and saw all the 3 requests had come. But when i click the adjust queue icon im getting the following error message "Error checking transport group configuration in System BQS" .  Afterwards i tried to delete the requests from quality to retransport  from production but still im not able to delete those requests from quality. Can anyone help me solve this.
    Regards,
    Rahul

    Hello Rahul,
    regarding the error message:
    "Error checking transport group configuration in system"
    It's mostly related to the TMSADM RFC destination. Kindly follow the below mention steps:
    1. Logon to client 000 with user DDIC.
    2. STMS   > System   > Overview   > Select the system in which you are logged in   > Click on the menu says EXTRAS   > Generate RFC Destinations
    Perform the above steps in all the systems configure in your TMS. This should resolve the issue.
    Best regards,
    Tomas Black

  • I'm all of a sudden getting a ( Java Script Application "download error" message) when trying to use Ant Video Downloader. What could cause this?

    When an FLV is playing and I want to download it. I click on the Ant download button. A little window appears reading ( Java Script Application "download error" message)

    This works for me on YouTube.
    Cancel the download and then immediately right click and choose retry.

  • Windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    Since Re-activation as suggested by the link above is not working for you, Can you please confirm the following:
    The OperatorURL is reachable. ( you can find the operatorURL from the acsm file by opening it in notepad,etc)
    And Book is still available on the book-store for purchase.
    (If any of first two are not available, you might have to talk to distributor for next action item to get the book. Since you will have record of purchasing the book, (in my opinion) they should provide you the new token for downloading the book)
    And please confirm this that you used the same userID for downloading that you used when you first fulfilled/downloaded the book.
    (If it is the case, then you have to use the correct userID)
    I hope it helps.

Maybe you are looking for

  • Lenovo Hard Disk Issue - Felt bad about the service

    This email is regards to the complaint on Lenovo All in desktop i purchased which is still there in warranty.  I purchased All in one desktop on 25/02/2014 in one of the outlet of Reliance Digital, Bangalore,India. Below is the detail of the product

  • Uninstalled Itunes 3 times, "Locked" was first message, unbelievable!

    My son got an ipod nano for Christmas. We installed it, bought some songs, everything fine for a week. Then we had a computer problem and my husband had to uninstall everything to reformat the drive. When I reinstalled everything on the computer, itu

  • Attachment File Name

    I have a form that was created and is used by users on my local network. The problem is that when a user emails the form using the send by email button I get the email but the attachment file name is always the same. This creates a problem because wh

  • Password bypass

    I was having trouble with corrupted explorer programme so I decided to use reinstall OSX CD, after copying my original system data onto DVD. Touble is when I rebooted system and it asked for my password I realised I couldn't remember it since it had

  • Trying to add apple protection plan but lost receipt for the additional proof what can i do?

    I bought my Mac Book pro 13" a year ago but i moved to Japan and lost my receipt during the moving process now am trying to add an extra 2 year protection plan to my Mac but Apple requiers the receipt what can i do ??