web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

DimensionStorage object not initialized with while select ?

(0) ShareShare
ReportReport
Posted on by 576

hello..

i need to insert dimension segment (Description) in new field named dimension name

it's a new field in LedgerJournalTrans table

so in first

 dim1.png

i put the code in modified method in LedgerJournalTrans.ledgerDimension in dataSource

the result is next 

dim2.png

and that what i need.

only problem the old transaction 

so i create new job to update all transaction

dim3.png

can anyone help ?

thank you in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    TatianaG Profile Picture
    40 on at

    The ledgerDimension value can not be blank, you are not passing any value, try to use a find in the table to bring the correct value.

  • Ismail Mohamed Profile Picture
    576 on at

    what about this line

    dimStorage = DimensionStorage::findById(ljt.LedgerDimension);


  • Verified answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hi Ismail!

    Are you sure what all LedgerJournalTrans lines have LedgerDimension value?

    Try to put this line of code 

    if (let.LedgerDimension)

    before 

    dimStorage = DimensionStorage::findById(ljt.LedgerDimension);


    Also you should use ttsBegin/ttsCommit if you want to update records.

    And, finally, you should call update() method after setting ljt.DimName.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans