Skip to Content
author's profile photo Former Member
Former Member

Data format change when reading from a csv file

Xi is reading/changing a data field format when reading from a csv file.

A part number field with dashes between numbers is being interpreted as a date format. See example:

10-0341-7 is being changed to 10/03/417

The same problem exists for text values that contain only numerical characters; Crystal reads them in as a number data type and leaves any values that contain alpha characters blank.

How do we prevent this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2009 at 04:24 AM

    Hi,

    Try to put these fields in text box and then see the result

    Regards,

    Misra P.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2009 at 08:49 PM

    This is a WAG, but do you have quotes around the values in question? That might be required...

    HTH,

    Carl

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2009 at 12:20 PM

    Thank you all for your answers. We tried the first two without success. We have not tried the last one but will make a note and try this at a later date.

    The solution to this specific problem was to use another analytic system which actually took Crystal Reports out of the whole endeavor.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.