Lossing Trailling Space

When I run a query report from the database the result returns a value(a key)which contains a trailling space at the end of the value.
When I look at the HTML produced the space is missing thus when the value is used to query the database no results are returned as the value is incorrect (missing trailling space)
Could someone help me out on how to get the correct value to pass to the database.
Thanks

re your first issue, my test case works fine. i have a report based on a query like this...
select replace ('string ',' ','%20') str, 'dummy' col2 from dual
...and i've set my column link up on the column attributes page as this...
f?p=&APP_ID.:3:#APP_SESSION#::::P3_JOB:#STR#
...and when i check the length(:P3_JOB) from page 2, i see that it's correctly 7. are you doing something differently, by any chance?
re your second issue, you'd have to replace each of your spaces with  an ampersand followed by nbsp; to retain them if you're displaying them values in html. otherwise they'll just shorten down to a single space. if you check the length of the item in session state, i bet you'll find it has the correct number of spaces.
regards,
raj

Similar Messages

  • Nvarchar trailling spaces

    Hello together,
    I have made a table:
    /****** Object: Table [dbo].[testTable] Script Date: 30.04.2015 12:22:11 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[testTable](
    [Id] [int] NOT NULL,
    [text] [nvarchar](255) NOT NULL
    ) ON [PRIMARY]
    GO
    now i have inserted two rows
    one row Id = 1 and text='hallo'
    second row Id = 2 and text='hallo '     (trailling space)
    after this i have made an update:
    update testTable set id=4 where Text=N'hallo'
    after this i get the message: (2 row(s) affected)
    and both rows hat the Id=4
    I'm not happy with this behavior.
    What can I do?
    thanks for your reply

    Reason: This is because SQL Server ignores trailing spaces while making comparison through "=". Ex. "Text" is similar to "Text  " in SQL in comparison.
    To avoid that use DATALENGTH to calculate the actual length of the column.. not LEN()
    Sample
    CREATE TABLE [dbo].[testTable](
    [Id] [int] NOT NULL,
    [text] [nvarchar](255) NOT NULL
    ) ON [PRIMARY]
    Insert into [dbo].[testTable] VALUES
    (1,'hallo'),
    (2,'hallo ')
    DECLARE @SearchText nvarchar(255) = 'hallo'
    update testTable set id=4 where Text=@SearchText
    AND DATALENGTH(text) = DATALENGTH(@SearchText);
    SELECT *, ASCII(text),DATALENGTH(text) FROM [dbo].[testTable]
    SQL Fiddler code
    Hope this will help
    Edit:
    I was bit too late, please consider Olaf
    Helper & Erland
    Sommarskog answers. +1 for quick response. 
    Glad to help! Please remember to accept the answer if you found it helpful. It will be useful for future readers having same issue.
    My Profile on Microsoft ASP.NET forum

  • Ongoing loss of space on internal HD

    27 inch late 2009 iMac 3.06 GHz Intel Core 2 Duo with 1TB internal HD running OSX 10.9.2
    I've noticed a continuing rapid loss of internal HD space, in the last three months I've gone from over 300GB of free space to 230GB.  I've not been adding any files of any size (video files etc).
    Yesterday, my TimeMachine completed a scheduled backup at 17:44 and I put the compter to sleep at 18:14.  All I was doing in the remaining 30 mins since the last backup was complete was scriptwriting (using a scriptwriting program called Movie Magic Screenwriter 6).  The entire file for this script is 271 KB.
    This morning, within minutes of me waking up my iMac, TimeMachine started to backup 2831 files constituting a total of 145.1MB of data.
    How is this even possible???  How did so many files get generated when my iMac was asleep and is this why I've been steadily losing free space on my internal HD when I'm so careful as to not clutter it up with large files?

    Timemachine has just started it's second backup of the day and is now backing up 60336 files, 3.19 GB of data! 
    HOW IS THIS POSSIBLE???
    I've not created any new files at all in the last hour since the last backup...
    What is going on here?

  • Urgent!!!!Weird loss of space

    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "CKOR.PKG_STD_MIS_DTDQ", line 360
    ORA-01653: unable to extend table CKOR.DRI_410_CPMB_20040630 by 32 in
    tablespace KOR_DATA
    ORA-06512: at "CKOR.KR_STD_MIS_DTDQRUN", line 9
    ORA-06512: at line 5
    I update a table which is about 1.6G
    but when I was updating the table ,It met with a error just like above
    and then I find the table became more than 6G
    I don't know where is the space added.
    you know updating this table failed.No new info was added to the table.

    Hi,
    First you have to know that any filesystem will take some storage space in order to work so there's few MBytes lost in creating/formatting a drive.
    Plus Apple provide the macbook with OS X (which takes several GBytes) and many third party apps (which takes few other GBytes).
    If you regulary go on the internet -, be sure to erase your cookies/tempFiles/cache (more MBytes wasted) and don't keep several instances of the same file for example if you recieved an attachment to a mail and you saved the attachment then the instance in the mail is redondant and useless ....
    Just to say that it seems to be a normal situation.
    Macbook 1,83 512Mo / 60 Go   Mac OS X (10.4.7)  

  • Interactive Report "in" filters do not maintain trailling spaces

    I recently came across an interesting situation regarding interactive reports and "in" filters. When building the in list through the filter wizard, any trailing spaces in the column data is trimmed, which leads to inaccurate report results. This doesn't happen on a "=" filter, it seems limited to "in" filters.
    I have an example here: http://apex.oracle.com/pls/apex/f?p=39226:1
    If you click on the "=" filter you'll see the one record with the trailing space is properly displayed. Clicking on the "in" filter and no records are displayed.
    In my particular case, the trailing space shouldn't have been in the data, so I was able to update the table and the filters worked, but if the trailing space was important then the "in" behavior would be troublesome.
    Tony

    Well, considering the fact that there is a space in the data, and NOT in your in clause I bet, then what is the problem??
    Thank you,
    Tony Miller
    Webster, TX
    You know, I used to think that it was awful that life was so unfair. Then I thought, wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? So, now I take great comfort in the general hostility and unfairness of the universe.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • HDD Loss of Space

    I have a 500 GB PS4 which for some bizare reason has started reporting a disk size of 61.07GB I can't find any similar issues being reported. Any idea what could be causing this?  With everything on there the total used space should be well under 100GB but basically I've 'lost' the rest and can't install anything else now as the PS4 thinks I only have 9GB left?

  • Loss of space after reorg of compressed index

    Hi Oracle experts,
    In 2008 we compressed indexes of ECC system as per sap note 1109743 and
    obtained high compression ratio.
    Now we have upgraded to oracle 11.2.0.2 and BRTOOLS 7.20 (10).
    While using brtools to do table reorg/compression as per note 1431296
    indexes loose compression factor.
                                                                  before                     after        compression
    GLFUNCA           PSAPGLFUNCA       41,574,400             11,468,800 enabled
    GLFUNCA~0       PSAPSTABI             699,712                    5,555,648 enabled
    GLFUNCA~1       PSAPSTABI             263,872                     2,112,384 enabled
    GLFUNCA~2       PSAPSTABI             446,528                     3,531,072 enabled
    GLFUNCA~3       PSAPSTABI          1,051,904                      5,047,872 enabled
    I have tried uncompressing and compressing indexes again but cannot compress to
    same factor, results are same using brtools or oracle command.
    I have tested on coy of system where table GLFUNCA is uncompressed and indexes compressed.
    reorg of indexes result in same bad  compression factor.
    key used for compression is same.
    any  advise, how to regain index compression factor  or anyone having similar experirence.

    Hello Daljit,
    First time I heard about this kind of behavior. I already faced index with the same size after compress, but it happened because the number of colunm was wrong defined.
    My suggestion:
    1.Uncompress one index (rebuild without compress);
    2.Identify number of column that should be compress;
    3.Rebuild with compress nologging;
    4.Active logging
    Be aware all related below notes..
    1289494 - FAQ Oracle compression
    1109743 - Use of Index Key Compression for Oracle Databases
    Regards,
    Jairo Pedroza

  • Missing Hard Drive Space (15 GB unaccounted for)

    I've had my Mini for about six months now. Love it. Everything is working perfectly except for one oddity that I'm hoping someobody can help me understand and/or correct:
    I seem to be missing about 15 GB of hard drive space for no reason - at least that I can understand.
    Here's what I get from the info screen on my drive:
    Capacity: 74 GB
    Available: 5.9 GB
    Used: 68.31
    All I can account for is 52.22 GB
    Music: 41.11 GB
    Movies: 4.33 GB
    Pictures: 3.6 GB
    Library: 547 MB
    System: 1.81 GB
    Documents 832.7 MB
    Any idea why I seem to be missing 15 GB?
    Thanks in advance.

    I run Mac Janitor about once a week and still have
    this problem. I'm assuming that is similar to the
    program you mentioned.
    To address that specific point: No. Mac Janitor performs one specific set of routine tasks (not all that critical - and not needed as frequently as once per week) while YASU performs a range of system-related maintenance tasks, which include those Mac Janitor handles, but go well beyond what it is capable of doing.
    Yours is just such a situation where YASUs functions could prove useful in themselves, and would in any event help in narrowing down the cause of the loss of space, since it will either release the used drive space, or in failing to do so, confirm that it is being used by files. In the former case the problem is resolved, and in the latter it would then lead to use of software such as 'WhatSize' (downloadable from www.versiontracker.com) to examine the entire contents of the drive and establish exactly which files and directories are taking up what amount of storage space. Most mysterious losses of space such as yours can be readily resolved once you know where the space has gone!

  • Once again storage space vanishes

    What is going on with the latest iOS and space disappearing? Yesterday I put my phone on charge with 7.8 gb of free space reported. I pick it up an hour or so later and now just 7.4 gb free. So I lost nearly half a gig doing precisely nothing!!!! The same tonight, after deleting some apps earlier I got back to about 8 gigs free, charge phone and a couple hours later am down to 7.5 gig free. This is a joke, space vanishes from time to time for no good reason. I know other can grow through caching etc but this is ridiculous. I haven't even sync'd with iTunes which can cause other to grow largely, I don't need to as I use iTunes match - which I haven't been using in last couple days so cannot be blamed for the loss of space. Where does it go? I have used all the file browser programs too. There is no rhyme or reason, the space just vanishes over time. It had taken a few months to drop by 0.1 gigs here and there. But yesterday and tonight to lose somewhere approaching 0.8 gigs to doing nothing is a particular slap in the face. The only thing I have done is shuffle the position of some apps around on the various home screens and created a group folder. Could this be the trigger, a glitch in the matrix!!!??
    Its also evident on my iPad and my wifes iPad from time to time. Space just seems to dwindle. I wish Apple could address this aspect better. It has to be cloud related and seems prevalent in both iOS8 and also was the same in iOS7 (albeit to a lesser extent).

    maybe another theory is something to do with icloud backup. It's using space up attempting to create a daily backup and not releasing the space again. Perhaps I took it off charge as it was preparing it, though I think unlikely. and that wouldn't explain the sudden loss of space in each instance. Could be app updates, and ios again not releasing space. I checked cloud assets in iphone explorer and there is nothing significant in here. I logged out of iTunes account as that can release cached space. I got a groundbreaking 0.1 gigs back. Something not good about sudden space loss. It does not reconcile under usage. Claims 19.2 gigs used up. I added up evwry entry under here and it only adds to 16.2. So a whole 3 gigs cannot be accounted for! I did the same yesterday before today's loss and it didn't reconcile again (it never does) but it was only 2.5 gigs difference. So evident 0.4/0.5 gigs has just vanished into thin air.

  • Losing HD space when emptying trash

    I've searched the discussions a bit and found several posts dealing with similar problems, but none seem to offer a real explanation or good solution.
    For some time the available space on my HD seems to be disappearing, sometimes going from 3GB to 70 MB in hours. This is especially noticeable when I empty the trash sometimes, and the available space drops considerably (sometimes with 1GB or more) instead of increasing.
    The available space is restored when I restart my mac, but surely I don't want to be restarting my computer all the time. It's really annoying when I work with programs like Photoshop and I can't save or modify my work because there is no space available.
    I have had my mac for about four years now, and only recently started having this problem, though I'm not really doing anything different with it.
    I have downloaded and run both Whatsize and TinkerToolSystem as was recommended in similar posts, but I really can't get those programs to clarify/solve my problems. When I run Whatsize there don't seem to be any 'strange' large files, for all I know it may be multiple small files causing the problem. And when I run TinkerToolSystem the thing to do as I understand it is emptying my caches, but they certainly don't amount to the space I'm losing.
    A friend of mine told me he'd had the same problem, and it turned out it had something to do with deleting incomplete downloads. But he doesn't remember how he fixed it, and I can't seem to find any useful information on it myself.
    So, why is this happening and what to do?
    iMac Mac OS X (10.3.9)

    Two things to consider:
    First, you do seem to have something running, somewhere, somehow, that is filling-up your disk. Do you have FileVault on? If so, turn it off, at least for a while. It's probably not the cause, but may be making it worse. Is your firewall on? If not, turn it on for the same reason. Are you using Raid? I don't know about it's implementation on Macs, but on some other hardware if you're having disk problems, raid will magnify them also.
    I'd also check the logs. It's a bit of a long shot, but there might be a clue there.
    Are you doing routine maintenance? Again, there's probably nothing there causing your problem, but it can't hurt. If not, here's a link to page 1 of a very good guide: http://www.macworld.com/2005/01/features/preventmacdisasters/index.php
    Second: the loss of space when emptying the trash may not be what's actually happening. While working with fairly large video files, I've come to the conclusion that a Finder window's "available" space figure is not necessarily updated when new files are created or added-to (as when importing video). But it does get re-calculated when you delete something. So if some hidden process makes, say, 2 gb of files, you won't see that on the Finder window. Then you delete a 1gb file, Finder updates, and it appears that you lost 1gb right then.

  • Missing Mac HD Space – Stumped

    I am a long time Mac user and consider myself pretty competent. A friend who has been a convert for about 18 months called me for help. The 232GB hard drive on his iMac is showing, via disk utility, only 10GB free space. This is also what a 'get info' on the drive shows.
    Using a couple of different sizing utilities, (Whatsize and a freeware one whose name escapes me) both report actual usage of 170GB. I ran verify disk through disk utility and sure enough it came up with a number of directory errors. Thinking this was the likely culprit I persuaded him to buy a spare HD and a copy of Disk Warrior. We cloned his drive to the new disk, booted from that and used Disk Warrior to repair the Mac HD (which it did successfully), and restarted from the newly repaired Mac HD.
    Disk utility now reports no problems with the disk but we still have the exact same sizing issue. Get info and DU show 220GB used, Whatsize only 170GB. It's as if there's 50GB which the OS can't see somewhere. I checked to make sure there are no boot camp partitions set up or anything obvious like that, but now I'm stumped. I'm also embarrassed that he shelled out cash for the spare drive and Disk Warrior with no end result.
    Does anyone have any ideas what could be going on here? Are there any terminal commands I could possibly get him to use to try and get to the bottom of this?
    He's using 10.5 on an Intel iMac.
    Many thanks
    David

    Two possibilities that I've personally run into, both caused exponential loss of space in my drive and only one really showed me what was going on by searching the drive with a file size program.
    First Aperture is a big one if you edit photos especially if you are creating a vault in your computer. I got around this by using a mirrored RAID drive set that servers as my storage vault so I manage files manually and load in only what I need while it also serves as a great location to store the finished photos too since it's mirrored. Also I've found that while managing about a half million photos annually does create a huge Aperture Library file which I purge out once a year just to keep everything under control I do this mainly when archiving the prior years work to storage drives.
    Second possible cause and this is a little more baffling and only recently have I run into this one...Adobe Flash. I would say what I experienced was a clear memory leak regarding Flash. I noticed it when using flash heavy websites and eventually I would start to get Flash crashing this seemed to coincide with sudden disk space warnings that seemed to crop up out of the blue. I have a program that checks available disk space and it would show I was down to around half a GB of available memory. I would usually finish what I was doing and close Safari and would in turn check my available disk space...I would also clear my cache but usually neither would render much more space; that is until I restarted then wham back to normal with a whole bunch of available drive space...hence my belief in a Adobe Flash memory leak.
    Hope this helps...
    Josh

  • Missing HD space after installing Leopard

    I have a used 17" iMac with a 160gb HD.I just installed Leopard about a week ago and backed up all my files and programs, but didn't delete anything. Before I installed Leopard I was able to hold 60+GB of music along with all my other files with spare room. I then installed Leopard, put everything back on, and accidentally copied some files multiple times and and my Hard Drive was full. I deleted all the extra files but now only have 5.09 GB free space while only being able to hold less than half my music, fewer Applications and fewer files. I've emptied my trash and used Whatsize and the numbers still don't add up. Any ideas?

    How did you do the upgrade? If you used +Archive and Install+ option with the Mac OS X Installer, your old system is retained and put into a folder called +Previous Systems+ (at the root level), so that may account for the loss of space.
    A typical Leopard installation can take up about 3 more GBs of space than a typical Tiger installation. How much space do you feel is not accounted for?

  • Brand New 8Gb iPod: Available Space = 7.43Gb

    I just plugged in my brand new iPod, supposedly with 8Gb of memory available. Now I understand if some memory is chewed up by software/firmware etc, and that some 'rounding errors' show up with memory scaling. However, I find it hard to believe that there is over 500Mb 'missing' from the iPod. That's 7.125% loss of space, 7.43Gb out of 8.00Gb.
    So my question overall is... is this normal and expected, or do I have a particulary unhappy set of flash memory? Are there any steps that should be taken, or is this a 'just eat it and be happy' kind of thing?
    Thanks for the help,
    -R

    It's normal.
    The OS accounts for a few mbs of storage space.
    It's the way that storage space is calculated by manufacturers, and the way that computers read it differently.
    Read this. Although it refers to hard drives (and the nano has flash memory), the calculations are the same, and that accounts for the so called "missing space". The decimal/binary difference affects all types of storage including both hard drives and flash memory.
    iPod: About the hard disk size.
    Hard disk: Is it missing space?
    This is the excellent explanation by forum member Rich Fleming.
    <quote> "The Flash in the Nano needs to emulate a hard disk, so that any computer it is attached to sees it as a valid storage device.
    When you are using a DoM type of storage system, the Flash memory will behave exactly like a hard drive, and is subject to the exact same Binary vs Decimal discrepancy in the capacity measurements.
    A 4GB Nano is 4 billion bytes (decimal 4,000,000,000) of storage... according to the operating system. This is because the operating system doesn't see it as a Flash memory. It sees it as an actual hard drive.
    As such, 4 billion bytes to the operating system is reported as about 3.7GB of storage because of the decimal-to-binary conversion." <end of quote>

  • Multiple hard drives, user folders and SSD's

    I thouhght I would ask for advice here before I even start.
    OK first a bit of background.
    OSA X 10.6.8
    When I bought my Mac, I fitted extra 1TB hard drives,  setup like this:
    Drive 1 Mac OS  500gb
    Drive 2 User home folders..moved from MachintoshHD/users 1TB
    Drive 3 Data Folders, used for import of video, music and data before inport to Aperture/iPhoto/ Final Cut etc  1TB
    Drive 4 Time machine backign up Drive 1 and 2 1TB
    All drives as stndandard from Apple Caviar Black
    Drive 3 is backed up via ChronoSync to a remote NAS box.
    In the need for speed I removed the 500gb drive No. 1 and fitted a 120Gb SSD drive...and although it is quicker, it is not as good as expected, no doubt in part to the fact that the User Home folders are on a standard drive
    I can't jsut move the user Home folders back to the SSD, due to space of the Aperture, iPhoto and iTunes  Librarys in the User Home folders. 
    Iphoto 110Gb and Itunes 440Gb
    So I was thinking Use my Drive 2..that is currently the 'Home Folder drive" as a shared data store for the iPhoto Itunes and other librays.
    But need help to do this and advice on how to go about it
    I will leave this post here for now as I have just had an energency work callout.  But any suggestions or advice before I start will be very much appreciated.
    I do not want to risk the iPhoto database/faces etc with a move form one drive to another and have it all go sour
    Thanks
    Neil

    "Leave just the /Users/my_account/Library on the SSD" Yes...that is what I want to achieve...at the moement it is not on the SSD it is on the seperate Users HDD ( No. 2) I want the User folders back on the SSD No luckily did not buy from Apple..just bought the same type as fitted...Think I bought them from Dabs.  but itwas 2009, so can't remeber now "Use preference to tell iPhoto etc to use another hard drive, same for iTunes media " So can i just copy the iPhoto and iTunes bundles across from one drive to another ? or are permisions etc going to get screwed, depending on the permissions of the drive I copy too? I do not liek to stripe drives , create arrays ..OK HDD space is relatively cheap now so the loss of space caused by using a RAID array ios not a major issue, but OI like to keep individual drives as individual drives...so no re build is needed if there is a crash.  I rather keep three indepant drives ..all with same data on them and rotate the drives on a weekly /monthly basis.. I have two FreeNAS boxes with identicla drives in them and use them as indepandatnbackups...Backup is not the iissue here, it is the moving of iPhoto librarys etc and the possible confusion the databases get into when moved with permissions etc

  • Hard drive getting full

    Checking through disk utility and dumping a lot of files I have managed to get my hard drive availability from nearly nothing back up to 3.7 GB available back in the summer it dropped from about 11 Gb available down to nearly nothing, I don't know why.
    Checking through my folders in Mirrors in another folder numbered 00039377339c. In that folder is a file with my email address xxxxxxxxxx.dmg dated 11 July 2008 9.69 GB disk image.
    When I click on this dmg a pop up appears
    Warning The following disk image failed to mount. Image xxxxxxxx.dmg
    Reason No mountable file system.
    Any ideas what this is. should I leave it alone. Could it be the reason for the sudden loss of space.
    Mike
    PS My Technical knowledge is pretty low.

    Open the MobileMe pane of System Preferences and turn off the local copy of the iDisk; if the file remains or you don't have a MobileMe account, throw it away.
    (38666)

Maybe you are looking for

  • Has to be an easier way? Rules, playlists

    1) is there any way to copy a smart playlist to another playlist folder and 2) is there no way to create an "or" rule? It seems the "and" operator is the only choice. Why not "Genre contains Rock OR Blues"? If you have 15 genre's and want a smart pla

  • XMP Standard - Is there a tool for non-professionals to handle PDF files for free?

    I'd like to start organising my various files and I wonder if I could include PDF files into the process (it seems easier with graphics), possibly also some video or audio files in the future. I hope there's a tool, not onle for IT specialists to han

  • I can't get rid of List

    I'm currently building a small GUI which changes (refreshes) into different layouts when a particular button is pressed. The problem I have is: Screen 1: displays a List, TextArea and four buttons. <USER PRESSES A PARTICULAR BUTTON> Screen 2: List st

  • Idoc Segment data

    HI All,           I need to pass a constant value for the fields in segments between 2 systems,where can i do that,there a transaction code wher we can do,plz let me know,all useful answers are rewarded

  • BAPI to update DPR_PROJECT

    Hi All, Could anyone please let me know if there is a BAPI to update DPR_PROJECT table ? I have searched through tcode BAPI and SE37 but not come across any. Thanks in advance.