Presentation Vairable Problem when used in a Filter defined using SQL

I am receiving the following error message when I use an Advanced SQL Filter:
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
and T35015.FISCAL_YEAR between '@{fyprompted-5}' and '@{fyprompted}' ) group by T35015.FISCAL_YEAR, T38514.FUND_FDESCR, concat(concat(T38598.DEPT_ID, ' - '), T38598.DEPT_LD) order by c2, c3, c4. [nQSError: 17011] SQL statement execution failed. (HY000)
The Filter that I have created: (Period."Fiscal Year" <= ('@{fyprompted}') AND (Period."Fiscal Year" >= ('@{fyprompted-5}')))
fiscal year is an Int data type.
I have tried different syntax and reviewed few different online forms.
The best link regarding Presentation Variables seemed to be:
http://gerardnico.com/wiki/dat/obiee/presentation_variable
I have already created a prompt on this field and specified the fyprompted as the Presentation Variable. Also, searched the error messages and codes but didn't find any thing specific.
What am I doing wrong?
Any insight would be appreciated.
Thanks.

Thanks Goran:
Just to clarify. When I'm creating the prompt, for
Operator: is equal to/ is in
Show, "All Values" is presented the drop down and I have not checked (All Choices).
Default to, Can I show a Specific value, instead of SQL. (I also tried the following SQL to set the default: SELECT MIN(PERIOD."FISCAL YEAR) FROM "FINANCE GL")
Set Variables, set to Presentation Variable: pv_fiscal_year
My Filter (SQL): Period."Fiscal Year" between @{pv_fiscal_year}-5 and @{pv_fiscal_year}
I still get the following error.
Error getting drill information: SELECT "- Campus Summary".Actuals saw_0, Period."Fiscal Year" saw_1, "Finance Department"."Dept Fdescr" saw_2, Fund."Fund Fdescr" saw_3 FROM "Finance GL" WHERE ((Account."Acct Type Fdescr" IN ('50 - Revenues', '60 - Expenditures')) AND (Period."Period Descr" NOT IN ('PERIOD 998', 'PERIOD 999'))) AND (Period."Period Descr" <> 'PERIOD 0') AND (Period."Fiscal Year" between @{pv_fiscal_year}-5 and @{pv_fiscal_year})
Error Details
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: {call NQSGetLevelDrillability('SELECT "- Campus Summary".Actuals saw_0, Period."Fiscal Year" saw_1, "Finance Department"."Dept Fdescr" saw_2, Fund."Fund Fdescr" saw_3 FROM "Finance GL" WHERE ((Account."Acct Type Fdescr" IN (''50 - Revenues'', ''60 - Expenditures'')) AND (Period."Period Descr" NOT IN (''PERIOD 998'', ''PERIOD 999''))) AND (Period."Period Descr" <> ''PERIOD 0'') AND (Period."Fiscal Year" between @{pv_fiscal_year}-5 and @{pv_fiscal_year})')}
Thanks.

Similar Messages

  • Can I using Oracle Password filter without using DIP?

    Hi expert,
    Can I using Oracle Password filter without using DIP?
    I installed OID 1.1.1.5.0 and AD MS 2008 + Password Filter without other configuration about DIP.
    While Install password filter, I use 'sAMAccountName' as Source Attribute (Microsoft Active Directory) and 'orclSAMAccountName' as Target Attribute (Oracle Internet Directory) instead of using objectGUID.
    My Scenario test
    1. setup password filter follow by 20 Deploying the Oracle Password Filter for Microsoft Active Directory
    2. create user in AD
    3. create user in OID
    4. reset password in AD
    I found that it can't send password from AD to OID.
    See log below
    OID Base DN is ---->
    dc=ksso,dc=com
    About to retrive connection
    Got the Connection
    Inside Add Parent
    About to add node
    Node Added
    retval is NOT success
    Out of Add Parent
    Domain String -->
    KSSO.LOCAL
    User Domain String -->
    [email protected]
    Inside OID Search User sgslodac
    About to fire the search request
    TEST BASE -->
    dc=ksso,dc=com
    Password Update Failed. No record to update
    Search did not reterive any data
    Writing data into persistence store
    INSIDE IF PERSISTENT STORE
    Inside sgsladds::sgslperwriteData YOOOO
    Inside sgsladac c-tor
    AD Host
    10.20.5.60
    AD Port
    389
    AD Base DN
    DC=KSSO,DC=LOCAL
    Only dataattribute
    Got Registry enteries
    contact
    description
    Got Entiredn
    OU=orclpwfKSSO.LOCAL,DC=KSSO,DC=LOCAL
    Encrypted record already exists in Datastore
    Already Exists
    Encrypted record already exists in Datastore
    Already Exists
    Inside sgsladdsSearchUser
    Firing Search Request
    AD search for a user objectGUID is successfull
    Count success
    Search result fetched
    0:437 7 monsoft314 420 AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAlfdA8eazxkaNLy8BEBQHKgAAAAAmAAAAUABhAHMAcwB3AG8AcgBkACAARQBuAGMAcgBwAHQAaQBvAG4AAAAQZgAAAAEAACAAAAALknXvaho0gPrrP34AQqdBSMLHHcVupTrFuuN0lQdV0QAAAAAOgAAAAAIAACAAAAAKxX3FGNQ/lJBjETm3pRiveLFRiiCwxbrf3UNlQtk5C0AAAAC66Ip1jAzC6U1gTVP9LHETW1MwEfzxSXHcCny9wy7pFyDlLtmpnP1nGYUegAMxvJTu5yGmciBMmfZAgS1Oan3PQAAAAETSu3JcNAkdSqm2E1zxSWxClWrBid/eLHpbasjHo5cLgkGjzI6+UWNHzhfOf86wJ0uuex+++0ttFRzzMEf9atE=
    Inside sgsladds::sgsladdsgetData NEW Look
    0:437 7 monsoft314 420 AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAlfdA8eazxkaNLy8BEBQHKgAAAAAmAAAAUABhAHMAcwB3AG8AcgBkACAARQBuAGMAcgBwAHQAaQBvAG4AAAAQZgAAAAEAACAAAAALknXvaho0gPrrP34AQqdBSMLHHcVupTrFuuN0lQdV0QAAAAAOgAAAAAIAACAAAAAKxX3FGNQ/lJBjETm3pRiveLFRiiCwxbrf3UNlQtk5C0AAAAC66Ip1jAzC6U1gTVP9LHETW1MwEfzxSXHcCny9wy7pFyDlLtmpnP1nGYUegAMxvJTu5yGmciBMmfZAgS1Oan3PQAAAAETSu3JcNAkdSqm2E1zxSWxClWrBid/eLHpbasjHo5cLgkGjzI6+UWNHzhfOf86wJ0uuex+++0ttFRzzMEf9atE=
    Encoded Data Extracted in sgsladdsgetData
    437 7 monsoft314 420 AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAlfdA8eazxkaNLy8BEBQHKgAAAAAmAAAAUABhAHMAcwB3AG8AcgBkACAARQBuAGMAcgBwAHQAaQBvAG4AAAAQZgAAAAEAACAAAAALknXvaho0gPrrP34AQqdBSMLHHcVupTrFuuN0lQdV0QAAAAAOgAAAAAIAACAAAAAKxX3FGNQ/lJBjETm3pRiveLFRiiCwxbrf3UNlQtk5C0AAAAC66Ip1jAzC6U1gTVP9LHETW1MwEfzxSXHcCny9wy7pFyDlLtmpnP1nGYUegAMxvJTu5yGmciBMmfZAgS1Oan3PQAAAAETSu3JcNAkdSqm2E1zxSWxClWrBid/eLHpbasjHo5cLgkGjzI6+UWNHzhfOf86wJ0uuex+++0ttFRzzMEf9atE=
    Moving out sgsladdsgetData
    Encoded Data Extracted
    437 7 monsoft314 420 AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAlfdA8eazxkaNLy8BEBQHKgAAAAAmAAAAUABhAHMAcwB3AG8AcgBkACAARQBuAGMAcgBwAHQAaQBvAG4AAAAQZgAAAAEAACAAAAALknXvaho0gPrrP34AQqdBSMLHHcVupTrFuuN0lQdV0QAAAAAOgAAAAAIAACAAAAAKxX3FGNQ/lJBjETm3pRiveLFRiiCwxbrf3UNlQtk5C0AAAAC66Ip1jAzC6U1gTVP9LHETW1MwEfzxSXHcCny9wy7pFyDlLtmpnP1nGYUegAMxvJTu5yGmciBMmfZAgS1Oan3PQAAAAETSu3JcNAkdSqm2E1zxSWxClWrBid/eLHpbasjHo5cLgkGjzI6+UWNHzhfOf86wJ0uuex+++0ttFRzzMEf9atE=
    Incrementing the MAX_RETRY LIMIT:
    1
    numretries ====== 
    1
    Inside sgslcodsupdateChild
    1:437 7 monsoft314 420 AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAlfdA8eazxkaNLy8BEBQHKgAAAAAmAAAAUABhAHMAcwB3AG8AcgBkACAARQBuAGMAcgBwAHQAaQBvAG4AAAAQZgAAAAEAACAAAAALknXvaho0gPrrP34AQqdBSMLHHcVupTrFuuN0lQdV0QAAAAAOgAAAAAIAACAAAAAKxX3FGNQ/lJBjETm3pRiveLFRiiCwxbrf3UNlQtk5C0AAAAC66Ip1jAzC6U1gTVP9LHETW1MwEfzxSXHcCny9wy7pFyDlLtmpnP1nGYUegAMxvJTu5yGmciBMmfZAgS1Oan3PQAAAAETSu3JcNAkdSqm2E1zxSWxClWrBid/eLHpbasjHo5cLgkGjzI6+UWNHzhfOf86wJ0uuex+++0ttFRzzMEf9atE=
    Encrypted record data updated successfully
    Inside sgsladac destructor
    Inside sgslodac destructor
    Inside sgsladac destructor
    Password updation failed in child process
    Moving out sgslpascsynchDataStoreWithOID
    About to UNBIND datastore after processing the Records
    Deleting datastore object pointer
    ***********Inside sgslldpcopenLDAPConnection****************
    REG BASE Key === 
    SYSTEM\CurrentControlSet\Control\Lsa\orclidmpwf\OIDConfig
    OID Host Key
    OIDHost
    OID Host Value ====
    Oracle.OID
    am I missing something?
    or this scenario can't work without DIP?
    Thank you
    Noraset,

    Hi,
    As yingkuan had provided nice link for understanding...
    Why you od this doubt... Since, When you are holding two different Database, then you can carry out stream replicaiton, the bottom line is on the on two different DB's.. .still if they are on same host.. !!
    - Pavan Kumar N

  • When using Skype my IPad sounds like ocean. This is not a problem when I am on FaceTime or using other apps with sound.  Recently updated to newest IOS 7. First there was no sound for Kype and found that had to turn microphone sound on.

    When using Skype my IPad 2 now sounds like the ocean and I can barely here my contact.  This happened recently after IOS7 update. I did turn the microphone on for Skype as it was required after update.  Now my sound is terrible but only a problem when using Skype video call.  It is okay for FaceTime.

    Thank you!  Resetting resolved the issue with terrible sound when trying to use skype.  Sounds much better! 
    I am not sure what all changed when reset was applied to settings --- assume it defaults back to basic settings.  I have no idea what I had customized, so will slowly figure out.  I have noticed several things.  So far I had to add back my wallpaper and reenter password to get back on my wi-fi. 
    At least SKYPE is now audible.

  • Apple uses the postal service for delivery of  some items but won't allow entry of a PO box. This presents a problem when the post office is in a town where they don't do street address deliveries. I can find no place to submit this problem except here.

    I've just placed an order for a 13" Macbook Pro and a superdrive, both to be shipped to a business street address. The cart shows the computer being delivered by "standard shipping" but the superdrive by the Postal Service--but at this address the PO doesn't do street delivery. If Apple would when this kind of delivery is specified allow the entry of a PO box it would solve the problem. An option to enter this info could be presented on the screen when appropriate and it would be very simple to do. I hope this suggestion gets to the right people--I could find no way to submit it on the Apple site and even here I've had to choose a product as a community when something like "Apple Shipping systems" would have been better. It will be interesting to see if anyone else has encountered this problem.

    Apple folks would be monitoring this and perhaps tell me a better way or pass the info on.
    NOPE!  Apple does not monitor their message boards because it's user to user.  If Feedback is working out, then call Apple Customer Relations - 1-800-767-2275.  Ask politely & firmly that you want to be transferred to Customer Relations.  Tell them exactly what you stated in your post.         GOOD LUCK! 

  • Problem when simultaneously retriving data from berkeleydb using web applic

    Hi all
    Plz Help
    i am using jboss server .
    my problem is :
    i have 2lacks recodrs in berkeleydatabase
    when i try to retrive data it working properly for one browser
    if i start retrive data simultaneously using two IES it getting this exception
    how to solve this problem,i mean separeate session for separate client
    in java session trking techique i applied ,but here not working retriving data from berkeleydb.collision occur
    11:47:08,468 ERROR [STDERR] Database handles still open at environment close
    11:47:08,468 ERROR [STDERR] Open database handle: smscsucc.db
    11:47:08,468 ERROR [STDERR] java.lang.IllegalArgumentException: Invalid argument
    11:47:08,468 ERROR [STDERR] at com.sleepycat.db.internal.db_javaJNI.DbEnv_cl
    ose0(Native Method)
    11:47:08,468 ERROR [STDERR] at com.sleepycat.db.internal.DbEnv.close0(DbEnv.
    java:208)
    11:47:08,468 ERROR [STDERR] at com.sleepycat.db.internal.DbEnv.close(DbEnv.j
    ava:76)
    11:47:08,468 ERROR [STDERR] at com.sleepycat.db.Environment.close(Environmen
    t.java:39)
    11:47:08,468 ERROR [STDERR] at daos.RetriveDao.getData(RetriveDao.java:131)
    11:47:08,468 ERROR [STDERR] at controllers.MainServlet.getData(MainServlet.j
    ava:47)
    11:47:08,468 ERROR [STDERR] at controllers.MainServlet.serviceHelper(MainSer
    vlet.java:76)
    11:47:08,468 ERROR [STDERR] at controllers.MainServlet.doGet(MainServlet.jav
    a:101)
    11:47:08,468 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:697)
    11:47:08,468 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:810)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:252)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    11:47:08,468 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
    r.doFilter(ReplyHeaderFilter.java:96)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:202)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
    .invoke(StandardWrapperValve.java:213)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
    .invoke(StandardContextValve.java:178)
    11:47:08,468 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia
    tionValve.invoke(SecurityAssociationValve.java:175)
    11:47:08,468 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv
    e.invoke(JaccContextValve.java:74)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
    voke(StandardHostValve.java:126)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
    nvoke(ErrorReportValve.java:105)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
    invoke(StandardEngineValve.java:107)
    11:47:08,468 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s
    ervice(CoyoteAdapter.java:148)
    11:47:08,468 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
    ess(Http11Processor.java:869)
    11:47:08,468 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$H
    ttp11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    11:47:08,468 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
    ocessSocket(PoolTcpEndpoint.java:527)
    11:47:08,468 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerT
    hread.run(MasterSlaveWorkerThread.java:112)
    11:47:08,468 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x29693a05, pid=832, tid=3776
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
    # Problematic frame:
    # C [libdb44.dll+0x33a05]
    # An error report file with more information is saved as hs_err_pid832.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    Press any key to continue . . .
    Thnking you
    Thanks & Regards
    Venkat Gadarla

    Hello,
    Your question is about Berkeley DB -- this is the Berkeley DB Java Edition forum. Please repost this over at:
    Berkeley DB
    Thanks.
    Charles Lamb

  • I keep receiving this error: "the application cannot be installed due to a certificate problem" when trying to update program that use adobe AIR (vudu-to-go)

    Can anyone tell me how I can get around this error? I've tried reinstalling adobe air and reinstalling the programs but neither works.

    This issue happens when an older version of Adobe Story is already installed on a system.
    To resolve this issue you will have to first remove that version and then install the latest one.
    Now depending upon which system you are using, below are the steps:
    MAC:
    Open 'Applications' folder in Finder.
    Move 'Adobe Story' application to Trash and remove it from Trash too.
    Just to make sure that this application is not installed on a different drive, do a search for 'Adobe Story' in spotlight. If it is present on a different location, then remove it from there too.
    Now log into story.adobe.com and download the desktop application again and install it.
    WINDOWS:
    Open Controls Panel and uninstall Adobe Story application
    Now log into story.adobe.com and download the desktop application again and install it

  • Problem when trying to rename uploaded images using session value

    Hi,
    I have a form where 9 images are uploaded made into thumb nail size and then stored in a file. What I´m trying to do is rename those thumbnails from their original name to username_0, username_1, username_2 etc for each of the 9 thumbs. The username comes from the registration form on the same page. I have created a session variable for the username and am trying to use that to change to name of the image name, whilst my images are uploading and resizing the name stays as the original and not as the new username_$number. I have pasted relevant code below and would very much appreciate any help with this:
    <?php session_start();
    // check that form has been submitted and that name is not empty and has no errors
    if ($_POST && !empty($_POST['directusername'])) {
    // set session variable
    $_SESSION['directusername'] = $_POST['directusername'];
    // define a constant for the maximum upload size
    define ('MAX_FILE_SIZE', 5120000); 
    if (array_key_exists('upload', $_POST)) {
    // define constant for upload folder
    define('UPLOAD_DIR', 'J:/xampp/htdocs/propertypages/uploads/');
    // convert the maximum size to KB
    $max = number_format(MAX_FILE_SIZE/1024, 1).'KB';
    // create an array of permitted MIME types
    $permitted = array('image/gif','image/jpeg','image/pjpeg','image/png');
    foreach ($_FILES['photo']['name'] as $number => $file) {
    // replace any spaces in the filename with underscores
    $file = str_replace(' ', '_', $file);
    // begin by assuming the file is unacceptable
    $sizeOK = false;
    $typeOK = false;
    // check that file is within the permitted size
    if ($_FILES['photo']['size'] [$number] > 0 && $_FILES['photo']['size'] [$number] <= MAX_FILE_SIZE) {
    $sizeOK = true;
    // check that file is of a permitted MIME type
    foreach ($permitted as $type) {
    if ($type == $_FILES['photo']['type'] [$number]) {
    $typeOK = true;
    break;
    if ($sizeOK && $typeOK) {
    switch($_FILES['photo']['error'] [$number]) {
    case 0:
    include('Includes/create_thumbs.inc.php');
    break;
    case 3:
    $result[] = "Error uploading $file. Please try again.";
    default:
    $result[] = "System error uploading $file. Please contact us for further assistance.";
    elseif ($_FILES['photo']['error'] [$number] == 4) {
    $result[] = 'No file selected';
    else {
    $result[] = "$file cannot be uploaded. Maximum size: $max. Acceptable file types: gif, jpg, png.";
    ................CODE BELOW IS THE INCLUDES FILE THAT MAKES AND TRIES TO RENAME THE THUMBS................................................
    <?php
    // define constants
    define('THUMBS_DIR', 'J:/xampp/htdocs/propertypages/uploads/thumbs/');
    define('MAX_WIDTH_THB', 75);
    define('MAX_HEIGHT_THB', 75);
    set_time_limit(600);
    // process the uploaded image
    if (is_uploaded_file($_FILES['photo']['tmp_name'][$number] )) {
    $original = $_FILES['photo']['tmp_name'][$number] ;
    // begin by getting the details of the original
    list($width, $height, $type) = getimagesize($original);
    // check that original image is big enough
    if ($width < 270 || $height < 270) {
    $result[] = 'Image dimensions are too small, a minimum image of 270 by 270 is required';
    else { // crop image to a square before resizing to thumb
    if ($width > $height) {
    $x = ceil(($width - $height) / 2);
    $width = $height;
    $y = 0;
    else if($height > $width) {
    $y = ceil(($height - $width) / 2);
    $height = $width;
    $x = 0;
    // calculate the scaling ratio
    if ($width <= MAX_WIDTH_THB && $height <= MAX_HEIGHT_THB) {
    $ratio = 1;
    elseif ($width > $height) {
    $ratio = MAX_WIDTH_THB/$width;
    else {
    $ratio = MAX_HEIGHT_THB/$height;
    if (isset($_SESSION['directusername'])) {
    $username = $_SESSION['directusername'];
    // strip the extension off the image filename
    $imagetypes = array('/\.gif$/', '/\.jpg$/', '/\.jpeg$/', '/\.png$/');
    $name = preg_replace($imagetypes, '', basename($_FILES['photo']['name'][$number]));
    // change the images names to the user name _ the photo number
    $newname = str_replace ('name', '$username_$number', $name);
    // create an image resource for the original
    switch($type) {
    case 1:
    $source = @ imagecreatefromgif($original);
    if (!$source) {
    $result = 'Cannot process GIF files. Please use JPEG or PNG.';
    break;
    case 2:
    $source = imagecreatefromjpeg($original);
    break;
    case 3:
    $source = imagecreatefrompng($original);
    break;
    default:
    $source = NULL;
    $result = 'Cannot identify file type.';
    // make sure the image resource is OK
    if (!$source) {
    $result = 'Problem uploading image, please try again or contact us for further assistance';
    else {
    // calculate the dimensions of the thumbnail
    $thumb_width = round($width * $ratio);
    $thumb_height = round($height * $ratio);
    // create an image resource for the thumbnail
    $thumb = imagecreatetruecolor($thumb_width, $thumb_height);
    // create the resized copy
    imagecopyresampled($thumb, $source, 0, 0, $x, $y, $thumb_width, $thumb_height, $width, $height);
    // save the resized copy
    switch($type) {
    case 1:
    if (function_exists('imagegif'))  {
    $success[] = imagegif($thumb, THUMBS_DIR.$newname.'.gif');
    $photoname = $newname.'.gif';
    else {
    $success[] = imagejpeg($thumb, THUMBS_DIR.$newname.'.jpg',50);
    $photoname = $newname.'.jpg';
    break;
    case 2:
    $success[] = imagejpeg($thumb, THUMBS_DIR.$newname.'.jpg', 100);
    $photoname = $newname.'.jpg';
    break;
    case 3:
    $success[] = imagepng($thumb, THUMBS_DIR.$newname.'.png');
    $photoname = $newname.'.png';
    if ($success) {
    $result[] = "Upload sucessful";
    else {
    $result[] = 'Problem uploading image, please try again or contact us for further assistance';
    // remove the image resources from memory
    imagedestroy($source);
    imagedestroy($thumb);
    ?>
    I hope i´ve supplied enough information and look forward to receiving any help or advise in this matter.

    Use double quotes here:
    $newname = str_replace ('name', '$username_$number', $name);
    Change it to this:
    $newname = str_replace ('name', "$username_$number", $name);

  • Problem when add Chroma Key filter to DVCPRO HD

    I ingested some DVCPRO HD 720Pn footage into FCP. The footage was shot against a green screen. I started by creating a 4-point garbage matte around the person and then I added Color Smoothing and when I add the Chroma Key filter, the green screen comes back and a large grey area appears on screen. What is going on?

    Ok, I just tried it again by creating the 4-pt matte and as soon as I drag the Chroma Key Filter to the clip, the points disappear, and the entire green screen comes back. Is this the way it is supposed to behave? Is there some type of apply button that I need to select after adjusting the last point of the garbage matte before doing anything else?
    Thanks!
    Message was edited by: rick.pearl

  • Problems when I try to type in using Lion

    I can't write anything because as soon as I enter a program it leaves the edit mode. The program does not accept input from the keyboard. Anyone know how to fix that in Lion?

    Yesterday, I was unable to type into Pages and could not, for the life of me, figure out what this was about. While I was cogitating, a window popped up on my desktop, informing me that a new version of BetterTouchTool (a Magic Mouse app) was available for download. I installed it immediately and when I went back to Pages, I was able to type. So, in my case, a 3rd party app for the mouse was somehow responsible for my problems with Pages. 

  • Why when I am using the 4Hz filter, on the SCXI1122, it slows down my entire system.

    I have a simple VI set up that reads one channel from the SCXI1122. I have AI Sample channel.vi in a 3 second while loop. When I setup the SCXI1122 to use the 4Hz filter and run my VI the used system resources on my computer go to 100% and slows everything down. Can somebody explain to me why this is happening.

    My first reaction to your question is that the SCXI-1122 can only sample 1 sample per second when the 4 Hz filter is used. I would assume that it should work in a 1 second or longer loop. When you say 3 second while loop, I'm assuming that you mean you have a wait statement set for 3 seconds within the loop.
    I would assume that your computer slowing could be a function of the AI Sample VI making the call to the board to get the sample, and then having to wait 1 second for the sample. If you don't have multithreading enabled, this could definitely make your computer "wait" until the data is available.
    This is just my experience. Hope it helps you in some way.
    Mark

  • DSS problems when publishing large amount of data fast

    Has anyone experienced problems when sending large amounts of data using the DSS. I have approximately 130 to 150 items that I send through the DSS to communicate between different parts of my application.
    There are several loops publishing data. One publishes approximately 50 items in a rate of 50ms, another about 40 items with 100ms publishing rate.
    I send a command to a subprogram (125ms) that reads and publishes the answer on a DSS URL (app 125 ms). So that is one item on DSS for about 250ms. But this data is not seen on my man GUI window that reads the DSS URL.
    My questions are
    1. Is there any limit in speed (frequency) for data publishing in DSS?
    2. Can DSS be unstable if loaded to much?
    3. Can I lose/miss data in any situation?
    4. In the DSS Manager I have doubled the MaxItems and MaxConnections. How will this affect my system?
    5. When I run my full application I have experienced the following error Fatal Internal Error : ”memory.ccp” , line 638. Can this be a result of my large application and the heavy load on DSS? (se attached picture)
    Regards
    Idriz Zogaj
    Idriz "Minnet" Zogaj, M.Sc. Engineering Physics
    Memory Profesional
    direct: +46 (0) - 734 32 00 10
    http://www.zogaj.se

    LuI wrote:
    >
    > Hi all,
    >
    > I am frustrated on VISA serial comm. It looks so neat and its
    > fantastic what it supposes to do for a develloper, but sometimes one
    > runs into trouble very deep.
    > I have an app where I have to read large amounts of data streamed by
    > 13 µCs at 230kBaud. (They do not necessarily need to stream all at the
    > same time.)
    > I use either a Moxa multiport adapter C320 with 16 serial ports or -
    > for test purposes - a Keyspan serial-2-USB adapter with 4 serial
    > ports.
    Does it work better if you use the serial port(s) on your motherboard?
    If so, then get a better serial adapter. If not, look more closely at
    VISA.
    Some programs have some issues on serial adapters but run fine on a
    regular serial port. We've had that problem recent
    ly.
    Best, Mark

  • Problem when extracting DataSource 0PAYSCALELV_ATTR from R/3 ECC6 to BW 3.5

    We have recently begun upgrading to ECC6.0 from 4.7.  We are still using BW 3.5.  After upgrading our Sandbox to ECC6.0, we found a problem when extracting Pay scale level attributes using DataSource 0PAYSCALELV_ATTR.  For some reason the table values are being multiplied by 26 by the extractor, which was not happening in 4.7.  Therefore in our BW system, these employees salaries are being calculated incorrectly because the hourly rate coming from R/3 is already wrong.  Please help!
    Kim Huskey
    Tarrant County IT
    CCC - SAP Support

    Hi Surendhar,
        Did you try to check the connection b/w ypur source system and the target system?
    You can do it by executing T.Code RSA1-> Select Source Systems-> Right click your source system-> Check.
    Also, pls check ST22 for any short dumps and SM21 for system logs.
    Hope it helps!!!!
    Amit
    Message was edited by: Amit

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • Problem when running a WebDynpro application

    Hi,
    Can any one help me in solving this.
    I got a problem when running a WebDynpro application Which used to run fine before, when i developed it.
    Now i got an error showing,
       <b>com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=B MSHOST=obtdev4 GROUP=SPACE R3NAME=O20 MSSERV=sapmsO20 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '127.0.0.1:3320' not reached TIME Tue Aug 07 10:06:07 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -10 MODULE nixxi.cpp LINE 2764 DETAIL NiPConnect2 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 2</b>
    can any one tell me the solution for it.
    Thanks in advance,
    MrChowdary

    Arun,
    I had checked for the JCo Connection, tested it I got some error.
    But i am unable to understand where exately the problem is as is i already told that it used to work fine with same JCo.
    Thanks,
    Bharath.

  • N85 firmware version 30.101 problem when watching ...

    After i update my n85 version from 30.019 to 30.101, i face a problem when trying to watch youtube without using the youtube application. When i use wifi and go to www.youtube.com, find video and klick on a video to start it, then Realplayer starts and says "loading" and then it failed to load the video. Before i update to 30.101, it will play the video by flash player like normal desktop screen without using real player. The problem now is it will stop on real player without play the video. The only way i can watch youtube right now is using youtube application. But i dont prefer using youtube application because the browser is diff frm the page u see frm the desktop screen.

    I'm also having issues when trying to view a video and real player comes up and says loading but it never does. Whether youtube, a live stream, or video on demand, this issue has been happening now consistently where the video will not play on a URL within the web browser. Please help Nokia! Where is your support? 

Maybe you are looking for

  • HP Laserjet Pro 200 Colour MFP M276nw

    How do I scan up to 30 or 50 pages at once, good quality yet NB at a compressed size for assignments with this printer? I do have HP LJ200 M276 Scan.  I also have the Readiris Pro 12 software that came with the product, but the quality and compressio

  • I have weak, almost no sound using Windows 7 on my iMac.

    All indicators on Windows say it's working and at maximum but it's barely audible.  Suggestions? I have used the latest version of Boot Camp and cannot find a sound adjustment anywere else.  The sound is fine on the OSX side.

  • Typewriter Tool in Reader 9 no longer allows text styling

    In Acrobat 8, I use to be able to right-click with the typewriter tool and choose bold or italic in using "Type Styles." This feature is gone in Acrobat 9. Did Adobe remove it? If so why? Rob

  • How to download latest InDesign CS3 Server Installer?

    Hi there, Anyone can help me point to the right direction, how to download the latest InDesign CS3 Server Installer (without the error).? been looking for couple of days in this adobe site, but nothing found. Thank you. Regards Jimmy Harjadi

  • Why is the Last synced time: 1/1/1601 12:00:00 AM

    I'm doing a cutover migration from Exchange 2003. When I check the migration batch statistics, the "Last synced time" is always 1/1/1601 12:00:00 AM I can't determine what this means, or why it is like that.  I want to ensure that the last sync is co