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.
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.
- DimensionAttributeValueCombination
- DimensionAttributeLevelValue
- DimensionAttributeValueSetItem
- GeneralJournalAccountEntry
- 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
Post a Comment