Bad data returned using DSEE6.3: JDBC Data View to DB2 for CHAR fields

I have created a JDBC dataview to a DB2 database using com.ibm.as400.access.AS400JDBCDriver. When using ldapsearch, the data returned is inconsistent with that which is on the database. The DB2 table has data types of CHAR, DECIMAL, and NUMERIC. For the Decimal and Numeric fields, I am not experiencing a problem. The data returned here maps exactly to that which is on the table. For CHAR fields, I get mixed results.
When defining JDBC attributes in DSEE, I mapped the sql-syntax attribute accordingly for each corresponding attribute on the DB2 table. As a side note, I also configured each attribute so the ldap-syntax = ces (Case sensitive). Also, I could not find a way to define the length of the char for my JDBC attribute. I'm not sure if there's supposed to be a way that I just haven't figured out yet.
For the CHAR fields, in some cases I get what's on the data source. In other cases, I don't. I've tried to find a pattern but have been unlucky so far. Many fields with length of just 1 come back ok, but a few of length 1 are incorrect. Some fields bigger then length 1 are ok, but the majority come back with garbage. Coincidently or not, it almost looks like a hash of some sort. I'm wondering if there is a character on the datasource that's causing problems with DSEE figuring out where the end of the string is. I'm using NetBeans to look at the database, but I don't have direct access to the DB2 database at this point to see the data directly.
Has anyone experienced something simliar or have any suggestions as to further research of this problem?

Upon further testing I have found that the problem mentioned exists only when using ldapsearch. When I used an ldap browser, the char fields looked as expected.

Similar Messages

  • "Bad Data, too many results for shortname"

    Every 10 minutes since October 13 the wikid error log has recorded the following error message:
    *"Bad Data, too many results for shortname: username"*, always naming the same user, who is not actually doing anything.
    Coinciding with that message at the same time every 10 minutes, the system log records 13 or 14 of the following:
    *"Python\[15645\]: ••• -\[NSAutoreleasePool release]: This pool has already been released, do not drain it (double release)."*
    15645 is a process owned by _teamserver, which would appear to confirm the connection between the python and wikid error messages.
    Last clue: The messages (I have determined in hindsight) started while I was setting up the server to do vacation messages. The user named in the "Bad data" messages was the user who wanted to (and did) set up a vacation message at that time. They worked, too.
    Anyone have any ideas about what is going on and how to fix it? BTW, google does not find even one page where this "Bad data" error message is mentioned.

    Thanks for your response. To answer your questions:
    +Are you using AD for your directory?+ No. OD master only.
    +Are there users with duplicate shortnames in your directory system?+ No, and to double check, I searched with WGM and only the one came up.
    +As a bit of background, the wiki server keeps an private index of user and group information so we can track user preferences, and the "Bad Data, too many results for shortname: username" error is triggered when we do a lookup in that index for a particular user and we (unexpectedly) hit duplicate entries. Are you seeing an issue with using the software, or just an annoying log message?+ It's hard to say (for me) what might be related. The directory or wiki related issues with the server include:
    • A memory issue with slapd that eventually causes it to crash. (preceded by lots of "bdbdbcache: db_open(+various: sn, displayname, givenname, mail, maybe others+) failed: Cannot allocate memory (12)" and "logging region out of memory" and "index_param failed" errors.
    • The wiki is slow, despite very light use.
    • Wake from sleep (network clients with authentication required) can be very slow. Several minutes even.
    Any suggestions you may have would be appreciated.

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • Addition of a Field in EKKO/Data not getting populated for that field

    Hi All,
    I have added a Z Field in EKKO Table through the Append Structure "CI_EKPODB".
    There are around 2000 records in EKKO and for all the records that Z field is Blank.
    But, when I write a Select Query in Program to Fetch the Records where that Z Field is BLANK, I get only 50 Records.
    The same happens when I Execute SE16 for EKKO by giving condition Z Field = INITIAL. I get only 50 records in the output.
    Please help me understand why I dont get all the Records where that Z Field is INITIAL?
    Is any customization required or is this a Technical Issue?
    Please help.
    Thanks in Advance.

    hi rohan,
    if you are adding a field in a table  by append structure then make that field as ZZ instead of Z to differentiate it from normal fields.
    now when you have created the field in a append structure then if have not checked the initial flag.thats why u are getting this data inconsistency.
    this is because earlier 2000 entries are prestent in the table , now when you add another field in the table then that field will not have value for those 2000 records.
    now when you create the fiels select the init flag field,if you select this then new flag field will  NOT NULL,so initial values will be filled for that field for existing 2000 records.
    Note : NULL and INITIAL are different things, NULL means not defined and initial means which is having its initial value.
    check that init flag and u will get those 2000 records, you are getting inconsistent data now becuse value for that field is null ie not defined.
    hopr this will solve ur post and u wil get the concept of append structure.
    Thanks and regards,
    Tanmaya

  • Which Master data Source is available for the field VBUK-GBSTK (Doc Status)

    Hi
    Which Master data Source (Attr) is available for the field VBUK-GBSTK (Document Status).
    Please help me.
    Thanks
    Mannev.

    Hi
    Thanks for your reply.
    That is Transaction data source. I want master data source.
    Thanks,
    Mannev.

  • SBL-DAT-00398 error msg for User Field Validation

    Hi All,
    I have created the following field validation on the User field "Division": Len([<Division>])>0 AND InStr([<ltValidation_OU_ITAG>],[<Division>])>0, As the "Division" field is free text, the porpuse of the validation is to prevent the user from entering in this field any value that is diffrent from the ones available in the custom field "Validation OU" via the User Owner Page Layout. The validation works OK for Admin Role via the User Admin Page Layout but a SBL-DAT-00398 error msg stating " Field '<Division>' does not exist in definition for business component 'Occam Current Employee' " appears when users with other roles are trying to update this field via the User Owner Page Layout.
    I have contacted OD Customer support and they validated this in several POD saying this "is most likely a defect in the application" and a CR will be submitted to dev team to fix it sometime in the future.
    I am wondering though if support isn't making life easy here stating the above...:
    1. Anyone encountered this error before? (couldn't find any trace for this on My Oracle Support)
    2. Anyone aware of field validation limitations for the 'User' entity?
    3. Workaround suggestions are welcomed
    10X for you help!
    Alex.

    Error(), fatal(), info() and warn() issue FacesMessages that get picked up by the MessageGroup component.
    By adding in the uicomponent you can target the facesMessage so that it gets picked up by the Message component associated with the field causing the error.
    But, to get the label to show the error as well, you need to throw a validationError. See this tutorial for more informaiton:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html
    Lark

  • Adobe forms:Data view palette not showing any fields present in the context

    Hi Experts,
    I am trying to create a static adobe form by following a step-by-step tutorial.The steps I have followed are:
    1. Created an Interface with just one field in the Import parameters (apart from the default one).
    2. Created a form by using that interface and included that field in the context .
    3. Activated the form and wennt to the layout of the form.
    4. I should be seeing that field added and activated in the context in the form but its not there.
    What could possibly be the reason for it.Please guide me.
    Thanks and Regards
    Abhishek

    Hi,
    I am working on Adobe Form when I open it in change mode I am unable to see the below options in it.
    Always I could see only the preview of pdf output. I tried for the option in Palette by right click on the pdf form->Right Click->Palette but it has options Border,Accessibility etc but no option is related to DataView or Hierarchy palettes.
    I am looking for Dataview and Hierarchy Palettes to be displayed on the left side of the form.
    Please share if any ideas.
    Regards,
    Rafi

  • SNP: How to "lock" initial column in SNP data view (SCM7.0 / SP8)

    Hello experts,
    after a change from SCM5.0 to SCM7.0 we are seeing a change in a tiny but very important capability and we are trying to re-establish it in SCM7.0. If somebody has an idea how to address this that would be of great help:
    As of SCM5.0 users were able to lock the INITIAL column of an SNP DataView so that the column is the default start column and not the next future column. In SCM5.0 the solution had 2 elements
    A) set a user parameter in SU01 called /SAPAPO/SDP_STARTCOL to value X
    +
    B) double-click the header of the initial column in the SNP data view
    As of SCM7.0 this is not supported anymore. There is a certain user setting in an SNP data view (Settings --> Others --> "Period from last selection"  ) but this is not behaving to our needs and SAP is saying what we want from SCM5.0 is a non-supported feature in SCM7.0.
    So, does anybody have an idea how to solve this. I checked UserExits and BAdis in SPRO for interactive planning - there all kind of stuff but nothing having a method to allow / perform a "column locking" in an SNP Data view. Thanks for any tip or hint here.
    Regards
    Thomas

    Hello jejeje,
    thanks for your efforts - what you describe is something users have found out on our side too - a problem remains: you can save this setting "Period from last Selection" and it brings you to the INITIAL column but: once you have scrolled forward in the SNP data view (so that the INITIAL column has disappeared) and you leave the SNP data view or select another product ... it "remembers" that you last time left the data view NOT having INITIAL column as a start column.
    So, my users say that they scroll back to INITIAL column before selecting another part or using another SelectionID or leaving the SNP data view ... and of course they hate this since they have to do this a few hundred times a day worse case.
    We had a call open to SAP on this and I told them that is about productivity and usabaliity issue moving from SCM5.0 to SCM7.0 - but they have nothing more to say than "not supported anymore" - and the ultimate solution is / will be to modifiy SAP SCM standard coding - unless somebody from SAP is reading the discussioons here and is dedicated to help their customers which pay millions every year into SAP support fees.
    Thanks for your responses and effort !
    Regards
    Thomas

  • BAD DATA FORMAT using cl_gui_frontend_services= gui_upload

    Hello SAPients!
    I'm using the method cl_gui_frontend_services=>gui_upload to upload a file to my program like this
    CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lvs_input_f1
          filetype                = 'ASC'
        CHANGING
          data_tab                = in_rec[]
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
    The SY-.SUBRC field always returns with a value of 8 (Bad data format?). The thing is that the last field of the structure IN_REC is of type i (integer) and I think this is the problem. I modified the file with a text editor and set the last field with 2, 4, 8 and 16 chars but I always receive the same error. I can't change the last field to char. Does any one have an idea of what is the problem? How can I ensure that the last field have an integer value?
    Thank you.

    Ok, I have modified the code a bit,  you might want to try it.  First upload to a table of type STRING, then move the values to the other internal table.
    report zrich_0001 .
    data: begin of in_rec occurs 0,
             matnr(18),        "Material Number
             bwkey like mbew-bwkey,         " For Plant
             werks like mbew-bwkey,         " Add Plant
             type(2) type c,                " TYPE.
             cname(50) type c,              " Changble Name
             bom(1) type c,                 " BOM Usage
             task(2) type c,                " task type
             verid_nd like ckmlmv001-verid_nd,  "Production Version
             perc(16) type c,               " Percent for Plant1
    * above are user inputs ; below are program flag.
             flag(1) type c,                " Program flag.
             kalnr like ckmlmv001-kalnr,     "
             mix_flag(1) type c,                " Program flag.
             cnt type i,
          end of in_rec.
    data: istr type table of string with header line.
    parameters: p_file type localfile.
    at selection-screen on value-request for p_file.
      data retfiletable type filetable.
      data retrc type sysubrc.
      data retuseraction type i.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          multiselection    = abap_false
        changing
          file_table        = retfiletable
          rc                = retrc
          user_action       = retuseraction.
      read table retfiletable into p_file index 1.
    start-of-selection.
      perform open_file.
    *&      Form  OPEN_FILE
    form open_file.
    *------------------------ Begin Change - UN001 ------------------------*
    *  CALL FUNCTION 'WS_UPLOAD'
    *    EXPORTING
    *      filename = input_f1
    *      filetype = 'DAT'
    *    TABLES
    *      data_tab = in_rec.
      data:
        lvs_input_f1 type string.              " To store filename
    *    lit_mat_tbl  TYPE TABLE OF lt_raw_tab, " To store file lines
    *    lwa_mat_tbl  TYPE lt_raw_tab.          " Work area
      lvs_input_f1 = p_file.
    *    lvs_input_f1 = input_f1.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = lvs_input_f1
          filetype                = 'ASC'
        changing
          data_tab                = istr[]
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          others                  = 19.
      if sy-subrc ne 0.
    *    WRITE / text-e01.
        message e000(fb) with text-e01.
      endif.
      loop at istr.
        in_rec = istr.
        append in_rec.
      endloop.
      loop at in_rec.
        write:/ in_rec.
      endloop.
    *------------------------ End Change   - UN001 ------------------------*
    *SKD 08/02/06---------DEVK980441-----------v
      delete in_rec where perc = 0.
    *SKD 08/02/06---------DEVK980441-----------^
    endform.                    "OPEN_FILE
    Regards,
    Rich Heilman

  • Retreiving data from 2 tables using a sender JDBC Channel

    Hi all,
    We got anew requirement where we have to select data from 2 tables and update fields in 2 tables at the sametime.
    I have a few queries regarding this.
    Can we retrieve data from 2 tables using select query in sender JDBC channel?
    If yes, how we can achieve this?
    Can we use inner/outer joins in the select query?
    Can we update field of 2 tables using the Update query in Sender JDBC channel?
    Your help is greatly rewarded.
    With Regards
    Sudha.

    Hi,
    Even i have the same requirement where data has to be read from 2 tables and later update the falg once done .
    SELECT query :
    SELECT t1.KUNNR,t1.SETT_KEY,t1.QUART_START,t1.QUART_END,t2.PAY_METH,t2.MAT_NDC,t2.AMOUNT   FROM TSAP_REBATE_MEDI t1  INNER JOIN  TSAP_REBATE_LINE t2  ON  t1.KUNNR=t2.KUNNR AND t1.SETT_KEY=t2.SETT_KEY  WHERE  t1.PROCESSING_STATUS = 'N' AND t2.PROCESSING_STATUS = 'N'
    This is working fine.
    Can somebody help me with update query with this. where flag PROCESSING_STATUS has to be updated with 'P'.
    I tried a lot but couldnt get the answer
    Br,
    Manoj

  • Bad Data from Cache after infoprovider update

    Hello,
    We have queries running off of a multi-provider consisting of 4 cubes.  Occasionally when we generate quires after deltas have been loaded into the cubes we get incomplete or bad data.  Deactivating the cache or deleting the cache and runing the query again always seems to resolve the problem.
    Any thoughts on what the issue might be and how to resolve?
    Thanks
    Stan Pickford

    Stanley,
    after any data change in an InfoCube, table RSDINFOPROVDATA should contain the timestamp. This timestamp is used by the OLAP cache to determine if new data has been loaded or if the cache is still valid.
    I'm not aware of any problems. If it is reproducible and you can't fix it, open a message to SAP Support.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Bad data added in Open Dataset for output in Binary mode

    Hello,
    I am getting random bad data being added to the end of the file that is created on the file server when I run the Open Dataset for output in Binary mode.  This data sometimes looks like information about the Unix file server.  If I do the Open Dataset in Text mode, it does not add the extra bad data.
    ** transfer file to Unix File server
           DATA: LIN TYPE P.
                                                                                    OPEN DATASET P_APPFIL FOR OUTPUT IN BINARY MODE.
                                                                                    DESCRIBE TABLE XML_TAB LINES LIN.
                                                                                    IF LIN EQ 0.
             EXIT.
           ELSE.
             LOOP AT XML_TAB.
               TRANSFER XML_TAB TO P_APPFIL.
             ENDLOOP.
           ENDIF.
                                                                                    CLOSE DATASET P_APPFIL.
    Running the program 2 times with the same variant will give different results.
    For example, the data in file should end with </cPedigreeXML> but it added data as shown below:
    </cPedigreeXML>8        ˜        I   X-UNKNOWN                                                 9            œ        I   X-UNKNOWN                                                10   
                C   X-UNKNOWN   
    Then, when the program was run again with the same selections, it did not add the erroneous data at the end.
    This is a real problem because the bad data that gets added causes the file to error in the application.  Any help would be greatly appreciated.
    Thanks,
    Bob

    Hi Bob,
          Use CLEAR statement after TRANSFER statement and check once.
         IF LIN EQ 0.
             EXIT.
           ELSE.
             LOOP AT XML_TAB.
               TRANSFER XML_TAB TO P_APPFIL.
               <b>CLEAR XML_TAB.</b>
             ENDLOOP.
           ENDIF.
    Thanks,
    Vinay

  • Get-WMI Object (0x800706F7) - The stub received bad data

    Hello there,
    i have an problem related to the above error..
    When i do a remote wmi call and pass the credentials like this (from an script)
    $passS =[ServerEye.PowerShellAPI]::Decrypt($pass)
    $securePass = convertto-securestring $passS -asplaintext -force
    $credential = New-Object System.Management.Automation.PsCredential("$domain\$user",$securePass)
    $buffer = gwmi -Query "select * from Win32_PerfFormattedData_MSExchangeRpcClientAccess_MSExchangeRpcClientAccess" -Credential $credential -Authentication Default -ComputerName $computer -ErrorAction Stop
    i sometimes get the above error with the stub received bad data...
    When i open a new powershell and do the wmi request it works.. When i close the powershell.exe and execute the above code again from the same script it works. But sometimes (totally) random this issue occurs for the existing powershell.exe process and will
    never go away till i close the process (which is not option, since i am using a deamon which runs script from a queue folder.. and this deamon runs for a long time.. 
    When i restart the server.. this issue never occurs for a long time but then suddenly reoccurs. 
    Anyone has an idea? I found one similar thread, but in this the solution was to pass the credential data in a server\user format or an domain\user format, which i am doing
    Is this a bug? Is this an scripting flaw from my side? What can i do against it... Any help would be really cool!!

    Thank you in advance for your answer. This is somehow what i expected..
    Sadly those are not our own servers. They are from a customer that is using our script to monitor several aspects.. and of course the software is always to blame :D (From a customer perspective).
    But i will inform the customer because this connection issue could be absolutly possible since i also see powershell sessions that get broken due to server communication..
    The only thing i really do not understand is, why it does not "repair" itselfs. What is the difference between closing the powershell.exe or simply re-executing the same get-wmiobject request..  I dont know how get-wmiobject manages its connection..
    but shouldn it do a new connection to the remote-server for each call?

  • Bad dates after downloading a single roll with old pictures.

    Using iPhoto 6.0.5 I downloaded a roll from a camera that I rarely use, with dates starting in 2005 and ending recently. Download went OK but all subsequent rolls (2) have bad "original date" bad "digitized date" and bad "modified date". They are off by a couple of years and as far as I can tell have no correspondence with the unusual roll. Tried to correct by creating a new roll but dates were still bad after. As far as I can tell the times seem to be correct. Dates on identical downloads to backup Powerbook are correct!
    TIA
    Powerbook G4 12"; iMac Duo 20"   Mac OS X (10.4.9)   768 Mb; 2 Gb
    Powerbook G4 12"; iMac Duo 20"   Mac OS X (10.4.8)   768 Mb; 2 Gb
    Powerbook G4 12"; iMac Duo 20"   Mac OS X (10.4.9)   768 Mb; 2 Gb
    Powerbook G4 12"; iMac Duo 20"   Mac OS X (10.4.8)   768 Mb; 2 Gb

    Richard:
    If you can export those files out of iPhoto you can batch correct the Capture Date (they are from a digital camera are they not?) with PhotoInfo. Then reimport into iPhoto and the new dates will be recognized. You can do a search for "file date" at VersionTracker.com to get a number of potential applications that can do the job.
    If they do not have an EXIF Capture Date then you can use other 3rd party applications to change the Created Date of the file and have iPhoto use that.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Bad date format string in Crystal 2013

    I have a report that I wrote a formula to convert the date from a number to a date recognizable by the end user. It works fine. The user then wanted to add another field to the same report. Same type of deal, so I copied the first formula into a new formula for the second conversion and simply changed the file name that it was pulling from. When I check the formula, it comes back no errors found, but when I insert it into the report, I get an error that says "Bad date format string" it's the exact same formula that runs fine in the field next to it. What am I  missing? The exact formula as used is;
    date(mid(totext({File.name},0,' '),5,2)+'/'+ right(totext({File.Name},0,' ' ),2) + '/' + left(totext({File.Name},0,' '),4)) It is intended to take it from 20140405 to 04/05/2014.
    Any help would be greatly appreciated. As I am new to Crystal reports and by no means a database administrator by trade.
    Thanks
    Bob V.

    hi Bob,
    you can use something like the following
    stringvar s:= '20140405';
    date(s[1 to 4] + '/' + s[5 to 6] + '/' + s[7 to 8])
    and if you want to be safe and use a check, then you can use something this
    stringvar s:= '20140405';
    s:= s[1 to 4] + '/' + s[5 to 6] + '/' + s[7 to 8];
    if isdate(s) then date(s);
    -jamie

Maybe you are looking for

  • Access Exchange Service From SharePoint 2013 Custom Web part getting The request failed with HTTP status 401: Unauthorized.

    I want to Fill a drop down with Outlook Meeting of Current log-in user in SharePoint 2013 web part for default credentials I am using the following code  ExchangeServiceBinding binding = new ExchangeServiceBinding();             ServicePointManager.S

  • RSS photo feeds for screen saver

    I have been trying to find a few good RSS photo feeds to add to the screensaver in Leopard but am not having any luck. The only one I could find was a Rolling Stone mag feed (http://www.rollingstone.com/rssxml/photos.xml) but the pics are really low

  • Logging actionscript errors from a projector

    Hi All, We are current working with a public display installation, and we are looking for a way to log any Actionscript (ver 3) errors Flash runs into while it is running. Is there a way to set a projector file to save a list of errors it encounters

  • Question about sap.ui.model.Sorter

    I am building a simple list that I would like to sort: The list displays fine, but the sorting is not working ... seems like I am missing something simple? Thoughts? Thanks, Mike

  • Calling anonymous role from html

    Hi All, I'm having a problem difficult to find solution. I have created a role and assigned anonymous user group to it. Then I've created an html and placed it inside KM and gave link - http://<host>:<port>/irj/portal/anonumous into this html. Now, w