Tuesday 10 June 2014

Unable to find a unique Dimension code combination record corresponding to the entered values. error in dimension AX 2012

Original post here:

http://thm-t3ch-journey.blogspot.ae/2013/11/unable-to-find-unique-dimension-code.html?showComment=1402467677027#c5620872689149125440

Recently I found an error when I build a SegmentedEntry in another customize form just like LedgerJournalTransDaily form.


"Unable to find a unique Dimension code combination record corresponding to the entered values." (can't find this error in label too)
When I try to debug the error I can't find any clue because this error send the notification after the modified event of the control. (I might miss some of the call stack that lead to this modified event). I tried to look again the standard function and found that I miss something in the "LedgerDimension" datasource field method, the method name is "resolveReference".
Here is the sample method code:
public Common resolveReference(FormReferenceControl _formReferenceControl)
{
    Common common = offsetLedgerDimensionController.resolveReference();

    return common;
}


1 comment: