Error handling when loading flate files

Hi
We have a Process Chain loading flate files from a server into a ODS. We want to create a routine to avoid errors in the ODS when no files is found.
The error we want to handle is
Error 1 when loading external data
Message no. RSAR234
We want to handle this error message as OK to avoid red request in the ODS
Please help
Kind regards
Ola Einar Langen

Hi, and thanks for your hints.
We ended up with the following codes. It's will mark the prosess chain red (but this is as wanted) but we have implemented that the prosess chain will proceed even with error in the loading process
The code for the routine implemented in the infopackage in "External data" tab.
p_filename = 'filename.txt.
OPEN DATASET p_filename FOR INPUT IN BINARY MODE.
If file could not be open
IF SY-SUBRC NE 0.
    p_subrc = SY-SUBRC.
  delete the current request
    CALL FUNCTION 'RSSM_DELETE_REQUEST'.
ENDIF.
close the file if OK
CLOSE DATASET p_filename.
p_subrc = 0.
The solution is no OK for us
Kind regards
Ola Einar Langen

Similar Messages

  • Error 1 when loading flat file in BW 7.0

    Hi,
        The flat file structure is same as the transfer structure. Its a csv file and i also checked about the delimiters and stuff.The flat is not open and it is closed while i am loading it. The same file gets loaded if i try in another laptop with my id.If i use my colleague's id on my system also...it doest work...so, the basic problem is with my laptop. I know its nor related to type of data or transfer structure. Its some settings on my laptop which got changed automatically. If i install some other softwares like mozilla firefox or yahoo msg-will that create a problem? I am not at all understanding why its like this. Please help.The error msgs i get when i try to load the flat file -
    Error 1 when loading external data
    Diagnosis
    Error number 1 occurred when loading external data:
    1. Error when reading the file (access rights, file name, ...)
    2. File size or number of records does not correspond to the data in the control file
    3. Error when generating the IDoc
    4. File contains invalid data (errors with an arithmetic operation or data conversion)
    Procedure
    Check whether you have the required access rights and whether the data in the control file is correct (file names, record length, number of records, ...). Correct the data in the control file if necessary and check the data file for invalid data (values of the wrong type, values in the wrong format for conversion exit,...). Check whether the file has headers that have not been specified.
    Error when opening the data file C:\vikki1.csv (origin C)
    Message no.
    Diagnosis
    File C:\ vikki1.csv (origin C) could not be opened.
    Origin:
    A : Application server
    C : Client workstation
    Procedure
    Check whether the file entered exists and is not been used by other applications.

    Hi! Vikki,
    Error 1 means your flat file is open while uploading the data..
    your flat file should be closed while uploading data in BW.
    that is why it is saying "Error when opening the file..".
    first close that file n then upload..it will work.
    rest of the things are ok!..
    I hope this will help you.
    Regards,
    khyati.

  • Error 4 when loading flat file for Demo cube

    Hi gurus
    I've exported the csv file for 0D_SD_C03 and store it on my local disk.
    when i try to preview the file using the file that i stored in my local drive , the execution close w/o any error message but during loading it shows no data found. ( i have tried to open the file before execute the loading and the system prompt with an error message saying the file  is open) .
    When i tried to store the file on the application server and execute the preview it says that error 4 occurred.
    Can anyone suggest what happen and how to rectify this
    Thank you

    Hi,
    The reasons may be the file is open, the format/flatfile structure is not correct, the mapping/transfer structure may not be correct, presence of invalid characters/data inconsistency in the file, etc.
    Check if the flatfile in .CSV format.
    Thanks,
    JituK

  • Error when loading flat files

    I am able to load a flat file to PSA but get problems when trying to load.  These files have been loaded to an old BW system from which the InfoObjects were copied and designed on the new system:  Thanks
    Diagnosis                                                                               
    The value '0,000 ' from field /BIC/KFMI_CCHF cannot be converted into   
        the DDIC data type DEC of the InfoObject in data record 1 . The field   
        content could not be transferred into the communication structure       
        format.                                                                               
    System response                                                                               
    The data to be loaded has a data error or field /BIC/KFMI_CCHF of the   
        transfer structure is mapped to an unsuitable InfoObject.                                                                               
    The conversion of the transfer structure into the communication         
        structure was cancelled. The processing of data records with errors was 
        continued with respect to the settings in the error handling of the     
        InfoPackage (Tab Page: Update Parameters).                              
    Procedure                                                                               
    Check the data conformity of your data source in the source system.                                                                               
    On the 'InfoObject - Field Assignment' tab page in the transfer rules, 
        check the InfoObject-field assignment of transfer structure field      
        /BIC/KFMI_CCHF .                                                                               
    If the data was temporarily saved in the PSA, you can also check the   
        received data for consistency in the PSA. If the data is available and 
        is correct in the source system and in the PSA, you have the option of 
        activating the debugging in the transfer rules by using the update     
        simulation on the tab page Detail   in the monitor. By doing this, you 
        can execute an error analysis in the transfer rules. For this you need 
        ABAP knowldege.

    If it is coming from another system/app, it could be that you don't need to change anything (assuming the file does contain data in DEC format).
    In this case, open the datafile in a hex editor, and check the content of this field (based on field position in your transfer structure, for the first row) in a hex editor. Every half-byte of this field should give you a digit (except the last) if the format is correct. eg you should see something like 000032560C if you check the field.
    It will be good to match the transfer structure alignment, it could be that the field is not in the position it was in the older system (check transfer structure tab in the infosource definition).

  • Errors when loading flat file data

    We just test to load a very simple flat file data with only two lines and the two lines of data in preview of InfoSource is correct.  But when run InfoPackage to load data, the monitor of the InfoPackage shows the following errors (see in between two dashed lines below):
    Error getting SID for ODS object ZDM_SUBS
    Activation of data records from ODS object ZDM_SUBS terminated
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Value 'Bottom' (hex. '0042006F00740074006F006D') of characteristic ZRATEPLN contains invalid characters
    Value 'Dealer' (hex. '004400650061006C00650072') of characteristic ZCHANNEL contains invalid characters
    Value 'Bottom' (hex. '0042006F00740074006F006D') of characteristic ZRATEPLN contains invalid characters
    Value '19884/' of characteristic 0DATE is not a number with 000008 spaces
    Value '/19812' of characteristic 0DATE is not a number with 000008 spaces
    Value '19884/' of characteristic 0DATE is not a number with 000008 spaces
    In the flat file (excel sheet saved as a CSV file), for each row of the data, there are two fields which are start_date and end_date and the date format is MM/DD/YYYY and in the Transfer Rule, we transfer the date format from MM/DD/YYYY to YYYYMMDD which is required by DATS InfoObject type in BW.  If you need the excel sheet of data in order to answer our questions about the above errors, you can give us your e-mail address and we can send the simple two rows of data excel sheet file to you.
    Thanks!

    Hi Kevin,
    1.You can use lowercase letters in the values for your characteristics provided you have checked the lowercase checkbox in the general tab page of Create characteristic screen.But when you do so no masterdata tables,text tables, or another level of attributes underneath are allowed.
                            OR
    Use only upper case letters in your characteristic unchecking the above mentioned box.
    2.The date format in the CSV file should be yyyymmdd.It should have 8 characters . I guess there is something strange in your "calendardays" since I could not find 8 characters irrespective of the order.Do not forget to use zeroes.
    Hope this works.
    Reward if it is helpful.
    Regards,
    Balaji

  • Error in InfoPackage: Error when uploading Flat Files

    Hello Experts,
    I encoutered this error in Info Package when uploading a flat file.
    When i try to click on the "Preview" button, this errors appear:
    "Error 8 when compiling the upload program: Row
      237, message: Data Type / BIC/ CCCBMA1_COCTR2 was found in a newer"
    Please help to advise what is this error about and how to resolve this?

    hi Annie,
    run RSA1 and try again
    Error when compiling the upload program (Message no. RSAR233)
    other similar problem solved by run program(SE38)RS_TRANSTRU_ACTIVATE_ALL and relogon
    A newer version of the data type error when loading
    Flat File Preview error message
    Error when loading from Flat File
    Error message when previewing data in InfoPackage
    hope this helps.

  • Error 1 when loading data from flat file

    Hi,
    I am working on BW 3.5 when i was loading flat file it is giving error 1 when loading external data can anyone solve and mail to me this email id [email protected] .

    Hi,
    I have done correctly but even error 1 data loading from external file is coming, i just clicked on that and it came like this, Error 1 when loading external data,no invalid data like arthematics operations,But file accessing and path is correct.
    Message no. RSAR234
    Diagnosis
    Error number 1 occurred when loading external data:
    1. Error when reading the file (access rights, file name, ...)
    2. File size or number of records does not correspond to the data in the control file
    3. Error when generating the IDoc
    4. File contains invalid data (errors with an arithmetic operation or data conversion)
    Procedure
    Check whether you have the required access rights and whether the data in the control file is correct (file names, record length, number of records, ...). Correct the data in the control file if necessary and check the data file for invalid data (values of the wrong type, values in the wrong format for conversion exit,...). Check whether the file has headers that have not been specified.
    Thanks
    Sunitha

  • Getting error while loading Flat File

    Hello All,
    I am getting error while loading flat file. Flat file is a CSV file.
    Value ',,,,,,,,' of characteristic 0DATE is not a number with 000008 spaces
    Data seprator  |
    Escape sign    ;
    It has 23708 entries , it s loading successfully till 23 665 entries
    Besides when checked in PSA
    for record having entries >23667 has calender day as ,,,,,, where as rest entries are  having date
    Besides when i checked in Flat file ,the total number of rows is 23,667 is there but i wonder why it has got 23,708 in
    RSMO
    Could you please let me know how to correct.
    regards
    path

    Hi,
    For date column you should maintain YYYYMMDD formate Eg: 20090601, kepp cursor on date column and right click and Formate >Custome>make it 00000000 then save teh file as .CSV . First type values on column and do like this formate and save it and without opening it load it. Once you open it you losw 00000000 formate you need to give again the same formate.
    Settings in Infopackage:
    Data Format  = CSV
    Data Separator = ,
    Escape Sign = ;
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a6567e07211d2acb80000e829fbfe/content.htm
    Thanks
    Reddy

  • Error 1003 when loading a VI dynamically on LabView Run-time ini file configuration

    hi all,
    I have a problem with my runtime excutable.
    On 4 systems, all running XP it runs fine.
    On 2 systems ( one a new install of just LVRT 2011 SP1 ) I have:
    Error 1003 when loading a VI dynamically on LabView Real-time
    Or more spoecifically the error code is 1003 and the error source is Open VI Reference.
    When the RT app runs correctly I get these paths:
    Path Sent to Open Vi Reference:              Yeast_Grower.exe\Tecan_talk_Control.vi, 
    Path Returned from Open Vi Refence:       C:\Program Files\Yeast_Grower\Yeast_Grower.exe\Tecan_talk_Control.vi, 
    On a system that does gets the 1003 Open Vi Refence error I have the same Path Sent but of course no path returned as it does not open.
    To be sure that the vi Dyanmically called vi is compiled and valid at runtime I also include a copy of in the main.vi.
    To be extra sure I have also installed the runtime versions of VISA and DAQmx.
    I have compiled it with and without the "Use LV 8 calling hiaracy"
    My conclusion as this stage is that either the installation of LVRT 2011SP1 misses something the earlier LVRT installtions make.
    or is there a MyApp.ini or LVRT .ini  that controls how the RT dyanim calls are handled.
    Help very welcome how to solve this puzzle.
    thanks
    michael

    I understand that all the PCs (6 of them) have LV 2011 SP1, runtime or the development system installed. Right?
    How many of these PCs have the source code available on them?
    -> Only one of them has the source code.
    I am not sure I understood 'I also include a copy of in the main.vi'. Does it mean you placed the subvi in the main.vi?
    -> I meant I have included in main.vi the actual vi that is called dynamically - but only where it is not called.
    Did you try including the sub vi which is called dynamically, as 'Always included' in the EXE build?
    -> No, I did not know of this option - but the above I did this by default.
    Edit: Did you verify the software versions of LV RT, VISA etc on all the PCs? Are they same?
    -> I did verify even added DAQmx just in case
    There is lots of material available on this forum for error 1003 and dynamic vi calling. Did you find anything useful to try among the forums threads?
    -> I did view many of them.
    I did finally find the answer.  
    I have a subvi (callNet.vi ) in the dynamically called vi (dynamic ) that calls .Net libraries.
    Now the thing is that this subvi callNet.vi is coded out by enclosing it in a Disable structure.
    In fact this subvi ( callNet.vi) does not even compile - ie it has a broken arrow
    however if enclosed in a Disabled structure and disabled, the enclosing vi compiles OK.
    However I have discovered that even with the .Net calling subvi (callNet.vi) in the Disabled state of the Disabled structure
    the enclosing vi (dynamic.vi ) does NOT run - although it compiles just fine.
    Once I installed the .Net libraries (I actually did include them with my app installer ) with the vender's supplied installer
    then my app now successfully calls the dynamic vi.
    So the Summary and warning is:  Even if the dynamic called vi is included in Main.vi and Main.exe runs ( but does not call the dynamic vi - except when called dynamically at later some point ) and even if, in this case, the .Net calling subvi is disabled out ie no .Net calls are made the dynamically called vi will not run when called dynamically.
    I hope that is not too confusing.  In summary it seems the Disable structure does not entirely disable.
    Michael

  • Loading Flat File

    Hi Gurus, I have this scenario, where a ODS A (Auditing) has export datasource that feeds data to another ODS C (Auditing and Posting). ODS B (Posting) is independent and is not physically in the data flow.
    ODS C has update routines that does lookup for some some fields in ODS B. and eventually ODS C has update rules that feed data to CUBE A.
    So ODS C has fields from both ODS A and ODS B.
    I wanted to see if I can load a flat file into directly ODS C, it has a export datasource. I tried, I always get that famous 'InfoSource' error msg. Please guide.
    Please let me know if you need more explanations.
    Thanks.

    hi,
    it's possible to load flat file data directly to cube C. before loading the data to ods c. you have to decline the infoobject's in to ods. mention the flat file infoobjects in to ods. then do the loading. when you r creating the update rules from ods to infosource it's give some keyfigure has no update. ignore the error and activate the update rule.
    one thing i forget to say. when u r updating data from ods c to cube it will cause error, because of the addition of new object 's in to cube. it its show the error, delete the old export data source and recreate it newly.
    hope this help you
    regards
    harikrishna N

  • Error 41453 When loading opportunities

    Hello there,
    Could anybody help me with this question: when loading opportunities, I get this error message: "An unexpected error occurred during the import of the following row: 'Opportunity Name: tests; Direct Customer: ' " does anybody knows what does this mean?
    Cheers
    Joann

    Hello,
    I had the same error. <i>Error 1 when loading external data from a flat file</i>. I didn't now what was wrong with it. We started to make some test and try the solution we read here but the error continued, and it finally worked when we changed the name of the file, and <b>got rid of all the blanc spaces in the name</b>.
    I hope it works for you too.
    Regards.
    Message was edited by:
            AltimBW Astral

  • Error 4 when loading external data

    hi all,
    I have unchecked uncheck currency conversion for external systems in my info package and then loaded the data from a flat file.
    and then i am getting the below errors.
    cost -> cannot be converted to currenecy (since cost contains currency item)
    netval_inv -> cannot be converted to currenecy (since cost contains currency item)
    /bic/zntwthpm -> cannot be converted to currenecy (since cost contains currency item).
    if i check the option
    currency conversion for external systems in my info package
    then i am getting error 4 when loading external data.
    Can anyone help me out!!!
    thanxs
    haritha

    Hi haritha,
    Please check whether your file whcih you are loading is open , when you are starting the Infopackage.
    Also please check this SAP Note 600246 - RSAR 234: Error 4 when you load external data.
    What is your BW System (Version/Patch)
    Thanks.
    CK

  • Error 3 when loading external data

    Hi Gurus!!
    I am trying to load data from a flat file into a Cube. The load is done by a process chain and have worked perfectly before. The file is located on the application server.
    Now I get the following error:
    Cannot Update Request REQU_DESUFKD2XA1LDREQ0KEJZ2TJC in Data Target
    Error 3 when loading external data
    The file looks ok when i compare it with the ones i received earlier.
    Any ideas what this error 3 is all about?
    Thanks in advance!
    Pontus

    Hi
    I Have had trouble raching the network for some time.
    Problem solved. My misstake, It was the cube that were set to transactional.....
    I will credit A.H.P.
    Thanks everyone!
    Regards
    Pontus

  • Risk factors while loading flat files

    HI,
    CAn anybody tell me what are risk factors while loading
    flat files....
    Thanks in advance,
    regards,
    Rags

    Risks:
    1) If flat-file is created manually
       - users may forget columns, specifically UNIT and
         CURRENCY.
       - Keyfigures my be presented in thousands one time
         and in single dollars the other time.
       - Flat-file may be delivered too late.
       - Automatic scheduling is difficult if flat-file
         comes from client station. You even can't do it
         with a process chain.
       - Naming conventions (capitals, leading zeroes,
         trailing spaces, special characters)
       - Master data conversion
    2) If flat-file is created automatically (from legacy
       system):
       - Data may arrive too late
       - Data file (if loaded from server) requires a
         connection to the external disk - security risk.
       - (Master) Data conversion
    Note: In the past I had trouble with uploading flat-files from a network-drive. It sometimes happened that the flatfile was only partly imported and that no errors where reported. When loading data from my local C-drive I never had this problem.
    My advise is to upload a flat-file into an ODS before using the data further in BW. In the ODS you can add a date to mark the loading data. If the loading to an ODS is ok then there is a much bigger change that you will not get problems further in the data-stream. Make sure that the key-user validates the data in the ODS before using it any further. It pays off to create one or two special queries on this ODS to enable testing of the data.

  • Loading flat files located on a server using the Control Center piece ofOWB

    Loading flat files from a server with OWB
    I am successful loading files with OWB, as long as they resided on my workstation in the C:\ drive. I copied the files to a Linux server into directories owned by Oracle/oinstall, permissions on the directories containing the files are 777. I ran the OWB client from the server with the following results:
    Error
    RPE-01013: SQL Loader reported error condition, number 1.
    SQL*Loader: Release 10.2.0.1.0 - Production on Fri Mar 9 11:15:58 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL*Loader-500: Unable to open file (/u00/data/owb_repos1/state_codes.csv)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: The system cannot find the file specified.
    SQL*Loader: Release 10.2.0.1.0 - Production on Fri Mar 9 11:15:58 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL*Loader-500: Unable to open file (/u00/data/owb_repos1/state_codes.csv)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: The system cannot find the file specified.
    I tried to load the file using the control center from both the windows client and the server client. Can I do this from either one?
    I can't import the file in the Design Center from the /u00/data/owb_repos1 directory, it does not show up.
    If anyone has received similiar errors from OWB, please tell me how I can fix this. THANKS!!!
    [d97886@owbtest owb_repos1]$ pwd
    /u00/data/owb_repos1
    [d97886@owbtest owb_repos1]$ ls -la
    total 24
    drwxrwxrwx 2 oracle oinstall 4096 Mar 19 12:14 .
    drwxrwxrwx 18 oracle oinstall 4096 Mar 6 16:41 ..
    -rwxrwxrwx 1 oracle garrett 1481 Mar 8 07:32 state_codes.csv
    [d97886@owbtest owb_repos1]$

    Hi
    This is what i do for my flat files (i am loading my tables from the flat files):
    1) Create location for the files in OWB and it should look something like \\path_to_where_the_files_are. Here you should be able to browse to your Linux box and select the location of the files.
    2) Then check whatever you use (i use TOAD) and you should see in owb schema a directory created there which points to the location of the flat file.
    3) then just follow the guide to sample the files etc and you are good to go.
    Basically OWB has to be able to see the files that are on Linux machine.
    Alternatively you can map your Linux share to your windows box (use samba or something) and use it that way.
    Sorry if it is stating the obvious.
    Hope this helps
    Kind Regards
    Vix

Maybe you are looking for

  • Error when mouseX is used

    I assined x and y positions for a movieclip to mouseX and mouseY. But while executing I am getting the error #1010 A term is undefined and has no properties... By debugging I found that error is in that line only.

  • Can view file in Preview but it won't open in Pages

    I modified an existing document, got up this morning and it would not open. I receive this error. I am new to Mac and have no idea how to ask this question other than to post the error I get when I try and open it. Process: Pages [274] Path: /Applica

  • My documents won't open in Pages!

    Can't open my documents in Pages, when I try to tap one it says that I need Internet connection, but I'm connected! On the rest of the documents it looks like it will start download, but it doesn't. Have the same problem on my iPad and iPhone and I r

  • Select on dba_waiters

    Hi All, We have recently upgraded our db from 10.2.0.4 to 11.2.0.2, and now we have an issue with query on dba_Waiters. when we do the select * from dba_waiters, it is taking very long time and finally getting failed with temp after running for 30min

  • New window opens when I click a link

    On some sites, every time I click on one of the links, a new instance of Safari opens. The same site does not do this in IE or Firefox and in latter, you have controls of how links open..new window, new tab, or force open within current window. Anyon