Options

Webservice Problem with decimal number

stonystony Member Posts: 122
edited 2014-10-22 in NAV Three Tier
Hi there,
We have a C # program that accesses NAV using Web services. Among others, decimal numbers are written to a table.

The server on which the Web service is running is installed in German. Also, the user has deposited as language 3079 (German-Austria) in the user adjustment.
And in the CustomSettings.conf file of the service, I also set the entry
<add key = "ServicesCultureDefaultUserPersonalization" value = "true" />.
But the decimal number will be write with point and not with a komma.
If I set this key to false then decimal number is correctly (with the comma) but the error messages are then in English.

I have NAV13 R2 with Rollup 9.

thanks
stony

Comments

  • Options
    ppavukppavuk Member Posts: 334
    I think webservices are always use US language, so date, time, decimals are in US format.
  • Options
    stonystony Member Posts: 122
    But how can i solve it. And why it work´s in NAV09 R2.
  • Options
    stonystony Member Posts: 122
    Hello, I have now made ​​some tests.
    The problem with the comma only occurs when I insert or modify decimal values about a codeunit ​​in a table.
    If I do this on a page then it works.
  • Options
    ppavukppavuk Member Posts: 334
    stony wrote:
    But how can i solve it. And why it work´s in NAV09 R2.

    It used to work in some earlier builds, but after one of hotfixes has been changed to always use W1. It is actually reasonable, as you can't predict what language third part application will use accessing webservice, so it makes sense to say "it is always w1"
  • Options
    stonystony Member Posts: 122
    OK, but how can I solve this problem.
    I also don´t understand why it works with a page.
  • Options
    Campl3rCampl3r Member Posts: 4
    I do believe this is bug that microsoft reintroducedreintroduced with NAV 2013, as there is a fix avaible for this problem for NAV 2009 (KB960268).
  • Options
    Rikt-ItRikt-It Member Posts: 37
    Try to see the XML transfered.

    Also look at the Nav format function there is nowadays an option #9 regarding XML.
    Regards
    Christer in Stockholm, Sweden
  • Options
    stonystony Member Posts: 122
    Microsoft has informed us that it should be fixed in the next rollup.
Sign In or Register to comment.