Old Architect rule editor replaces dashes with hyphens

Post Reply
User avatar
Elessar
Community Contributor
Posts: 355
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Old Architect rule editor replaces dashes with hyphens

Post by Elessar »

Hello everybody!

I have noticed a strange behavior of the old rule editor: if I try to use object names with dashes (–, code 150), it works fine for the first time. But if I reopen it, the rule editor replaces them with hyphens (-, code 45). When I try to change something (eg add a comment) and save, it shows an "element not found" error:
dashes.png
dashes.png (14.43 KiB) Viewed 851 times

It looks like the version or OS does not matter - tested this on 3 different environments.
Can anybody confirm the same behavior? Does anybody have a solution for this?
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 7th article - Development requirements.
MarenC
Regular Participant
Posts: 359
Joined: Sat Jun 08, 2019 9:55 am
OLAP Product: Planning Analytics
Version: Planning Analytics 2.0
Excel Version: Excel 2016

Re: Old Architect rule editor replaces dashes with hyphens

Post by MarenC »

Hi,

I presume the issue is with the Dash being at the end of the name, if it was stuck somewhere in the middle, such as This - is Dash it would be ok?

Maren
User avatar
Elessar
Community Contributor
Posts: 355
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: Old Architect rule editor replaces dashes with hyphens

Post by Elessar »

Yes, this happens no matter where the dash is located
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 7th article - Development requirements.
User avatar
gtonkin
MVP
Posts: 1211
Joined: Thu May 06, 2010 3:03 pm
OLAP Product: TM1
Version: Latest and greatest
Excel Version: Office 365 64-bit
Location: JHB, South Africa
Contact:

Re: Old Architect rule editor replaces dashes with hyphens

Post by gtonkin »

The dash in the first screenshot is an Em Dash - MS Word is generally to blame and converts dashes to em dashes via auto correct as you type.
Someone then copies these to Excel or elsewhere then into TM1 and you have an issue.
Em Dash is Unicode Character “—” (U+2014)

Edit: you may need to check the file on disk to see what is being saved back - could also be a character set issue - rich text but not sure why it would work the first time.
User avatar
Elessar
Community Contributor
Posts: 355
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: Old Architect rule editor replaces dashes with hyphens

Post by Elessar »

gtonkin wrote: Wed Nov 02, 2022 5:08 pm The dash in the first screenshot is an Em Dash - MS Word is generally to blame and converts dashes to em dashes via auto correct as you type.
Someone then copies these to Excel or elsewhere then into TM1 and you have an issue.
Yes Sherlock, it was exactly like you've described :)
The rux file, equally to rule editor, contains em-dash on start, and hyphen after changing the rule.
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 7th article - Development requirements.
Post Reply