MAX_FIELDS_CST value is incorrect

I am testing published Captivate 5.5 files with AICC test suite and getting an error.
Looking into this b/c the LMS admin on this project said there might be issues with the files we delivered.
Any suggestions on why this may be ocurring?
AICC/CMI Test Suite - Ver 1.5
Disclaimer:  Test results are not valid unless tests are conducted in an AICC authorized Independent Test Lab
   << AICC CBT Course Structure Format Test >>
Apr 14 2013 21:56:19 < ==================< Begin Test >======================== >
Apr 14 2013 21:56:19  Error [E20081] Description: MAX_FIELDS_CST value is incorrect for INPUT CST File
Apr 14 2013 21:56:19  Warning [W00007] Description: Level exceeds 1 in input CRS file - Only Level-1 features are tested
Apr 14 2013 21:56:19 < ==================<  End Test  >======================== >
Apr 14 2013 21:56:19 <  >
Apr 14 2013 21:56:19 < ====> Total Errors =  1   >
Apr 14 2013 21:56:19 < ====> TEST FAILED  >
Previously I had run the test suite and got about 5 errors regarding missing information.
I simply found the fields in the project preferences and filled them in.
Have no idea how to address this MAX_FIELDS_CST though.
Help?

Hello,
As attachment you can find the VI I've created for demonstration.
In the Screenshot you can find the OUTPUT Data.
Expected Output:
AI01: 24V
AI02: not connected
TC01: room temperature
TC02: not connected
TC03: not connected
TC04: not connected
Attachments:
Demo_AI_Malfunction.zip ‏119 KB
OUTPUT_Screenshot.PNG ‏15 KB

Similar Messages

  • OAK3 error message - Specifications for the mean value methods incorrectly

    Hello experts,
    After golive of sap ECC system of our client, when the auditors check the consistency of depreciaion areas in transaction OAK3, the error message is appearing under the depreciation area 01 as "Specifications for the mean value methods incorrectly defined". Can anybody throw some light on how to encounter this error message?
    Thanks

    Hi,
    1) Usually, the reason why the error occurs is that you have no area defined in the chart of depreciation.
    2) Also please check the attached note 847289.     
    3) Please also run OIB5 and check if capitalization version is assigned to depreciation area 01                                            
    If you use capitalization versions it is necessary to have a depreciation area with area type 07 (Cost-acc. valuation) which     
    get the whole amounts.                                                                               
    The depreciation area which takes the values to 100 % must have the following features:                                                 
    => The currency of the depreciation area should have the currency of the controlling area                                          
    => The depreciation area should have the depreciation area type "07 Cost-acc. valuation"                                         
    => The area should not have a capitalization version       
    regards Bernhard

  • Open Credit values are incorrect

    The open value credit values are incorrect. we have to run RVKRED77 every night to correct them. We have been unable to replicate the error so  the SAP  position is they need to replicate the error  in order to fix it. I can see the S067 strucures with the incorrect values. A further problem is that as the day goes on the values get corrupted and are not fixed until the correction is ran. I have been reviewing OSS note 124571

    Hi Dave,
    I was able to fix the issue by implementing OSS note 491718.
    As for the cleanup - ohhhh boy, I have been working on it for over a year and it's still not done. I can only manage one CCA per weekend. I run Z_CREDIT_VALUE_COMPARE (oss note 666587) every Friday for a given CCA to identify the customers with incorrect value. I then update a default variant for RVKRED77 and enter the CCA and the list of identified customers.  RVKRED77 is setup as a job (with the default variant) to be executed every Saturday night after the system backup.  This will ensure that users will not be in the system and not have any locks on SD tables.  Otherwise, RVKRED77 will fail since it cannot get a lock on SD tables.
    SAP has yet to come up with a better approach to correct these incorrect values and to prevent it from happening again.  However, SAP Solution Manager and central consistency monitoring (Data Consistency Cockpit) may help by notifying you as soon as this issue appears again.  You can read more on this in OSS note 1040893. 
    Hope this helps,
    Keyvan

  • Keyfigure values are incorrect in BEx Query based on infoset

    Hi Experts,
    I have created a infoset using 3 DSO's . 1 main DSO( from which i rquire all the data) is linked with other 2 DSO's using left outer join. DSO is linked with other 2 DSO's with a field return GUID .
    Now when i am executing a query , key figure values are coming incorrectly because suppose if there is 1 record related to
    RETURN GUID in main DSO and there are 4 reords in 2nd DSO with the same RETURN GUID then in infoset data 4 rows are getting created with the replication of all the fields from first DSO against those 4 rows. So in query result amount field is getting 4 times of its original value because of aggregation of all those 4 rows.
    I don't have set of key fields by which i can link the all the DSO's to get unique linking of records.
    How can i get the amount only one time in query result?
    Hope i am clear.
    Please help. I need to create report urgently.
    Regards,
    Ajay

    Hi Ajay:
    Please take a look at the blog series provided by Sunmit Bhandari.
    Infoset Keyfigure multiplicity Part 1
    /people/sunmit.bhandari/blog/2009/04/14/infoset-keyfigure-multiplicity-part-1
    Infoset Keyfigure multiplicity Part 2
    /people/sunmit.bhandari/blog/2009/04/14/infoset-keyfigure-multiplicity-part-2
    Infoset Keyfigure multiplicity Part 3
    /people/sunmit.bhandari/blog/2009/04/14/infoset-keyfigure-multiplicity-part-3
    Regards,
    Francisco Milán.

  • Float value displaying incorrectly in Matrix

    Hi,
    I am working with a Matrix that uses a Data Table as a Data Source.
    The Data Table is populated with a query that combines rows from the AP Invoice and AP Credit Notes tables. 
    The matrix columns  all appear to be binding correctly to their respective columns in the Data Table.
    The values from the Data Table appear as expected in the Matrix except the open document value (which is a formula in the Data Table source query which subtracts PaidToDate from DocTotal).
    Any ideas or advice on what could be causing this value to appear incorrect would be appreciated.
    Regards,
    Sean

    Hi Petr,
    I have tried as you suggested but the results are still appearing incorrectly. The link below is a screenshot hosted on imageshack that illustrates the issue.  As you can see the rest of the columns are binding as expected and it is only the "Amount to Pay" column that is not
    [Screenshot of issue|http://img232.imageshack.us/img232/3784/uiissue.jpg]
    string BaseQuery = @"
                    SELECT
                        T0.PayBlock [Blocked],
                        ISNULL(T0.Project,'') [Project],
                        CASE WHEN T0.ObjType = 18 THEN T0.DocNum ELSE NULL END  [Inv No],
                        CASE WHEN T0.ObjType = 18 THEN NULL ELSE T0.DocNum END [Cr No],
                        T0.CardCode [Supplier],
                        T0.CardName [Supplier Name],
                        T0.NumAtCard [Supplier Ref],
                        T0.Comments,
                        T0.DocCur [Currency],
                        T0.DocTotal * CASE WHEN T0.ObjType = 18 THEN 1 ELSE -1 END [Doc Total],
                        T0.PaidToDate [Paid to Date],
                        CONVERT(NUMERIC(19,2),(T0.DocTotal - T0.PaidToDate)  * CASE WHEN T0.ObjType = 18 THEN 1 ELSE -1 END) [Amount to Pay],
                        T1.PayBlock [Hold Reason]
                    FROM
                        [{0}] T0                   
                        LEFT OUTER JOIN [OPYB] T1 ON T1.AbsEntry = T0.PayBlckRef
                    WHERE
                        ISNULL(T0.Canceled,'N') = N'N'
                         AND T0.DocStatus <> N'C'";
    // I then have code to Add additional criteria to the where clause based on parameters...
    // The following then unions the base query together for AP invoice and credit note documents
    string Query = string.Format(BaseQuery, "OPCH") + Environment.NewLine + "UNION ALL " + Environment.NewLine + string.Format(BaseQuery, "ORPC");
    // The code that binds the Matrix is...
    NewColumn = DocumentMatrix.Columns.Add(constITEM_AmountToPayColumnId, SAPbouiCOM.BoFormItemTypes.it_EDIT);
                        NewColumn.TitleObject.Caption = "Amount";
                        NewColumn.AffectsFormMode = false;
                        NewColumn.Editable = false;
                        NewColumn.Width = 100;
                        NewColumn.RightJustified = true;                 
                        NewColumn.DataBind.Bind(constITEM_APApprovalForm_APDocuments_DataTableID, constSQL_AmountToPayColumn);

  • Excise base value Posted Incorrectly

    Dear Expert,
       In our Client , the user have posted the incorrect Excise Base Value for particular material .Part II has already posted. We cannot cancelled the Excise invoice as the stock is already been consumed. Please Provide the solution for it.
    Regards,
    Kapil.

    Hi,
    You need to post a excise JV ...steps are
    1)go to t code J1IH
    2)Go to other adjustments tab,input the material document number,year ,excise group company code and plant and post
    Note that post the amount that you need to adjust.ie suppose u have posted Rs 100 during j1iex which should have been  90 ,then in j1ih post only Rs 10
    Note:1) The entry which is passed in the above tcode will not be refected in cenvat register(j2i9) ,but it is captured in ER1 report (J2IER1)
    2)Subtransaction type MRDY is hit during the above transaction
    Regards
    Sandeep

  • Cannot convert a char value to money. The char value has incorrect syntax.

    USE [RealEstate]
    GO
    /****** Object:  StoredProcedure [dbo].[search]   
    Script Date: 03/18/2014 13:32:53 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER proc [dbo].[search]    
    --location      
    @locationName nvarchar(50),      
    @parentId int, --*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-    
    @locatioTypeName nvarchar(50),      
    --property      
    @propertyDetailsName nvarchar(50),      
    @propertyDetailsStatus nvarchar(50),      
    @propertyDetailsPriceFrom money,  
    @propertyDetailsPriceTo money,     
    @propertyDetailsQuantityFrom int,  
    @propertyDetailsQuantityTo int,     
    @propertyDetailsAreaFrom int,  
    @propertyDetailsAreaTo int,      
    @propertyDetailsRoomNumberFrom int,      
    @propertyDetailsRoomNumberTo int,  
    @propertyName nvarchar(50)     
    as      
    begin      
    SELECT * from viewSearch       
    where  (@locationName is null or (location_name like '%'+@locationName+'%' ) or location_name=@locationName  )
    and ( @parentId is null or(parent_id=@parentId ))
    and (@locatioTypeName is null or(location_type_name like '%'+ @locatioTypeName +'%'  ) or location_type_name=@locatioTypeName  )
    and (@propertyDetailsName is null or(property_details_name like '%'+ @propertyDetailsName+'%' ) or property_details_name=@propertyDetailsName  )
    and (@propertyDetailsStatus is null or (property_details_status like '%'+@propertyDetailsStatus +'%' ) or property_details_status=@propertyDetailsStatus      )
    and (@propertyDetailsPriceFrom is null or @propertyDetailsPriceTo is null or(property_details_price between '%'+@propertyDetailsPriceFrom +'%' and '%'+@propertyDetailsPriceTo +'%' )  or property_details_price=@propertyDetailsPriceFrom or
    property_details_price=@propertyDetailsPriceTo  )
    and (@propertyDetailsQuantityFrom is null or @propertyDetailsQuantityTo is null or(property_details_quantity between '%'+@propertyDetailsQuantityFrom +'%'  and '%'+@propertyDetailsQuantityTo+'%'   )or property_details_quantity
    =@propertyDetailsQuantityFrom or property_details_quantity=@propertyDetailsQuantityTo  )
    and (@propertyDetailsRoomNumberFrom is null or @propertyDetailsRoomNumberTo is null or(property_details_roomNo between '%'+ @propertyDetailsRoomNumberFrom +'%'  and '%'+ @propertyDetailsRoomNumberTo +'%' )  or property_details_roomNo
    =@propertyDetailsRoomNumberFrom or property_details_roomNo=@propertyDetailsRoomNumberTo   )
    and (@propertyName is null or (property_name like '%'+@propertyName+'%' ) or property_name=@propertyName  )
    and (@propertyDetailsAreaFrom is null or @propertyDetailsAreaTo is null or (property_details_area between '%'+@propertyDetailsAreaFrom+'%' and '%'+@propertyDetailsAreaTo+'%' ) or property_details_area=@propertyDetailsAreaFrom or property_details_area=@propertyDetailsAreaTo 
    end

    Fadi,
    Can you try the below?? :
    (Have removed '%' marks for searching wrt Between clause as string wise wildcard search is not needed for integer or money values - provided the columns are NOT in varchar but in int/money types.)
    ALTER proc [dbo].[search]
    --location
    @locationName nvarchar(50),
    @parentId int, --*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
    @locatioTypeName nvarchar(50),
    --property
    @propertyDetailsName nvarchar(50),
    @propertyDetailsStatus nvarchar(50),
    @propertyDetailsPriceFrom money,
    @propertyDetailsPriceTo money,
    @propertyDetailsQuantityFrom int,
    @propertyDetailsQuantityTo int,
    @propertyDetailsAreaFrom int,
    @propertyDetailsAreaTo int,
    @propertyDetailsRoomNumberFrom int,
    @propertyDetailsRoomNumberTo int,
    @propertyName nvarchar(50)
    as
    begin
    SELECT * from viewSearch
    where
    (@locationName is null or (location_name like '%'+@locationName+'%' ) or location_name=@locationName )
    and ( @parentId is null or(parent_id=@parentId ))
    and (@locatioTypeName is null or(location_type_name like '%'+ @locatioTypeName +'%' ) or location_type_name=@locatioTypeName )
    and (@propertyDetailsName is null or(property_details_name like '%'+ @propertyDetailsName+'%' ) or property_details_name=@propertyDetailsName )
    and (@propertyDetailsStatus is null or (property_details_status like '%'+@propertyDetailsStatus +'%' ) or property_details_status=@propertyDetailsStatus )
    and (@propertyDetailsPriceFrom is null or @propertyDetailsPriceTo is null or(property_details_price between @propertyDetailsPriceFrom and @propertyDetailsPriceTo ) or property_details_price=@propertyDetailsPriceFrom or property_details_price=@propertyDetailsPriceTo )
    and (@propertyDetailsQuantityFrom is null or @propertyDetailsQuantityTo is null or(property_details_quantity between @propertyDetailsQuantityFrom and @propertyDetailsQuantityTo )or property_details_quantity =@propertyDetailsQuantityFrom or property_details_quantity=@propertyDetailsQuantityTo )
    and (@propertyDetailsRoomNumberFrom is null or @propertyDetailsRoomNumberTo is null or(property_details_roomNo between @propertyDetailsRoomNumberFrom and @propertyDetailsRoomNumberTo ) or property_details_roomNo =@propertyDetailsRoomNumberFrom or property_details_roomNo=@propertyDetailsRoomNumberTo )
    and (@propertyName is null or (property_name like '%'+@propertyName+'%' ) or property_name=@propertyName )
    and (@propertyDetailsAreaFrom is null or @propertyDetailsAreaTo is null or (property_details_area between @propertyDetailsAreaFrom and @propertyDetailsAreaTo ) or property_details_area=@propertyDetailsAreaFrom or property_details_area=@propertyDetailsAreaTo )
    end
    If your table columns are of varchar datatype and you'd wanna do a sequential (characater) search, then you may have the CAST/CONVERT operators in your Proc as suggested by Olaf ..
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • Create Excel file in application server but the field value is incorrect

    Hi Experts,
    i am facing a problem when create excel file in application server using OPEN DATASET command.
    the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
    the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
    Example :
    the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
    and if i add alphabet like a8962118800000447654 then it is correct.
    is there is anything wrong with my code?
    here is my code
    CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
    Data : begin of lt_zdsdmmdt00005 occurs 0,
             SERNR (18) type c,
             MSISDNl(20) type c,
             BOX1 (20) type c,
             ICCID(30) type c,
           end of lt_zdsdmmdt00005.
    data : ld_temp(100) type c.
    i_file = '/usr/sap/DM/test_excel.xls'.
    open dataset i_file for output in legacy text mode.
      loop at lt_zdsdmmdt00005.
        move lt_zdsdmmdt00005-ICCID to ld_iccid .
        concatenate lt_zdsdmmdt00005-sernr  lt_zdsdmmdt00005-MSISDN  lt_zdsdmmdt00005-BOX1 ld_iccid
        into ld_temp separated by c_tab.
        transfer ld_temp to i_file.
      endloop.
      close dataset i_file.
    Best Regard,
    Akbar.

    Hi Naveen,
    thanks for your reply,
    i already tried and the result still the same. any idea?
    Best Regard,
    Akbar.

  • TIMECARD FIELD VALUE IS INCORRECT IN ALTERNATE NAME

    Hi,
    I use Alternate name definition form to create new Alternate name and assigned it via preferences.
    When I login as SS create Timecard the Hours Type poplist is empty.
    When I look at the VO it expect the Time_card column in hxc_alias_definitions to have value of 'Hours Type' but in the record the
    column is empty.
    I checked the default one (Alternate name definition ) which is created by the concurrent program 'Generate Flexfield and Mapping
    Information'
    has Timecard_field value of 'ElementComponent' which is causing it doesn't work also.
    Pleas help.

    I am using HR with OTL
    1. I create element with with primary classification 'Information'.
    2. Create input Values with name Hours
    3. Create element link and link specific payroll value to the element.
    4. Create element set and include the element
    5. Use OTL administrator to generate the flexfield mapping
    6. Enable segment of the generated flex
    7. Create public template (monday to Sunday) and Template group
    8.Created Alternate Name with following data:
    OTL Alternate Name DFF Context,
    Payroll Elements
    And above element attached and enabled.
    9.Created weekly recurring period.
    10.Used the seeded Human Resources application set
    11.Created the Approval Style with application as one level approval
    12.Created a weekly approval period
    13.Used the seeded human resources retrieval rule.
    14.Used the seeded Retrieval Rule group withgroup name Human Resources Retrieval Rule Group
    Time Store Approval Period,
    Self-Service timecard period for worker,
    Time Store Approval Style,
    Self-Service timecard, review and confirmation layout pages for a worker
    Self-Service timecard status that allows user edits
    Time Store Application Set,
    Time Store Retrieval Rule Group,
    Timecard period
    Timecard alternate Name
    Public template group
    Self Service Default Template Assigned by Sys Admin
    Create eligibility criteria for the new preference to all people
    I tried attaching the default enabled alternate name and also the custom one and both don't help.

  • Value update incorrect

    I am doing this:
    rs.updateDouble("Amount",10.23);
    rs.updateRow();
    but the value at my MS SQL Server become:
    10.2299957275391
    rather than 10.23.
    Please help.
    Regards,
    MingMan

    float or double is not going to honor the precision, that is their limitation, if you understand the internal of float or double.
    If you know the exactly precision to keep, for example 2 decimal, you can also times the float by 100 and store the value as long. But a table column type change is still unavoidable if you really want to do it right. But sounds like you are limited by that. :(
    I am answering every question that I can provide some ideas. Yours just happen to have some tks. So please don't insult your support people.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Approval mail has incorrect value

    Hi Guys,
    I am facing one issue here where the SC was raised for 48 M JPY, however when the approvers received the notification, the amount reflected as 480 K JPY.
    Can anyone tell me what is wrong and how to correct it?
    Regards,
    Sid

    Hi Sidmi
    Is it notification or workitem?
    SAP Note 1117190 -Incorrect shopping cart value in approver's inbox
    You create a shopping cart using currencies without decimals (Ex : JPY,KRW, etc.) When the approver, approves the shopping cart, the total value displayed is in a wrong format.
    SAP Note 981733 - Approver's Inbox : Incorrect SC value
    Shopping Cart is in Approver's Inbox. Before the approver approves the SC,the requisitioner makes changes to the cart and resubmits the SC.
    When checked in Approver's Inbox, the SC total value is incorrect for those currency w/o decimal places. (Ex : JPY..)
    REGARDS
    Muthu

  • CpQuizInfoPointsscored, cpInfoPercentage and cpQuizInfoTotalCorrectAnswers showing incorrect values

    Hi All,
    I am using captivate 4 - AS2 for publishing. I have built a captivate quiz which is a very straight forward without any question pooling or randomization. All the quesions are standard MCSS/MCMS type and there is no custom activity. After the quiz there is standard scoring slide and after that I have added the certificate widget (captivates inbuilt widget).
    The problem is the score being displayed on score page is correct however in certificate page it is something different. For this I tried tracking following variables on the score page:
    $$cpQuizInfoPointsscored$$
    $$cpQuizInfoTotalCorrectAnswers$$
    $$cpInfoPercentage$$
    The score being displayed is correct and system variable values are incorrect. Attached are a few screenshots for reference ($$cpQuizInfoPointsscored$$ and $$cpQuizInfoTotalCorrectAnswers$$ values are 50, 5 and 140, 14 which should have been 60, 6 and 190, 19 respectively).
    Any pointers to what is wrong?
    Thanks in advance!

    Thanks for the reply.
    No my captivate is the standard installation without any updates. Any pointers to that particular patch? from where I can install it?
    I found this one:
    http://www.adobe.com/support/captivate/captivate_4_downloads.html
    Will this work?

  • Before aggregation - incorrect values

    Hello,
    I am using Calculated Key Figure with time of aggregation calculation = "before aggregation" and then I use this CKF in columns. Some rows are calculated correctly, but some of them are not. And when I check the key figure definition for those incorrect in monitor query I can see the way how it is calculated and everything seems to be OK in the row 1 (picture) , but in row 2 the value is incorrect.
    <a href="http://raisik.webz.cz/key_fig1.JPG">http://raisik.webz.cz/key_fig1.JPG</a>
    Any idea why?
    Thanks for any help.
    Regards
    Pavel

    Hi Agrima,
                Check here.....
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
    Thanks,
    Vijay.

  • Net Price/Net Value on Sales Order Overview Incorrect

    Hi Experts!
    We are on SAP 4.7
    I have a sales order that has already been delivered, billed, etc.  However, when I look in the Sales Order Overview screen, for 1 item, the Net Price is different than the Item Pricing Condition screen.  I looked in document changes and did see when the Net Price was changed, but cannot tell why it was changed.  Can you anyone explain why this happened?  This is causing a minimum order surcharge in the order.  Awaiting a quick response.  Thank you in advance!
    WC

    Thank you for the response!
    I have tried to replicate the scenario, that was causing the net price/net value displaying incorrectly, and thus causing a minimum order surcharge fee; which was really the issue. 
    When I re-created the scenario, I found that a change in quantity in the sales order of an item or items, after the delivery has already been created (before posting GI); it caused the net price/net value to change, thus causing the minimum order surcharge. 
    The person changed the quantity in sales order, and it indirectly changed the net price, causing the minimum order surcharge.  I still do not know why this happened?
    Do you know of any reasons why this may have occured?
    Thank you in advance!
    WC

  • Oracle returning incorrect day of the week

    Hi there,
    I have a table named Performance, which includes a date field named PDATE, some other attributes such as title, etc, and a field named WEEKDAY, which includes the numerical value for the day of the week. Here is an example:
    PER#
    P#
    THEATRE#
    WEEKDAY
    PDATE
    PHOUR
    PMINUTE
    COMMENTS
    1
    1
    1
    1
    02-MAR-10
    19
    30
    Normal evening time
    2
    1
    1
    2
    03-MAR-10
    19
    30
    Normal evening time
    58
    6
    6
    3
    04-MAR-10
    19
    30
    Normal evening time
    5
    1
    1
    4
    05-MAR-10
    19
    30
    Normal evening time
    I went to verify the day of the week in a calendar (in fact I checked more than one) and I noticed that the Weekday value seems incorrect. For instance, the 2nd of March was a Tuesday so I would expect WEEKDAY to say 3 (considering Sunday to be the 1st day of the week, which is the universal norm), or perhaps 2 (considering Monday to be the 1st day of the week).
    First thing that came to mind is, since the WEEKDAY is a number field which has been pre-populated, the person who populated it made a mistake.
    So I went to verify this by running a query that would give me the correct day of the week by extracting it from the PDATE field:
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,
    to_char(to_date(pdate,'DD/MM/YYYY'),'DY') weekdaycalc, weekday
    FROM ops$yyang00.Performance
    ORDER BY pdate
    And to my astonishment, I got the following table as a return:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    SUN
    1
    03-MAR-10
    2010
    MON
    2
    04-MAR-10
    2010
    TUE
    3
    05-MAR-10
    2010
    WED
    4
    06-MAR-10
    2010
    THU
    5
    07-MAR-10
    2010
    FRI
    6
    08-MAR-10
    2010
    SAT
    7
    09-MAR-10
    2010
    SUN
    1
    10-MAR-10
    2010
    MON
    2
    As you can see, all of the above WEEKDAYCALC values are incorrect, and seem to match the incorrect values in WEEKDAY.
    I could perhaps understand some weird WEEKDAY numbering if there is some general database setting where I could specify any day of the week to be the first day. However, I can't think of any logical explanation on why Oracle would call a Tuesday Sunday.
    Could someone please advise what I mght be doing wrong? This is driving me insane!
    Thank you in advance for all the help and support.
    Regards,
    P.

    Hi,
    1bded5c7-e555-4306-ac86-45da83dff439 wrote:
    Thanks both Frank and Solomon for the help. I am quite new to Oracle and I feel you folks went the extra mile on the explanation
    Based on your explanations, I changed the formula so the date format would be processed as YY rather than YYY.
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,   
    to_char(to_date(pdate,'DD/MM/YY'),'DY') weekdaycalc, weekday   
    FROM Performance   
    ORDER BY pdate  
    And I got the correct values now:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    TUE
    1
    03-MAR-10
    2010
    WED
    2
    04-MAR-10
    2010
    THU
    3
    05-MAR-10
    2010
    FRI
    4
    06-MAR-10
    2010
    SAT
    5
    07-MAR-10
    2010
    SUN
    6
    08-MAR-10
    2010
    MON
    7
    The interesting bit here, is the original WEEKDAY field, which clearly has been created with the same mistake I did (this whole table wasn't created by me). I reckon I spotted a design bug.
    Regards,
    P.
    No; you're still calling TO_DATE on something that is already a DATE, and you're still using an implicit conversion (only now you're using a format such that the current NLS settings don't cause you to get punished.  If your DBA changes the NLS settings next week, then you will have similar errors again.)
    If you want to see what day of the week pdate is, then use:
    TO_CHAR (pdate, 'DY')
    or, to make it NLS-independent:
    TO_CHAR (pdate, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH')
    This is simpler than what you posted, it's more efficient and easier to debug and to maintain, and it also gets the results you want in all cases.
    One more time: TO_DATE, as the name hints, converts something (a VARCHAR2, to be precise) TO a DATE.  If pdate is already a DATE, then what do you need to convert?  You're implicitly converting a DATE to a VARCHAR2, then explicitly converting that VARCHAR2 back to a DATE, and then calling TO_CHAR.  That's 3 function calls (1 of them error prone) where only 1 is needed.
    Also if you ever have to reconcile 2-digit years with 4-digit years (and, again, in this problem you don't) the correct way is to convert the 2-digit year to a 4-digit year, not vice-versa.
    Calling Tuesday the 1st day of the week could make sense in a particular application.

Maybe you are looking for

  • Is it possible to create a journal with iphoto on an imac?

    i saw the new app' using iphoto for ipad and iphone, but what about using iphoto to make a journal on an imac?

  • html:select Struts tag problems

    hello I've a bean "Profile" in my sessionScope under name "myProfile" This bean is defined as public class Profile implements java.io.Serializable  {      private User user;      private List<Groups> groups;      private List<Function> function;     

  • Deleted folder mystery what happend and where is it now

    I have a mail folder that has messages inside and a sub folder with messages inside that. For clarity I will call it Folder 1 and subfolder 1. I was renaming folder 1 and got a message that there was an error: ERROR Mail was unable to rename "~/Libra

  • Webcam on Satellite A300-1MX doesn't work properly

    After my windows Vista system crashed on Dec 16 2011, I had the recovery done. After that, I didn't find any webcam driver on the whole laptop. On the support page of Toshiba I finally found version 1.7, but that doesn't work at all! It always shows

  • HT1688 I need to make an appointment at the apple store please

    My phone turn off automatic sometimes and plus get frozen and I need to turn off for the problem.is why I need to meek an appointment in the apple store thank u