Dynamics - Change custom financial dimension ID in system

While we were fetching data for reporting purpose in power BI, we were facing an issue because one of the custom dimension contained & symbol in its name. So in order to get the report in power BI we had to change the dimension name and replace '&' with 'And'.

For applying this change directly in database [Because we cannot change it from front end] we went through each table which have or may have records relavent to financial dimensions.

In doing so, I found below table in which I had to change the name of the dimension.

  1. DimensionAttributeValueCombination
  2. DimensionAttributeLevelValue
  3. DimensionAttributeValueSetItem
  4. GeneralJournalAccountEntry
  5. DirPartyTable

We executed following query to achieve this.


Update DIMENSIONATTRIBUTELEVELVALUE
Set    DISPLAYVALUE = replace(DISPLAYVALUE, '&', 'And')
WHERE DISPLAYVALUE LIKE '%&%'

Update DIMENSIONATTRIBUTEVALUESETITEM
Set    DISPLAYVALUE = replace(DISPLAYVALUE, '&', 'And')
WHERE DISPLAYVALUE LIKE '%&%'

Update GENERALJOURNALACCOUNTENTRY
Set    LEDGERACCOUNT = replace(LEDGERACCOUNT, '&', 'And')
WHERE LEDGERACCOUNT LIKE '%&%'

Update DIRPARTYTABLE
Set    OMOPERATINGUNITNUMBER = replace(OMOPERATINGUNITNUMBER, '&', 'And')
where OMOPERATINGUNITNUMBER like '%&%'

In case you've used the same dimension in account structure configuration, manually change the dimension there otherwise it'll not be available in look up of segmented value in any form.

To know more on how ERP can help business book a free consultation session at Dynamics Stream Dubai at www.dynamicsstream.com
Follow us on LinkedIn for latest updates on Microsoft ecosystem - https://www.linkedin.com/company/dynamicsstream.com

Comments

Popular posts from this blog

🚀 Export All D365 F&O Custom Models with a Single Batch File

SQL stored procedure to get Item's on hand on specified date