web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Transformation rules in Data Exchange framework

(0) ShareShare
ReportReport
Posted on by 20

I am trying to get two decimal places.

I thought this would work but it doesn't:

decimal.png

*This post is locked for comments

I have the same question (0)
  • Hannes Holst Profile Picture
    5,767 on at

    Hi,

    "Data Format" is used to identify the source value only.

    It doesn't have an impact in the target value which is used in NAV.

    The field (which the value is imported to) can control the decimal places.
    Go into the Properties of the field, the property is called "DecimalPlaces".

  • SamCha Profile Picture
    20 on at

    I'm using a mapping definition, and it is defined like this:

    columnDef.png

    It still ouputs "1008" when the amount is 100.80

  • Hannes Holst Profile Picture
    5,767 on at

    Hi,

    "Data Format" is used for Date-values only.
    For Decimal-values, the column "Data Formatting Culture" is used.

    But, this will not help you to interpret "1008" as "100.80".
    You can create a Mapping-Codeunit to solve the problem.

  • SamCha Profile Picture
    20 on at

    It's the other way around, I am exporting the decimal value to a CSV file.

    The value I am getting now in the CSV is "1008", but I want "100.80". The culture is set to "en-us"

  • Hannes Holst Profile Picture
    5,767 on at

    hello,

    you have to post more information how you generate the CSV.

  • SamCha Profile Picture
    20 on at

    I am using the Data Exchange Framework (comes basic with NAV2018).

    I debuggued the code and I really see the line where it uses the FORMAT function based on the format string I provided.

    It works fine for my dates with "<Year4,><Month,2><Day,2>", but I can't make the decimals work for some reason.

    To make another test, I put the format to "#.00", but it then exported literally to "#00". Looks like something really doesn't like the dot.

  • Verified answer
    SamCha Profile Picture
    20 on at

    I found the problem, somwhere in the export framework it forcefully removed dots from decimal values... so I removed that and now everything works fine.

  • Naeem A Choudhary Profile Picture
    5 on at

    Hey SamCha,

    I am actually trying to remove the dot from decimal value. I would appreciate if you can share where did you find the configuration that removes dots.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans