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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Min/Max Import through DMF

(0) ShareShare
ReportReport
Posted on by 2,426

Good Morning,

There are like 500 items.and want to provide Min/Max Quantity for every item in item coverage group.

So,it will take a lot of time to enter manually.

I am completely new to Import/Export.

i have seen basic.

Please tell me how can i import Min/Max for items.

Is there any default entity or should i create new

if new please tell me some steps .

Please help me.

Any help would be greatly Appreciated.

Regards.

Have a great day.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,194 Super User 2025 Season 2 on at

    Hi AX2012r3,

    There is a standard entity in Dynamics AX 2012 R3 for the Item coverage support.

    For help on use the import features, you can have a look at the documentation: ax.help.dynamics.com/.../data-importexport-framework-user-guide-dixf-dmf

  • AX 2012 r3 Profile Picture
    2,426 on at

    Good Morning Andre,

    First of all thanks for your reply.

    Can you please name the entity for item coverage.

    Regards.

    Have a great day.

  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    Hi,

    in response to your personal message in inbox, I am going to paste following screenshot for you. Hopefully this may help you to get on and explore this.

    ICGV01.png

  • AX 2012 r3 Profile Picture
    2,426 on at

    Good Morning Sohaib,

    Thanks for your reply.

    Yes i have created same way.

    But it is already saying record is inserted.

    but when i go to that form

    the quantity like max and min are not correct.

    but in table they are correct.

    can you please tell me why it is like that.

    Regards.

  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    I just tried it, now on my demo system and it worked straight away. no issues at all. would you like to delete and rebuild your entity in list of entities? it may not ab an issue with your mapping. also what version of ax you are using?

  • AX 2012 r3 Profile Picture
    2,426 on at

    Hi sohaib,

    I have checked in table just now.it is showing same.

    Please find the below screenshots

    Dixf3.png

    Dixf3.png

    Regards.

    Will try another time.

    Thank you

  • AX 2012 r3 Profile Picture
    2,426 on at

    Hi sohaib,

    I am using ax2012 r3.

    I will try the other time.

    if it works. fine

    i will provide the answer with screen shots.

    Regards.

  • Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    screenshot shows your objects in USR layer which means it is customized entity as per your environment and it is very much possible you are missing the code in entity class or you might have forget to add field under DMF field group of table. you can take working entity of SYS layer from any 2012R3CU9 or higher version of ax and that should be working perfectly.

  • AX 2012 r3 Profile Picture
    2,426 on at

    Hi sohaib,

    Please find the below screenshots

    3301.DIXF2.png

    but in form

    3301.DIXF2.png

    Class is

    1643.Dixf3.png

    I did not modify any method in this class.

    What should i modify.

    Please correct me.

    Regards.

    Have a great day Sohaib.

  • Verified answer
    Sohaib Cheema Profile Picture
    49,443 User Group Leader on at

    your class is missing code to generate inventdim.

    this mean when records go into your destination table, they don't have a corresponding record of inventdim and inner join fails to return record. Thus you don't see anything on form.

    replace above code of getReturnFields with following code

    public static container getReturnFields(Name _entity, MethodName _name)
    {
        DataSourceName dataSourceName = queryDataSourceStr(DMFReqItemTableTargetEntity, ReqItemTable);
        Container con = [dataSourceName];
        Name fieldstrToTargetXML(FieldName _fieldName)
        {
            return DMFTargetXML::findEntityTargetField(_entity ,dataSourceName, _fieldName).XMLField;
        }
    
        switch (_name)
        {
            case methodStr(DMFReqItemTableEntityClass, GenerateInventDim) :
                con += [fieldstrToTargetXML(fieldStr(ReqItemTable, CovInventDimId))];
                break;
            default :
                con = conNull();
        }
    
        return con;
    }

    and then add a new method in your class  as following

    [DMFTargetTransformationAttribute(true),DMFTargetTransformationDescAttribute("@DMF349"),
    DMFTargetTransformationSequenceAttribute(5)
    ,DMFTargetTransFieldListAttribute([fieldStr(DMFReqItemTableEntity,configId),fieldStr(DMFReqItemTableEntity,InventSizeId),fieldStr(DMFReqItemTableEntity,InventSiteId),fieldStr(DMFReqItemTableEntity,inventSerialId),fieldStr(DMFReqItemTableEntity,InventLocationId),fieldStr(DMFReqItemTableEntity,InventColorId),fieldStr(DMFReqItemTableEntity,inventBatchId),fieldStr(DMFReqItemTableEntity,InventStyleId),fieldStr(DMFReqItemTableEntity,wMSLocationId),fieldStr(DMFReqItemTableEntity,wMSPalletId)])
    ]
    public Container GenerateInventDim(boolean _stagingToTarget = true)
    {
        container   res;
    
        if (_stagingToTarget)
        {
            inventDim = DMFDimensionHelper::generateInventDimID(entity);
            res = [inventDim.inventDimId];
        }
    
        else
        {
            inventDim = inventDim::find(target.CovInventDimId);
            res = [
                inventDim.configId,
                inventDim.InventSizeId,
                inventDim.InventSiteId,
                inventDim.inventSerialId,
                inventDim.InventLocationId,
                inventDim.InventColorId,
                inventDim.inventBatchId,
                inventDim.InventStyleId,
                inventDim.wMSLocationId,
                inventDim.wMSPalletId];
        }
    
        return res;
    }

    Finally rebuild your entity and regenerate mapping

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans