Desktop version

Main > Forum > 1C:Enterprise Platform > Bugs and functionality requests to 1C:Enterprise platform > Import excel sheet into spreadsheet doc have problemas with locale

Forum

Search UsersRules
Import excel sheet into spreadsheet doc have problemas with locale
#1
Interested
Points:: 15
Joined:: Oct 27, 2011

If the default locale is spanish and using thin client load excel sheet into spreadsheet document, the decimal separator would be recognized incorrectly so the decimal part would be considered as part of integer.

Profile
#2
Interested
Points:: 15
Joined:: Oct 27, 2011

Guys, any help here?

Profile
#3
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Alexey,

We are still investigating the issue and hope to return to you with a solution, a workaround, or a fix forecast soon.

Best regards,
Vladimir Gurov

Profile
#4
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Alexey,

Could you please send us a sample Excel file whose loading to a spreadsheet document results in the issue you mentioned?

Best regards,
Vladimir Gurov

Profile
#5
Interested
Points:: 15
Joined:: Oct 27, 2011

You can use absolutely any file with decimals. Important that you should set the default locale of windows computer to Spanish and run thin client from that computer. Server locale does not matter.

The file will load fine, but decimal point would not be considered as decimal separator.

Profile
#6
Interested
Points:: 15
Joined:: Oct 27, 2011

Example

Profile
#7
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Alexey,

Got it, thank you.

We need extra information on the details how you load Excel file's data to your spreadsheet document. There are plenty of methods how to do this, and so far we do not know which of them you use to cause the issue.

Best regards,
Vladimir Gurov

Profile
#8
Interested
Points:: 15
Joined:: Oct 27, 2011

Vladimir, I have managed to solve the problem. The issue was that if you convert numeric field of excel sheet into Number in 1c it will still use dot as a separator, but 1c will use comma as a separator, so the code will depend on locale settings. I manage to solve this with XMLValue functions.

Profile
#9
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Alexey,

Thank you for the update.

Best regards,
Vladimir Gurov

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.