Invalid number when reading a flat file

Hello Experts,

I have the following flat file format and I want to insert it into a table
I have an error invalid number.

How can I stop reading the file when it reaches the empty line before the grand total

file
----------------------------------------------------------------------------------------------------------------------------------

                   TOTAL        PAID       TOTAL     EXPIRED       TOTAL    FRAC OUTSTANDING
                 WINNERS       TODAY        PAID       TODAY     EXPIRED   ROUND
    DRAW/SET      AMOUNT      AMOUNT      AMOUNT      AMOUNT      AMOUNT  AMOUNT      AMOUNT
------------ ----------- ----------- ----------- ----------- ----------- ------- -----------
    1/     1  6857068.00        0.00  5879902.00        0.00   977166.00    0.00        0.00
    2/     1  5907322.00        0.00  5463759.00        0.00   443563.00    0.00        0.00
    3/     1  7277181.00        0.00  6551708.00        0.00   725473.00    0.00        0.00
    4/     1 37503734.00        0.00 36656046.00        0.00   847688.00    0.00        0.00
    5/     1  4879934.00        0.00  4293514.00        0.00   586420.00    0.00        0.00
    6/     1 15604133.00        0.00 15172198.00        0.00   431935.00    0.00        0.00
    7/     1  4943514.00        0.00  4425254.00        0.00   518260.00    0.00        0.00
    8/     1  6493874.00        0.00  5745660.00        0.00   748214.00    0.00        0.00
    9/     1 23195487.00        0.00 22279945.00        0.00        0.00    0.00   915542.00
    10/    1  5480445.00        0.00  4981615.00        0.00        0.00    0.00   498830.00
    11/    1  5421101.00        0.00  4852814.00        0.00        0.00    0.00   568287.00
    12/    1 22644465.00        0.00 21987329.00        0.00        0.00    0.00   657136.00
    13/    1  6310425.00        0.00  5582127.00        0.00        0.00    0.00   728298.00
    14/    1  5986847.00        0.00  5471429.00        0.00        0.00    0.00   515418.00
    15/    1  6699299.00        0.00  6080687.00        0.00        0.00    0.00   618612.00
    16/    1  7549513.00        0.00  6842058.00        0.00        0.00    0.00   707455.00
    17/    1 43951014.00        0.00 42538841.00        0.00        0.00    0.00  1412173.00
    18/    1  6275029.00        0.00  5608261.00        0.00        0.00    0.00   666768.00
    19/    1 34023432.00      100.00 33066516.00        0.00        0.00    0.00   956916.00
    20/    1  5496324.00        0.00  5029237.00        0.00        0.00    0.00   467087.00
    21/    1  5791146.00        0.00  5281256.00        0.00        0.00    0.00   509890.00
    22/    1  7121128.00        0.00  6419500.00        0.00        0.00    0.00   701628.00
    23/    1 36121507.00        0.00 35211831.00        0.00        0.00    0.00   909676.00
    24/    1 10137379.00        0.00  9660197.00        0.00        0.00    0.00   477182.00
    25/    1  4267656.00      200.00  3875040.00        0.00        0.00    0.00   392616.00
    26/    1  8656241.00      561.00  7744762.00        0.00        0.00    0.00   911479.00
    27/    1 10023865.00      400.00  9070015.00        0.00        0.00    0.00   953850.00
    28/    1 15201340.00     1188.00 13795352.00        0.00        0.00    0.00  1405988.00
    29/    1 83052341.00     2773.00 80673373.00        0.00        0.00    0.00  2378968.00
    30/    1  7137232.00     1000.00  6459875.00        0.00        0.00    0.00   677357.00
    31/    1 25472826.00     1700.00 24487312.00        0.00        0.00    0.00   985514.00
    32/    1  5679593.00     4398.00  5094378.00        0.00        0.00    0.00   585215.00
    33/    1 19360140.00    32659.00 18144162.00        0.00        0.00    0.00  1215978.00
    34/    1  5350117.00  1059167.00  1059167.00        0.00        0.00    0.00  4290950.00

GRAND TOTAL  ########.##  1104146.00 ########.##        0.00  5278719.00    0.00 25108813.00

End of Report
code
declare
l_start_file_name varchar2(50) := 'liab_report_summary_p008_c';
l_end_file_name varchar2(50)   := '_english.rep';
l_file_name varchar2(100);
l_sql varchar(32767);
refresh_cdc varchar2(10) := '00540';

Begin

l_file_name := l_start_file_name||REFRESH_CDC||l_end_file_name;

 l_sql := 'create or replace directory GTECHFILES as ''/ftpfiles/gtechfiles/acct_'||REFRESH_CDC||'''';
  execute immediate l_sql;


l_sql :=  ' CREATE TABLE LOTO_LIABILITY_REPORT_temp             '||
          ' (                                                   '||
          '  draw_number       varchar2(50),                    '||
          '  total_winners_amt number,                          '||
          '  paid_today_amt    number,                          '||
          '  total_paid_amt    number,                          '||
          '  expired_today_amt number,                          '||
          '  total_expired_amt number,                          '||
          '  frac_round_amt    number,                          '||
          '  outstanding_amt   number                           '||
          ' )                                                   '||
          ' ORGANIZATION EXTERNAL                               '||
          '   (  TYPE ORACLE_LOADER                             '||
          '     DEFAULT DIRECTORY GTECHFILES                    '||
          '     ACCESS PARAMETERS                               '||
          '       ( records delimited by newline                '||
          '      LOGFILE TEMPDIR:''loto_liability_report.log''  '||
          '      SKIP 8                                         '||            
          '      FIELDS LDRTRIM                                 '||
          '      MISSING FIELD VALUES ARE NULL                  '||
          '       (                                             '||
          '  draw_number       (1:11)  char(11),                '||
          '  total_winners_amt (14:24) char(11),                '||
          '  paid_today_amt    (26:36) char(11),                  '||
          '  total_paid_amt    (38:48) char(11),                  '||
          '  expired_today_amt (50:60) char(11),                  '||
          '  total_expired_amt (62:72) char(11),                  '||
          '  frac_round_amt    (74:80) char(11),                  '||
          '  outstanding_amt   (82:92) char(11)                   '||
          '       )                                             '||
          '   )                                                 '||
          '     LOCATION ('''||l_file_name||''')                '||
          ' )                                                   '||
          ' REJECT LIMIT UNLIMITED                              '||
          ' NOPARALLEL                                          '||
          ' NOMONITORING                                        ';

         execute immediate l_sql; 
 
 l_sql := ' insert into LOTO_LIABILITY_REPORT '||
 ' ( draw_number             , '||
 '   total_winners_amt       , '||
 '   paid_today_amt          , '||
 '   total_paid_amt          , '||
 '   expired_today_amt       , '||
 '   total_expired_amt       , '||
 '   frac_round_amt          , '||
 '   outstanding_amt         , '||
 '   source                  , '||
 '   inserted_DATE           , '||
-- '   UPLOADED                 ,'||
 '   CDC                       '||
 ' )                           '||
 '   SELECT                    '||
 '       draw_number    , '||
 '       TO_NUMBER(total_winners_amt,''999,999,999.00'') total_winners_amt,  '||
 '       TO_NUMBER(paid_today_amt,''999,999,999.00'') paid_today_amt,        '||
 '       TO_NUMBER(total_paid_amt,''999,999,999.00'') total_paid_amt,        '||
 '       TO_NUMBER(expired_today_amt,''999,999,999.00'') expired_today_amt,        '||
 '       TO_NUMBER(total_expired_amt,''999,999,999.00'') total_expired_amt,        '||
 '       TO_NUMBER(frac_round_amt,''999,999,999.00'') frac_round_amt,        '|| 
 '       TO_NUMBER(outstanding_amt,''999,999,999.00'') outstanding_amt,        '||  
 '       '''||l_file_name                                       ||''', '||
 '       sysdate                                                     , '||
 --'     ''N''                                                         , '||
         refresh_cdc                                                    ||
 '    FROM                                                             '||
 '       LOTO_LIABILITY_REPORT_temp                                              ';

 
    dbms_output.put_line(l_sql);
         execute immediate l_sql;           
         
ll_sql :='drop table LOTO_LIABILITY_REPORT_temp';
 
        execute immediate l_sql;

exception
when others then
rollback;
l_sql :='drop table LOTO_LIABILITY_REPORT_temp';
execute immediate l_sql;
debug_message('LOTO_LIABILITY_REPORT_temp_UPLOAD/'||REFRESH_CDC,'Unexpected Error '||sqlerrm);
END LOTO_LIABILITY_REPORT;
any help would be greatly appreciated.

Thank you
Kevin

Hello

You can do this:
Add this condition in the table definition
WHEN LOAD (total_winners_amt! = "#.") "#" and total_paid_amt! =" ###. "#" and draw_number! = BLANKS)
and do it for each column that can have this value...

CREATE TABLE WEBUSER.LOTO_LIABILITY_REPORT_TEMP
(
  DRAW_NUMBER        VARCHAR2(50 BYTE),
  TOTAL_WINNERS_AMT  NUMBER,
  PAID_TODAY_AMT     NUMBER,
  TOTAL_PAID_AMT     NUMBER,
  EXPIRED_TODAY_AMT  NUMBER,
  TOTAL_EXPIRED_AMT  NUMBER,
  FRAC_ROUND_AMT     NUMBER,
  OUTSTANDING_AMT    NUMBER
)
ORGANIZATION EXTERNAL
  (  TYPE ORACLE_LOADER
     DEFAULT DIRECTORY GTECHFILES
     ACCESS PARAMETERS
       ( records delimited by newline
                LOGFILE GTECHFILES:'loto_liability_report.log'
                SKIP 8
                LOAD WHEN (total_winners_amt!="########.##" and total_paid_amt!="########.##" and draw_number != BLANKS)
                FIELDS LDRTRIM
                MISSING FIELD VALUES ARE NULL
                 (
            draw_number       (1:11)  char(11),
            total_winners_amt (14:24) char(11),
            paid_today_amt    (26:36) char(11),
            total_paid_amt    (38:48) char(11),
            expired_today_amt (50:60) char(11),
            total_expired_amt (62:72) char(11),
            frac_round_amt    (74:80) char(7),
            outstanding_amt   (82:92) char(11)
                 ) 

              )
     LOCATION (GTECHFILES:'test.txt')
  )
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;

You'll get in the log file:

 LOG file opened at 06/28/10 22:16:51

Field Definitions for table LOTO_LIABILITY_REPORT_TEMP
  Record format DELIMITED BY NEWLINE
  Data in file has same endianness as the platform
  Rows with all null fields are accepted
  Load when ((TOTAL_WINNERS_AMT != ########.##) AND ((TOTAL_PAID_AMT != ########.##) AND (DRAW_NUMBER != BLANKS)))

  Fields in Data Source: 

    DRAW_NUMBER                     CHAR (11)
      Record position (1, 11)
      Trim whitespace same as SQL Loader
    TOTAL_WINNERS_AMT               CHAR (11)
      Record position (14, 24)
      Trim whitespace same as SQL Loader
    PAID_TODAY_AMT                  CHAR (11)
      Record position (26, 36)
      Trim whitespace same as SQL Loader
    TOTAL_PAID_AMT                  CHAR (11)
      Record position (38, 48)
      Trim whitespace same as SQL Loader
    EXPIRED_TODAY_AMT               CHAR (11)
      Record position (50, 60)
      Trim whitespace same as SQL Loader
    TOTAL_EXPIRED_AMT               CHAR (11)
      Record position (62, 72)
      Trim whitespace same as SQL Loader
    FRAC_ROUND_AMT                  CHAR (7)
      Record position (74, 80)
      Trim whitespace same as SQL Loader
    OUTSTANDING_AMT                 CHAR (11)
      Record position (82, 92)
      Trim whitespace same as SQL Loader
KUP-04102: record 41 discarded from file c:\temp\test.txt
KUP-04102: record 42 discarded from file c:\temp\test.txt
KUP-04102: record 43 discarded from file c:\temp\test.txt
KUP-04102: record 44 discarded from file c:\temp\test.txt

ORA-01722 exception has disappeared...
be very vigilant, you also should jump 6 instead of spend 8...

Tags: Database

Similar Questions

  • Invalid number, when I know that it is not invalid.

    Well, I write a script that queries an oracle database. PHP is the scripting language.
    I'm unable to a particular query. I have several very similar queries on the same file, but cannot alone. I tried to copy a query and work in the Leotard on works not to interview. Still no luck.

    The failing query is

    for ($index = 1; $index < 5; $index ++)
    {
    number of tickets closed this week whose gravity is given
    $sql = "select count (*).
    of TT_FC_TRACKER_TB_TEST
    where opened_date < to_date('".date('m/d/Y',$end_date)."','mm/dd/yyyy')
    and opened_date > to_date('".date('m/d/Y',$start_date)."','mm/dd/yyyy')
    and gravity = "." $index. » « ;"

    var_dump ($end_date);
    var_dump ($start_date);
    var_dump (date('m/d/Y',$end_date));
    var_dump (date('m/d/Y',$start_date));

    $stid = oci_parse ($c, $sql);
    oci_execute ($stid, OCI_DEFAULT);

    It fails with the error

    ORA-01722: invalid number in fc_report.php on line 221 WARNING: oci_fetch_row(): ORA 24374: set not done prior to extraction or to run and fetch in fc_report.php on line 224

    Only, I get the error when the dates entered for start is on 27/01/2010 and the end date is 03/02/2010
    and I run it from php. the script even in pl/sql developer with the dates informed works very well.
    running the PHP script with any other date range works fine. Any ideas?

    However, this query works very well.

    put the number of the ticket in the var to use
    $res = oci_fetch_row ($stid);
    $tickets_open_this_week = $res [0];

    number of tickets closed this week whose gravity is given
    $sql = "select count (*).
    of TT_FC_TRACKER_TB_TEST
    where closed_date < to_date('".date('m/d/Y',$end_date)."','mm/dd/yyyy')
    and closed_date > to_date('".date('m/d/Y',$start_date)."','mm/dd/yyyy')
    and gravity = "." $index. » « ;"

    $stid = oci_parse ($c, $sql);
    oci_execute ($stid, OCI_DEFAULT);

    put the number of the ticket in the var to use
    $res = oci_fetch_row ($stid);
    $tickets_closed_this_week = $res [0];


    As a final note, all requests have been written and tested using developer pl\sql.

    What is drawn from table TT_FC_TRACKER_TB_TEST. Severity column in particular. No chance is VARCHAR2? If so:

    severity = "." $index. »

    cause conversion of gravity column number. So if the column is a string, change

    severity = "." $index. »

    TO

    Severity = to_char(".$index.")

    SY.

  • ORA-01722: invalid number - when the last column has numbers that have a decimal separator

    Here are examples of data-

    FRT, 1.64, VAT, 23,36

    FRT, 1.64, VAT, 23,36

    When I try to convert 1.64 to_number everything is good, but when I do the same thing with 23,36 I get the following error

    ORA-29913: error in executing ODCIEXTTABLEFETCH legend

    ORA-01722: invalid number

    ORA-06512: at "SYS." ORACLE_LOADER', line 52

    I tried this query example

    Select to_number (CONSIGNMENT_NET_VALUE) as Col1 of DUMP_EXT

    Select to_number (CONSIGNMENT_NET_VALUE, '9999999999D' 99999', NLS_NUMERIC_CHARACTERS = ",". ") as Col1 DUMP_EXT-> 268906.1

    make the same mistake - any help greatly appreciated.

    T.

    Srini

    Try using:

    RECORDS DELIMITED BY newline

    Instead of:

    RECORDS DELIMITED BY '\n'


    on your table to create, in addition to just help to_number or to_number return with ' NLS_NUMERIC_CHARACTERS = ".," ' in your query, in the period before the comma as decimal separator comes before the grouping separator.

    What is probably happening is that your return to the line of the system data come from different East of your new line on the system that you load in.  You may need to experiment and

    Select dump (consignment_net_value) in the dump_ext;

    to determine what additional invisible characters, such as Chr (10) and Chr (13) can be added at the end of the number that you have to cut, so just using line feed does not work.  This is why it only happens with the numbers at the end of the line.

    Post edited by: BarbaraBoehmer

  • Invalid number when you use to_number function

    Hello
    Both in SQL * more and SQL Deveoper when I type and run

    Select to_number ('1234.64 ','9999.9 ') of double;

    I get ORA-01722: invalid number error. What can be the reason for this error?

    Mikhail says:
    SQL > select to_number('1234.64','9999D9') from double;
    Select double to_number('1234.64','9999D9')
    *
    ERROR on line 1:
    ORA-01722: invalid number

    You pass it a string ("1234.64'") with two digits to the right of the decimal separator, but you tell it that you have only one digit to the right of the decimal separator ('9999 D 9')

  • ORA-01722: invalid number when you use the function TO_CHAR.

    Hi all
    I was using this query closely for 1 year and it worked fine.

    Select to_char (' 2012/12/23 ', ' DD/MM/YYYY') twice;

    How ever from Monday onwards it's me back with the following error.

    ORA-01722: invalid number

    The NLS_DATE_FORMAT is DD-MON-RR in my version of oracle 11g.

    Please help me with this.

    They should compare these values as values of date instead of under the form of strings. TO_DATE should be used instead of TO_CHAR.

    Published by: Saran on January 2, 2012 23:00

  • Lightroom has encountered an error when reading a catalog file and must stop smoking.

    Since I installed Snow Leopard, I get this error. LR restarts and the catalogue is very well, but I let him turn and come back an hour later and there is the same error.

    I checked the file system on my USB key and it is fine. It's a whole new catalog that I created to export a former. I've never had this problem before.

    Sorry if this is a double post, I can't seem to find the original post, I thought I did.

    / Chris

    Your drive eSata connection should be just fine - if this copy is fine. If you can d/l through which images in a folder on internally, which would be faster and safer than other methods via a USB port. I don't think that LR cares about the type of connection, but the operating system don't you...

  • Invalid number when you submit sets of query XML Publisher

    Hi all

    I face this problem when I click on the option of the second query on the entire application. I found that it is a bug of oracle on metalink. I post this question because I wanted to know if there is no work around for this problem without applying the patch.

    Appreciate your help.

    Best Reagards,
    Edwin

    Hi Edwin,.

    According to 6318578 bug, there is no work around, and you must apply the hotfix to resolve the problem. You can also connect a SR and confirm with Oracle support.

    Kind regards
    Hussein

  • Invalid number querying collection

    Hello - I have an interactive report that queries a collection for its data sources. He has been working very well.
    Now (from today ' today) I get "invalid number" when the interactive report page comes up. I have not changed
    regardless of the way in which the collection is generated.

    I used the function "Select columns" of the IR to narrow the problem down to a column. In other words, when
    I remove this column from those that are displayed, the IR data happens correctly. The column problem
    is a number (I convert it to a number in the selection of the collection); There are several other numbers in
    the collection and IR that aren't a problem.

    Any ideas what might be happening and how can I debug it? There is no way that the data in the database is
    non-numeric; the field is defined as a number.

    Thank you
    Carol

    Carol_M wrote:
    Hi Jari - I tend to agree with you on not to use the slider. I guess that the relevant question about this "invalid number."
    error that occurs on rare occasion is: y at - it a reliable way to erase all data from the collection? It seems that deleting the collection before recreating still does not have the case - probably because of problems w / the execution as Udo plan mentioned. Is there a reason to think that a truncation would be more effective?

    What query hint would be limited to the relevant collection (specified in where clause to the query to apex_collections)
    before collecting any other (possibly problem) data?

    Thank you
    C

    Hi Carol,.

    I guess that other sessions use the same collection with other types of data in different reports/pages /... or what Jari remarked, you have certain values is not suitable for your NLS settings, but I guess you already checked this last aspect.
    I don't think, either problem can be solved by truncating or deletion of a session, because it still affects only certain session.
    A hint would be that indicated in my edit to the above view post. You can try a less restrictive, but I think that collections should always be found exactly the way the opinion is formulated and the optimizer should not do any processing on the view, even if it would be considered to be faster.
    You can use this trick in each query-access-read in your application if you do not want to change the view. But obviously it is more work and there may be some API calls using collections which will not use the suspicion and cause troubles again.
    Here once again the select example from above:

     SELECT /*+ NO_QUERY_TRANSFORMATION */
    

    -Udo

  • TO_NUMBER gives invalid number

    Hello
    I'm trying to compare varchar2 (250) field with numeric field and it gives me the error invalid number when I run this query.
    There are some alphanumeric values in field varchar2 which I imagine causing problem. Not sure how to check if a field value is numeric or Alpha numric.
    So I need TO_NUMBER only if the t.interface_header_attribute1 value is NUMERIC. I don't know how to do this.

    SELECT T.trx_number TransactionRef,
    ca_ship.Account_Number ship_to_CUSTOMER_AC,
    Decode(TP.type,'INV','0','CM','1') TransactionType,
    OE.order_number,
    t.trx_date,
    P.AMOUNT_DUE_ORIGINAL,
    OE.cust_po_number
    OF ra_customer_trx_all t.
    ra_cust_trx_types_all tp,
    OE OE_ORDER_HEADERS_ALL,
    hz_cust_site_uses_all su_ship,
    hz_cust_acct_sites_all sa_ship,
    hz_cust_accounts ca_ship,
    AR_PAYMENT_SCHEDULES_ALl p
    WHERE t.status_trx = "OP" - close
    and t.cust_trx_type_id = tp.cust_trx_type_id

    and to_number (nvl (trim (t.interface_header_attribute1),'0 ')) = oe.order_number - to_number causing an error invalid number

    and p.TRX_NUMBER = t.trx_number
    -ship to a/c
    and su_ship.site_use_id (+) = t.ship_to_site_use_id
    AND su_ship.cust_acct_site_id = sa_ship.cust_acct_site_id (+)
    AND sa_ship.cust_account_id = ca_ship.cust_account_id (+);

    Any help will be much appreciated.

    Thank you

    VJ

    Hello

    and     regexp_like(t.interface_header_attribute1, '^[0-9]+') -- excludes rows where non digits occur in this column
    

    Not quite true.

    with data as(
    select '123' x from dual union all
    select 'a234f' x from dual union all
    select 'a234' x from dual union all
    select '12d34' x from dual union all
    select '123df5' x from dual)
    
    select
    *
    from data
    where
    regexp_like(x, '^[0-9]+')
    

    Kind regards
    Bobin

  • I have an invalid jpeg file that appear on my screen. He got there when I moved the files to a new folder. I can't get rid of it and it remains visible even when I'm on the internet or have opened another application.

    I have an invalid jpeg file that appear on my screen. He got there when I moved the files to a new folder. I can't get rid of it and it remains visible even when I'm on the internet or have opened another application. It interferes with the applications and documents. I tried to click on (nothing happens). I have the version 10.9.5, processor speed 2.7 GHz Intel core 15, 8 GB 1600 MHz DDR3 memory.

    Have you tried a re-boot?

  • Message when you try to upgrade or install a program. "A network error occurred whtile attempted to read from the file:

    Receive the following message when you try to upgrade or install a program. "A network error occurred whtile attempted to read from the file?: MSI

    * original title - cannot open files with .msi extension *.

    You try to open this leave a link online? If yes I would like to try and save the MSI on your desktop and then try to open.

  • cannot read the source file or disc for install.wim when file copying.

    I'm doing a windows 7 bootable from a USB key, and when copying files every thing goes more except for the install.wim

    I get the error message "cannot read the source file or disk.

    I checked there is enough space on the disk, and I also tried copying from disk to my office, same question.

    I tried using the command line to move the file and get an "Access denied" error message, which I believe is the root cause as to why I can't move the file in the first place.

    Hello

    try to run the System File Checker.

    Here is the link:

    http://support.Microsoft.com/kb/929833

    It will be useful.

  • When I save a file (using "Save as" in Firefox) on the desktop the address bar reads: file:///C:/Users/Name/Desktop...

    ORIGINAL TITLE: File evil

    When I save a file (using "Save as" in Firefox) on the Office the address bar reads: file:///C:/Users/Name/Desktop...how can I fix it?

    Hi Goldie,

    1. not the problem only occurs when you save the file in Firefox?
    2. don't you make changes to the computer before the show?

    I suggest you try to save the file using Internet Explorer on the desktop and see if it works.

    If the problem is with the shortcut of Firefox, then I suggest you to post.
    https://support.Mozilla.org/en-us/questions

  • I cann't open exe file when I open always open with adobe reader.when I uninstall adobe reader my exe file work but I still need adobe for my pc

    I cann't open exe file when I open always open with adobe reader.when I uninstall adobe reader my exe file work but I still need adobe for my pc.

    Hello

    read this and see if this solves your problem

    http://www.Winhelponline.com/blog/restore-exe-file-Asso-Windows-7-Vista-incorrectly-associated/

  • Error when trying to play multimedia file: Windows Media Player has encountered a problem when reading this file.

    Windows media player

    I get the message "windows media player has encountered a problem when reading this file", and in the media player screen, he says 'changing media '.  What does all this mean?

    Hello

    1. when the question is is produced?
    2. don't you make changes to your machine before the problem?
    3. What is the format of the file you are trying to play?
    4. you play a file from a CD or DVD, or from the hard drive?

    I suggest that you follow the steps mentioned below and check to see if they help.

    Step 1:

    Open the troubleshooter in Windows Media Player settings and check if the problem persists.

    Step 2:

    Check if the file you are trying to play requires no codecs.

    Codecs: Frequently asked questions

    Step 3:

    Uninstall and reinstall Windows Media Player:

    A.
    a go to start and in the search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find multimedia and uncheck the brand in the face of Windows Media Player.
    d. restart the computer
     
    B.
    Reinstall Windows Media Player:

    a. go to start and in the search type 'Turn Windows has or not'.
    b click on "Turn Windows features on or off".
    c. find the multimedia functions and place a check mark in front of the Windows Media Player.
    d. restart the computer.

Maybe you are looking for