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)

update statement with array field in a table extension

(0) ShareShare
ReportReport
Posted on by

Hello,

I have created a new field called DimensionNames  in table extension LedgerTrialBalanceTmp.

This field is an extended data type of DimensionSetSegmentName.

It is similar to DimensionValue field this table already has.

Now while updating the recordset for this table, system at runtime is not able to understand that this is an array.

I have below statement written in my extension code

----------------------------------------------------------------

update_recordset ledgerTrialBalanceTmp setting

DimensionNames[1] = somevalue1,

....

...

DimensionName[11]= somevalue11 

where ledgerTrialBalanceTmp.ledgerdimension = somevalue;

------------------------------------------------------------------

While executing this code, I am getting error


[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]The column name 'DIMENSIONNAMES' is specified more than once in the SET clause or column list of an INSERT. A column cannot be assigned more than one value in the same clause. Modify the clause to make sure that a column is updated only once. If this statement updates or inserts columns into a view, column aliasing can conceal the duplication in your code.

This kind of update_recordset works for the same table for DimensionValue field in method Classes->LedgerTrialBalanceDP->updateSummaryMainFocusDescriptions

Can anyone please help me know what's the issue with an array here? I already build application suite model with my custom model  and db synchronization. but no help.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    anyone faced such array update issue before?

  • Community Member Profile Picture
    on at

    Anyone?

  • Verified answer
    Martin Dráb Profile Picture
    239,257 Most Valuable Professional on at

    Look at What's new in Platform Update 11, namely Development and customization - Support for field arrays in table extensions.

  • Community Member Profile Picture
    on at

    Thanks Martin for pointing to the right direction. Ours is Update 10. For now, We will live with what we have right now until we decide to upgrade to Update 11.

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 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans