Date format not imported

Hi,
I'm trying to import a date dimension from a SQL table. The problem is that the when importing directly into Power Pivot, the date format from the date base turns into a text format and the sorting is not the same as in the data base.
Using Power Query instead, everything looks ok in the Power Query window and the data type and sorting is correct, and when loading the data to Power Pivot or an Excel table the format seems to be correct, but not the sorting, even when I
set the sorting in Power Query. Why is that? Shouldn't the sorting be the same when the data is loaded? And why is the format not correctly imported to Power Pivot when not using Power Query? 
I have windows 7 with Swedish as locale and office 2013 professional plus and I have the latest version of Power Query installed.
Brgds,
Caj
Csten

Yes, I tried to set the data type to date in Power Pivot and that works, was just surprised that Power Pivot don't import the format and sort order from the date base. Would be a nice feature.
Curt, I assume this is what you mean?
let
    Source = Sql.Databases("XXXXXX"),
    SLAMJunc = Source{[Name="XXXXX"]}[Data],
    dbo_DimDate = XXXXXX{[Schema="dbo",Item="DimDate"]}[Data],
    SortedRows = Table.Sort(dbo_DimDate,{{"Date", Order.Ascending}})
in
    SortedRows
Also, the data type is set to Date in Power Query but when I load the data into Power Pivot it is shown as Date/Time. Non of this is a big thing and it is easy to handle, just slightly annoying when I didn't get the result I was expecting.  
//Caj
Csten

Similar Messages

  • "Date formatting not supported yet"??

    When I add imports to get around the problem described in my previous
    email, I run into an exception that says "Date formatting not supported
    yet". The exception is thrown in util/HtmlUtil.java. What's the
    intention here? Why don't we just return the value unformatted? How
    should I handle this so I can take advantage of the formatting if it is
    supported someday? Are there any other formatting types which I need
    to "handle" in order to run?

    Dan--
    When I add imports to get around the problem described in my previous
    email, I run into an exception that says "Date formatting not supported
    yet". The exception is thrown in util/HtmlUtil.java. What's the
    intention here? Why don't we just return the value unformatted? How
    should I handle this so I can take advantage of the formatting if it is
    supported someday? Are there any other formatting types which I need
    to "handle" in order to run?The exception lets you know that there is a specific issue you need to work
    around during migration. The reason we don't just return the unformatted
    value is that we didn't want to give the impression that date formatting
    worked when it doesn't (yet).
    If you just want the value to come through without an attempt at formatting,
    the correct thing to do is to change your JSP tags to eliminate the date
    formatting attributes. If this is a loss of data (the format masks), then
    you should just comment them out rather than delete them.
    The whole issue of date formatting is unfortunately complex. Suffice to say
    that it is far easier for the developer to format the date as they wish in
    their code then it is for us to try and provide generic date formatting.
    The issue revolves around having all the necessary information in order to
    do the formatting in a generic way.
    Todd

  • ORA-01821: date format not recognized Error in PL/SQL report-4.0

    Hi,
    I am using Apex 4.0 and i have a Classic report(function returning query) which selects a date column.
    The query runs at the backend and gives the output.
    But when i run the report on the page, i get the error
    report error:
    ORA-20001: Error fetching column value: ORA-01821: date format not recognizedThe values for the date column are like this 14-MAR-13,01-FEB-13 etc... Everything seems to be right.
    But I have no idea why this error occurs.
    Thanks
    Divya

    Aren't these errors annoying! But there's a data / format mismatch for sure. What I need to see -- and what will tell you what is wrong -- is
    1) exactly what the data is and
    2) exactly what the format string is that is being used to convert it.
    The values for the date column are like this 14-MAR-13,01-FEB-13 etc... Question: Is this the source data or the target data ( what it's supposed to look like after being converted)?
    Let's start there:
    What is the source? Is it a DB column? Is it type date or VARCHAR2 or what?
    If VARCHAR2, then give us an example of the data that is failing.
    What is the format -- I assume there is one -- being used to convert the data?
    Are you doing a TO_CHAR or a TO_DATE?
    Give us lots of detail, please. Then it should be easy to solve.
    Regards,
    Howard

  • Date format not recognized -- urgent help needed

    Hi,
    I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
    I do have OWB installed which also has SQLPLUS installed so that there is no problem if I start it from C:\ORACLE\owb92\bin.
    For some reason, the path is setting as C:\oracle\ora81\bin before C:\ORACLE\owb92\bin so the default always goes to 81 folder.
    If restart the DB instance, and this problem is gone. But it comes back after some application running (our own application and Oracle provided OMBPlus ). We double check our own application, and there is no where to "alter session ...".
    Any help will be very appreciatged,
    Thanks,
    Daming

    I'm having a problem when start sqlplus in dos command window. If I start it from C:\oracle\ora81\bin, it won't started and error message showing like 'Date format not recognized' and then come back to DOS.
    Do you have a file called 'login.sql' in the folder 'C:\oracle\ora81\bin'? If there is one, is there an 'alter session' command in this file?

  • "date format not recognised" in DBMS_SESSION, on page over db_link

    Hi,
    I have an Apex 4.0 page which has a region that gets data constituted from a connection across a database link.
    The host database is 11.1.0.6 and the remote database is 9.0.1. (Both Standard Edition)
    I am using EPG.
    Intermittently, I receive the following error (having turned debugging on):
    Wed, 25 Aug 2010 10:21:53 GMT
    ORA-20867: ORA-01821: date format not recognized
    ORA-02063: preceding line from CLIFF
    ORA-06512: at "SYS.DBMS_SESSION", line 157
    ORA-06512: at "APEX_040000.WWV_FLOW_LANG", line 387
    ORA-06512: at "APEX_040000.WWV_FLOW", line 9284
    ORA-06512: at "APEX_040000.F", line 267
    ORA-06512: at "APEX_040000.F", line 294
    ORA-06512: at line 30
    I'm somewhat confused as to what is causing the generation of this error.
    After receiving this error, anything I else that I do that involves building 'pages' works perfectly fine. I can login/out, no problems.
    However, if I try and RUN any page within my application thereafter (all of these access local DB information apart the 1 that generates the error), I continue to receive exactly the same error - no matter which page I am trying to access.
    Help?
    - Tony.

    Hi Patrick,
    No. I haven't yet applied the patchset. May do that this afternoon now.
    I don't believe I've manually set any date formats anywhere. Just entered the Builder with default options (apart from choosing a theme) and away I went!!
    What surprises me is that the application has no problems viewing all the data. The functionality all seems fine. I had this working on a previous setup for months,. without any problems, using version 3.2. (This wasn't migrated though, this was a rebuild from scratch.)
    From further "tests", the error seems to occur when I edit the page that involves the remote data.
    Normally, a user would land on the page from having used a hyperlink column on a previous page's classic report region.
    The point at which it all starts to go wrong is if I connect to the page as normal, but then EDIT the page, and then try and re-run it.
    The problem with the date format then re-occurs repetitively, no matter which page I try and view. Sometimes pages will load some components, but then generate odd errors with others. e.g. I have a small series of 3 dial charts, all with slightly varying SQL series (same SQL, slightly different where clause). Now I am seeing that 1 may load and 2 may give odd flash errors...
    Right now, I just tried to Export my application - and I still got given the date format error!! Sub-sequent retries allowed the operation to complete successfully.
    The only way I seem to be able to eradicate the recurring errors is to kill all the currently connected ANONYMOUS users in the DB, and then relog to the application.
    - Tony.

  • Wrong date format when import CSV files

    When you import a CSV file that contains fields with German date formats, these fields are displayed incorrectly.
    Example: Contents of the CSV file "01.01.14". After importing the corresponding cell in Numbers has the content "40178".
    A reformat the cell to a date format is not possible.
    How do I get the date in the new version of Numbers displayed correctly?

    It seems that there are more than a few problems related to import/export with non-US localizations.
    I, personally, don't have a solution to your problem. I started to adjust my Language & Region settings to test your problem but it was several settings, I didn't get it right, and I didn't want to mess up my computer so I set everything back to US/English.
    The only workarounds I can suggest are
    Insert a new column into your table and in it put a formula that adds the number to the date 01.01.1904.  Or,
    Edit the CSV in TextEdit to Replace All "." with "/".  This will work if "." is used for nothing else but these dates.
    I recommend the second one if it will work for you. Hopefully Apple is addressing problems such as the one you are seeing.

  • Date format not working in XML Publisher

    Hi,
    We have applied a date format while formatting the report layout using the Template.
    The same is not getting reflected.
    The output is as follows : 5/1/2006 0:0:0
    i.e date with time stamp.
    We require DD-Mon-RRRR format.
    The same has been tried using the Text Form Field Options.
    When applying the same for Number it works . But in case of Date it does not.
    Can anybody who has worked on the same, let us know the appropriate way to do the same.
    Thanks,
    Angelica.

    XMLP does not recognized the field as date. The only format recognized as date is
    YYYY-MM-DDThh:mm:ss+HH:MM
    So, either make the data model to return dates in the above format, and then apply date formatting in XMLP, or do the job on the data model side and return the string in the desired final format (which, again, then will be string, not date for the XMLP)

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Date Format For Importing Invoices

    Hi All,
    I am using the DTW and importing invoices however I am having a problem with the date.  In the docdate, and docduedate field I have entered my dates however once I import them the date for the invoices I have imported are todays date.  Have I missed a field where I should enter other dates or is my date format perhaps wrong?
    Date formats that I have tried are ddmmyyyy, mmddyyyy, yyyyddmm, yyyymmdd.
    Any help will be greatly appreciated.

    Hi there,
    The right format is YYYYMMDD. The dates you are trying to import, are they future or past dates? Under Administration -> Document Settings are the 'Block documents with earlier posting date' and 'Allow future posting date' tickboxes checked?
    Regards,
    Nat

  • Date Formatting Not Updating

    Hello,
    Has anyone else run into the issue of updating a field's format to MM/DD/YYYY.  The information is populated from our ATS system which pulls information from the user/onboarding process.  The PDF field's date format is set to MM/DD/YYYY but only shows as M/DD/YY.  For example, instead of 07/30/2014 it shows as 7/30/14 which is incorrect.  The information from the ATS is populating with the full date that we want, it's just that the PDF doesn't want to display in the same format. 
    Thanks everyone!

    The format script should get triggered when the page that contains the field is shown in Acrobat/Reader. If it's not doing that, it would be helpful to see an example. Can you post one somewhere?

  • Possible to change date format when importing files into Aperture 3

    Just wondering if it is possible to change the format of the date from YYYY-MM-DD to YYYYMMDD when you rename files as they are imported into Aperture 3? I typically rename my files and insert my initials, date the photo was taken, sequence number, camera used and original file name. When I do this in Aperture 3, the date format used includes dashes. I would like to have the file renamed without the dashes in the date. Is this possible?

    You should be able to edit the format in the import presets. I have done this for folder stucture of imports, I believe you can do the same for the file renaming. At the bottom of the drop down box for file naming at improt should be an edit option which brings up the import naming presets, select the "YYYY-MM-DD" and remove the dashes.
    Matt

  • Problem with input data format - not "only" XML

    Hi Experts,
    I have problem with input data format.
    I get some data from JMS ( MQSeries) , but input format is not clear XML. 
    This is some like flat file with content of XMLu2026.
    Example:
    0000084202008-11-0511:37<?xml version="1.0" encoding="UTF-8"?>
    <Document xmlns="urn:xsd:test.01" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance Sndr="0001" Rcvr="SP">
    ...content....
    </Document>000016750
    Problems in this file is :
    1. data before parser <? xml version="1.0"> -> 0000084202008-11-0511:37 
    2. data after last parser </Document> -> 000016750
    This data destroy XML format.
    Unfortunately XI is not one receiver of this files and we canu2019t change this file format in queue MQSeries ( before go to XI) .
    My goal is to get XML from this file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Document xmlns="urn:xsd:test.01" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance Sndr="0001" Rcvr="SP">
    ...content....
    </Document>
    My questions:
    1. Is any way or technique to delete this data 0000084202008-11-0511:37  in XI from this file ?
    2. Is any way to get only XML from this file ?
    Thanx .
    Regards,
    Seo

    Hi Buddy
    What is the XI adapter using?
    If you use inbound File adapter content conversion you could replace these values with none and then pass it to the scenario.
    Does that help?
    Regards
    cK

  • System Wide Data Formats Not copied from Development to test

    I am using OBIEE 10g. When I copy my dashboards and reports via the Catalog Manager from the development environment to the test environment the system wide data formats are not being copied over. That is, all the ones that I saved under "Column Properties->Column Format->Save As System Wide Default" are not being copied over. I am using archive and unarchive in the Catalog Manager to move from development to test environment. So my question is where are these system-wide defaults stored and what do I need to do get them copied over?
    Thanks in advance!

    Hi
    the system wide column formats are stored in catalog under system/metadata folder.
    copy this folder from dev env to test env. via catalog manager, restart ps.
    assign points if found helpful.

  • Australian Date format not American

    when running reports errors can occur when date prompts are added to webi query filters because it using American date format instead of Australian. How to change this so that the date format is Australian?
    I have search the net and gone through below but still a problem:
    1.          
    D:\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\odbc\sqlsrv.prm
    Change
            <Parameter Name="USER_INPUT_DATE_FORMAT">'mm/dd/yyyy HH:m:s'</Parameter>
    to
            <Parameter Name="USER_INPUT_DATE_FORMAT">'dd/mm/yyyy HH:m:s'</Parameter>
    2.          Server control panel settings changed all to Australian
    3.          Deski > options > English (Australia)
    4.          infoView preferences:
    -     Product locale = user browser
    -     Current time zone = local to web server
    -     Preferred viewing = English (AUS)
    CMC preferences:
    -     Product locale = user browser
    -     time zone = Canberra, Sydney, Melbourne
    -     Preferred viewing = English (AUS)
    what else do change/check?

    What reports are these for? I.e Deski/ Webi/ Crystal. Also, what version of BOE XI 3.x are you using ? What SP/FP level are you on?
    I am able to change the change the date format to Australian by setting the Preferred Viewing Local to 'English (Australia)' . If you're in Australia, using the browser locale should work.
    Note: I tested with Webi reports.
    Best,
    Srinivas

  • How to modify Bridge CS6 default sub-folder date format while importing?

    How could I modify Bridge CS6 default sub-folder date format when we are importing images from a connected camera? Default format for shooting date is aaaammjj. I would like instead aaaa_mm_jj. How could I add "_" to the date format?

    You only can do so after the import process using a third party app called A better finder Rename,  originally designed for Mac but they seem to have a Windows version also:
    http://www.publicspace.net/ABetterFinderRename/

Maybe you are looking for

  • Launching Integration Directory in PI 7.1

    Hi   I'm trying to publish service to registry. Read a document regarding the publishing services through Integration Directory. But how do i launch the Integration directory using PI 7.1 ??    And Is a TREX Server and TREX services mandatory to be a

  • "Category" field in the "Summary" view of Project Centre (2013)

    Hi, What is this "Category" field we can insert in the Summary view of Project Center. I dragged several projects in a specific security Category (Project Server permission mode) but this field is always empty. Thanks

  • How can I recover app store icon

    My apps store flash and go before I can get in it

  • Upgrade question........ sorry 1 more

    I have A macbook white, early 08. I just bought my upgrade from audiomidi for 99$. im not ready to upgrade my main studio but i want to upgrade my macbook. simple question, will my key still work in my main studio or will i need to upgrade both. I di

  • Photoshop Manual auf Spanisch?

    Hi, kann mir wer sagen, von wo ich ein spanisches PDF-Handbuch für Photoshop CS2 aus sicherer Quelle downloaden könnte oder hat wer sowas auf seinem rechner? Würde es für einen Freund in Südamerika benötigen! Muchas gracias! E.