Skip to main content
Member
Jun 27, 2024 2:12 PM UTC

Culture Setting Impact on Dataload

I have couple of Connector DS and multiple Flat file DS in OS.Currently, the client wants to include Eurpoean culture for some of the users. I noticed that the dataload is behaving weirdly. The same data load now multiplies the data into 100 for a Eurpoean user/ what are the possible places where this should be fixed? Please note that I have multiple Parser,Conditional BR running on DS and TR as well.

 

4 replies

Employee - Guide
Jun 27, 2024 2:20 PM UTC

Hi OS_Love,

Look out for instances on those Business rules where you converting Decimal Values to Strings for use in formulas. 

A good way to handle it is by using Formula Variables:

api.Data.FormulaVariables.SetDecimalVariable(VariableName,DecimalAmount)

To be used in formulas Like:

api.Data.Calculate("A#Acc1= $VariableName * A#Acc2")

 

 

 

 

Employee - Advisor
Jun 27, 2024 4:26 PM UTC

Hi, this should shed some light into the dark on this general topic:

Building International Applications - October 2022 - OneStream Community (onestreamsoftware.com)

Jun 27, 2024 4:44 PM UTC

If the field type of the value column in the data table passed to the parser is numeric, the parser converts the column numbers to text using the user's culture. The simplest way to avoid this is to set the field type of the value column to String. They system will pass the value as-is, keeping the source formatting.

A more roundabout approach is to add an xfbr rule to the Thousand Indicator and Decimal Indicator fields of the Data Source so they are updated dynamically based in the user's culture. The document Henning references contains an example should you need one, but it should not be necessary.

Employee - Sage
Jun 28, 2024 9:39 AM UTC

If you can't fix it with the suggestions above, I would suggest to build a very very simple test case (ideally on Golfstream) to reproduce the issue, and file a case with Support.