Question Status

Verified
Adam Mulloy asked a question on 16 Dec 2011 9:15 AM

Can anyone tell me what this error message means?

Function DimensionStorage.setSegment has been incorrectly called.
Unable to find a unique Dimension code combination record corresponding to the entered values.

I am trying to add data in several tables/areas of AX, and I get this error message in multiple places (e.g. Cash discounts, Charge codes for shipping carriers). The error message pops up when I specify the main account to which postings are made in the cash discounts table or charge codes table.

Any help would be appreciated.

Thanks!

Reply
Steven Weaver responded on 16 Dec 2011 10:34 AM

Looks like a development issue to me, I would get a developer to debug it.

Steve Weaver | Dynamics AX Solution Architect - UK | My Blog

This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.

Reply
Verified Answer
ser responded on 18 Jan 2012 4:04 AM

Make sure you have overridden your form data source "resolveReference" method.

See example here:

\Forms\LedgerAllocationRule\Data Sources\LedgerAllocationRule\Fields\OffsetLedgerDimension\Methods\resolveReference

Reply
Suggested Answer
Chuck Schroeder responded on 20 Apr 2013 10:41 AM

Thanks, this solved my issue.

Reply
Steven Weaver responded on 20 Apr 2013 10:43 AM

What was it?

Steve Weaver | Dynamics AX Solution Architect - UK | My Blog

This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.

Reply
Chuck Schroeder responded on 21 Apr 2013 5:41 PM

The original issue was getting the error "Unable to find a unique Dimension code combination record corresponding to the entered values."  My form got this message after typing a valid value in the field. I thought I had followed all the steps for implementing the segmented entry but as Ser's response suggested, I had missed implementing the override for the resolve reference method of the appropriate field on my form datasource. The problem with missing this step is that the message is very difficult to track down or figuring out by stepping into with debug. If the resolve reference overrrid is missing, validation runs fine and then this message just appears in info log.

Reply
Ahmed Alam responded on 2 Apr 2014 4:00 AM

Dear Brother,

Thanks it resolves my problem.

I have another problem, can you please suggest me.

community.dynamics.com/.../259042.aspx

Best Regards,

Ahmed

Reply
Mohamed Hathout responded on 14 Dec 2014 9:23 PM

this error comes to me in the default LedgerTrans form !!

I dint apply any customization . it was working fine , before I copied data from another database using Export data wizard !!

I cannot find any clue !!

Reply
Mohamed Hathout responded on 15 Dec 2014 11:46 AM

I receive this error from the default Ax R3 Ledger Form

!!! "Unable to find a unique Dimension code combination record corresponding to the entered values."

Any Clue  ?

Reply
Verified Answer
ser responded on 18 Jan 2012 4:04 AM

Make sure you have overridden your form data source "resolveReference" method.

See example here:

\Forms\LedgerAllocationRule\Data Sources\LedgerAllocationRule\Fields\OffsetLedgerDimension\Methods\resolveReference

Reply
Suggested Answer
Chuck Schroeder responded on 20 Apr 2013 10:41 AM

Thanks, this solved my issue.

Reply