OFBiz
  1. OFBiz
  2. OFBIZ-2534

Datafile converts string decimal input to another number.in xml output

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Release Branch 09.04
    • Fix Version/s: Release Branch 09.04
    • Component/s: None
    • Labels:
      None
    • Environment:

      9.04 framework/datafile

      Description

      datafile conversion to entity file take a string with a decimal and added a lot of numbers to it
      this is the Product entity and the field is weight.
      the orginal string was 9.15
      the output was 9.1499996185

      there were no errors in any of the logs.

      1. importTablesexample.xml
        3 kB
        BJ Freeman
      2. Product_Data_327496_1.tab
        9.20 MB
        BJ Freeman

        Issue Links

          Activity

          Hide
          BJ Freeman added a comment -

          yes, but first have to solve the out of memory problem
          https://issues.apache.org/jira/browse/OFBIZ-3558

          Show
          BJ Freeman added a comment - yes, but first have to solve the out of memory problem https://issues.apache.org/jira/browse/OFBIZ-3558
          Hide
          Jacques Le Roux added a comment -

          BJ,

          Will you provide also a new patch for this one?

          Show
          Jacques Le Roux added a comment - BJ, Will you provide also a new patch for this one?
          Hide
          BJ Freeman added a comment -

          supplier of the data has changed for formats and show need to bullet proof the code for bad import files.

          Show
          BJ Freeman added a comment - supplier of the data has changed for formats and show need to bullet proof the code for bad import files.
          Hide
          BJ Freeman added a comment -

          will be testing this weekend on 9.04
          some reason trunk is not updating correctly on my system.

          Show
          BJ Freeman added a comment - will be testing this weekend on 9.04 some reason trunk is not updating correctly on my system.
          Hide
          BJ Freeman added a comment -

          give me about a week to recover and I will test on both the trunk and 9.04

          Show
          BJ Freeman added a comment - give me about a week to recover and I will test on both the trunk and 9.04
          Hide
          Jacques Le Roux added a comment -

          BJ,

          I just realize that this is open for R9.04 and OFBIZ-2702 fixed only trunk could you check please ?

          Show
          Jacques Le Roux added a comment - BJ, I just realize that this is open for R9.04 and OFBIZ-2702 fixed only trunk could you check please ?
          Hide
          Jacques Le Roux added a comment -

          Hi BJ,

          Should we close ?

          Show
          Jacques Le Roux added a comment - Hi BJ, Should we close ?
          Hide
          Jacques Le Roux added a comment -

          Hi BJ,

          OFBIZ-2702 is now fixed/closed, could you please try and see if we can close all related issues you reported ?

          Thanks

          Show
          Jacques Le Roux added a comment - Hi BJ, OFBIZ-2702 is now fixed/closed, could you please try and see if we can close all related issues you reported ? Thanks
          Hide
          BJ Freeman added a comment -

          I believe the rounding error in https://issues.apache.org/jira/browse/OFBIZ-2702
          is part of what makes these errors

          Show
          BJ Freeman added a comment - I believe the rounding error in https://issues.apache.org/jira/browse/OFBIZ-2702 is part of what makes these errors
          Hide
          BJ Freeman added a comment -

          Thanks Dan.
          the oringal file has only two deciimal places but all generated one are more that two decimals and not the exact number.
          Glad to know it was not machine specific
          will be digging into the code more this weekend.

          Show
          BJ Freeman added a comment - Thanks Dan. the oringal file has only two deciimal places but all generated one are more that two decimals and not the exact number. Glad to know it was not machine specific will be digging into the code more this weekend.
          Hide
          Dan Dodd added a comment -

          I tested this and it made a 10 MB file. with 2 items weighing in at 9.1499996185 the stereo preamp and the Bunn brewer.

          Show
          Dan Dodd added a comment - I tested this and it made a 10 MB file. with 2 items weighing in at 9.1499996185 the stereo preamp and the Bunn brewer.
          Hide
          BJ Freeman added a comment -

          this is the data file that the def file is used on.
          you can compare the weight before and after.

          Show
          BJ Freeman added a comment - this is the data file that the def file is used on. you can compare the weight before and after.
          Hide
          BJ Freeman added a comment -

          this is the table def for the data file.
          so if someone wants to test on thier machine.
          it points to the new xsd

          Show
          BJ Freeman added a comment - this is the table def for the data file. so if someone wants to test on thier machine. it points to the new xsd

            People

            • Assignee:
              Unassigned
              Reporter:
              BJ Freeman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development