CX_SY_CONVERSION_CODEPAGE - Error when reading from file in unix directory

Hi
We have a custom report which reads data from a file put in the unix directory. This report has been running for good 3 years now without any code changes.
For a few days the report is dumping with the following error
CX_SY_CONVERSION_CODEPAGE
Short text
    Character set conversion is not possible.
What happened?
    When converting a text from code page '4110' to code page '4102',
    the system either
    - encountered a character which cannot be represented in one of
      the two code pages; or
    - found that this type of conversion is not supported.
The code where the dump occurs is:
load the file from the given path
  OPEN DATASET  p_p_lfdata FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED.
  IF sy-subrc EQ 0.
    DO.
>>>>>>>>      READ DATASET  p_p_lfdata INTO  l_rec. " Dump occurs here
      IF sy-subrc = 0.
I understand this error is thrown in the OPEN DATASET statements in case of non-unicode compliance, but this statement does not throw an error while the READ DATASET statement does..... Any particular reason why the READ statement is failing even though OPEN is successful???

Hi,
you open the according file in DEFAULT mode. I assume you do this on a Unicode system.
Then the program assumes that the file is encoded in UTF-8 (SAP number 4110).
Now it seems that the file contains some characters, which are not encoded in UTF-8.
I would propose to investigate the code page, on which the file is created.
Ideally this should be UTF-8. If this is not the case, try to change it.
If this is not possible, then adapt the ABAP program (e.g. use Non-Unicode mode).
Best regards,
Nils Buerckel

Similar Messages

  • "Lightroom encountered and error when reading from its preview cache and needs to quit"

    I keep receiving this error every time I open LR, "Lightroom encountered and error when reading from its preview cache and needs to quit" and the app won't open. It said LR would try and fix this error next time I opened it but the error remains. I tried uninstalled and installing the app and the error remains.
    Any Ideas here? Is there another app that may be telling it where to look for the cache and it no longer there? I was using a ramdisk for a bit but ditched it. Not sure if that has something to do with it but it seems suspect.
    Your thoughts?
    --Kenny Brandon Wilson

    Talked to Adobe support this morning, this is their response in case anyone else is looking for help. I'm running a Windows 7 box, LR 5.6.
      Gokul: Click on start and type %appdata%, then open roaming folder.
      Edward: ok
      Gokul: Open Adobe folder.
      Gokul: Open Lightroom folder.
      Gokul: Open Lightroom folder> Preferences.
      Edward: ok
      Gokul: Rename Lightroom 5 Preferences.agprefs file as Lightroom 5 Preferences.agprefsOLD.
      Edward: OK
      Gokul: Please check if you can launch Lightroom without any error.
      Edward: it shows me a welcome screen and is asking me to select my country
      Edward: aka, register the software
      Gokul: You can skip and launch it.
      Edward: LR catalog not found
      Gokul: Please select the catalog.
      Edward: my original catalog?
      Gokul: Yes.
      Edward: testing integrity of catalog
      Edward: loaded just fine
      Gokul: Okay.
      Gokul: Please check if you can re-launch it again.
      Edward: yes, it worked!
      Gokul: Excellent!
      Gokul: Since your preferences were corrupted you were facing issue so we renamed the preferences file to reset it.
      Edward: aha....ok
    All of my import/export presets were intact along with develop user presets. I'm happy as a clam for my $10/month!

  • Error Launching LR 5: "Lightroom encountered an error when reading from its preview cache and..."

    Error Launching LR 5: "Lightroom encountered an error when reading from its preview cache and needs to quit.  Lightroom will attempt to fix this problem the next time it launches."
    I've tried renaming my catalog.lrcat file.  I've copied over my most recent backup of the catalog.lrcat and that didn't work either.

    On Mac:
    PS - to open the previews "folder" (a "package" is just a "special" folder) on Mac, ctrl-click and choose "Show package contents.." - same way you open any other special folder, like .app or .lrplugin..
    Rob

  • Lightroom 5 is not opening it gives me an error message there is an error when reading from its preview cache and needs to quite

    lightroom 5 is not opening it gives me an error message there is an error when reading from its preview cache and needs to quite
    it also says it will attempt to to fix the next time it opens it doesn't do anything

    Check this thread. Your Previews Cache files are corrupted.
    Re: preview cache?

  • Lightroom encountered an error when reading from its preview cache and needs to quit.  Says Lightromm will attempt to fix the problem the next time it launches, but on every re-launch I get the same message.  Any clue as to how to fix this problem?

    I recently updated my HP laptop's OS from WIndows8 to WIndows8.1.  When I went attempted to open Lightroom5 I got the following message:
    "Lightroom encountered an error when reading from its preview cache and needs to quit. "
    "Lightroom will attempt to fix the problem the next time it launches"
    Every time I relaunch I  get the same message.  I'd like to understand what might be causing the problem so I can remedy and get back to my photo editing. Any clue as to how to fix this problem would be greatly appreciated.
    JPM

    reset your preferences, Resetting (or 'Trashing') the Lightroom Preferences file - Lightroom Forums

  • When backing up lightroom 4 catalog, get message "lightroom encountered an error when reading from its preview cache and needs to quit" this occurs during optimization stage of backup

    i upgraded from lightroom 4 to lightroom 5 and installed it on a separate hard drive. Initially had no problems util my computer crashed due to the failure of the drive on which Lightroom 5 was installed. Since having my computer rectified, i am unable to use lightroom 5 getting the message "lightroom encountered an error when reading from its preview cache and needs to quit"
    I can still use lightroom 4, however, i get the same message when i try to backup the catalog. This occurs during the optimisation phase of backup.
    I suspect it is related to Lightroom 5 creating a catalog from the Lightroom 4 files and cannot now locate those files or that they have been corrupted.
    Would appreciate any solutions / suggestions.

    You need to delete your preview cache and have Lightroom rebuild it.   Cache location can be found here.
    https://helpx.adobe.com/lightroom/kb/preference-file-locations-lightroom-41.html
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic

  • Lightroom encountered an error when reading from its preview cache and needs to quit.  Lightroom will attempt to fix this problem the next time it launches"."

    Lightroom encountered an error when reading from its preview cache and needs to quit. Lightroom will attempt to fix this problem the next time it launches"."Help
    Please

    Stan Blumberg wrote:
    I have deleted the file but the message persists even after restarting the computer....any advice??...I am using LR 5
    You don't delete a file, you have to delete a folder. Is that what you did?
    If you deleted the folder specified above, and you still get the message, then it's the wrong folder. Use your operating system's search function and find ALL folders on ALL disks whose name ends with Previews.LRDATA, delete each one found, and then try opening Lightroom.

  • When I tried to open Lightroom 5.4 today I got a msg that says "Lightroom encountered an error when reading from its preview cache and needs to quit. Lightroom will attempt to fix this problem the next time it lauches". What do I do? I get the msg each ti

    "Lightroom encountered an error when reading from its preview cache and needs to quit. Lightroom will attempt to fix this problem the next time it lauches". What do I do? I get the msg each time I try to open it.

    It isn't a file, it's a folder. It will have the same name as your catalog, but will have the extension data. It will be in the same folder along with your catalog. If you need to use the search feature to search for *.lrdata.

  • Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    You probably need to delete your preview cache.  See here  
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic
    Preference and other file locations in Lightroom 5

  • Lightroom encountered an error when reading from its preview cache. helping a friend..

    Im not a lightroom user. even though I have some version 4. I use acdsee pro 6. but my friend has the 5.6 CC version but has a language issue so im trying to help me. basically will guide him over the phone.
    he was editing a wedding, the computer crashed. he rebooted, lightroom came with the preview cache error. he rebooted again..same issue. he did a repair but to no avail. he tried installing an older version in parralel but no success.
    what exactly does he need to do. im not a light room user. I use PS CS6 but not LR.
    anybody can help to help him. I did read some posts and it noted about thumbnail previews and removing or erasing/renaming
    1- where is this file located please?
    2-are there many of these ? and how do I know which is the one he needs to choose?
    thank you for your help.

    See answer at Re: "Lightroom encountered and error when reading from its preview cache and needs to quit"

  • LRCC Error: Lightroom encountered an error when reading from its preview cache and needs to quit.

    I just upgraded from LR 5.7.1 to LRCC a couple of days ago.  After working with a collection of images in Lightroom CC, this message popped up: "Lightroom encountered an error when reading from its preview cache and needs to quit."  What do I need to do to remedy this?  Thanks!

    Quit Lightroom
    Then trash the preview cache. It’s in the main catalog folder.
    Delete the folder with the ending Previews.lrdata
    The default location for the Lightroom folder is normally Pictures/My Pictures if you did a standard installation.
    Re-launch Lightroom after deleting the Previews folder.
    N.B. do not touch files ending .lrcat

  • Help.."Lightroom encountered an error when reading from its preview cache and needs to quit"..

    Can some one please help me with this error message I keep getting.  I was told to uninstall LR and reinstall it and I am still getting the same error message.  "light room encountered an error when reading from its preview cache and needs to quit"..

    Go to the folder containing your catalog, and delete the folder that ends in .lrdata. Then start Lightroom, and it will create a new preview file, and you should be good to go.

  • Ightroom 5.7 "lightroom encountered an error when reading from its preview cache and needs to quit"

    I got this error message after start in Lightroom 5.7 "lightroom encountered an error when reading from its preview cache and needs to quit". It seems also catalog .lrcat disappears from disk. Also preview catalog .lrdata doesn't exists. So I try to reinstall Lightroom without success, I am still receiving the same error. How I can reset Lightroom to new catalog? I have backup of lrcat file, but I am not able to start Lightroom due to this error.

    It seems solved. I have copied backup .lrcat to Lightroom data directory and I still have received error mentioned above. But when I doubleclick on .lrcat file in Explorer the catalog have been opened without problems.

  • Light room will not start comes up with error lightroom encountered an error when reading from its preview cache and needs to quit

    how do i fix this problem
    lightroom encountered an error when reading from it preview cache and needs to quit
    please help

    Rename or delete the lrdata file. Then start Lightroom and it will create a new one, and will begin generating new previews.

  • Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    I assume you know where your catalogue file (the lrcat file) is located. In the same folder is a previews lrdata folder which you should delete or rename in Explorer, then start LR again.
    If I've made incorrect assumptions above, sorry, and we'll go back over it from the start.
    John

Maybe you are looking for

  • Data/database availability between ETL process

    Hi I am not sure whether this is right forum to ask this question. But still I am requesting for help. We have a DSS database of size 1Tb. The batch process runs between 12:00 hours till 6:00 am. the presentation/reporting schema is of size 400 GB. T

  • Printer hesitates before fully printing last page

    My HPWireless PhotoSmart Premium 309 sometimes, not all of the time, will print normally through the whole document and then print about half of the last page, hesitate for what seems like quite a while to me, and then finish printing the page. I wou

  • Disk Utility Shows Incorrect Free Space

    I've had this problem for a while now, and I've been unable to figure out why. I can't even remember when it started, but it has become quite a nuisance. The Finder window shows that I have 302GB of harddrive space remaining, out of 500GB. The Activi

  • HT201263 how do i put the ipod in recovery mode

    How do i put the ipod in recovery mode so that i can unlock it... Thank you

  • Text Loss

    When I m using a 3D camera in motion 5 and I choose the best render quality, the text I have dissapears after I zoom in a certain amount with the camera. This will happen even when i export it. I don't know what the problem is... I'd love some help.