This is all about Microsoft Dynamics AX(formerly known as Axapta). This site contains some Microsoft Dynamics AX X++ Codes for use in your day to day use as well future changes.
Search This Blog
Thursday, July 26, 2012
Data Migration Framework for AX2012 was released.
Data Migration Framework beta for AX2012 was released.
Please go through about this in the following link and you can download the setup
Hi Madhu, Insert-While its inserting it will validate against the functionalities and it will call the super methods respectively. normally we will call this because it will validates against the fields. Doinsert- it will insert the values into the table any way, normally we will use when you want to insert a single field or not required to validate or not required in transactions then we will do...the same is for update and doupdate also
Hi, I also have a question on the data migration framework. I want to validate the businessLogic on insert of new records from the staging table. I have enable validateWrite and validate businessLogic on insert and update, but the code don't seem to run. Is this still a bug or do i need to do something else?
Hi thanks for your response! Don't seem to get what you mean. Entity class of validations? For example in my DMFCustomerEntityClass create a new method validateWrite?
Hi, Normally when the Source data imports to Stage Tables then we can validate stage against the Target tables, so you can debug at this level of the code , then you can check how it is validating. Open the stage Table data and select one record as mark left side and click on validate, so you can debug at this level.
the validate button on the stagetable executes validateFieldValues in the DMFCHeckFieldClass. This checks if foreign keys exists in their corresponding mastertables. I need to validate the (custom)businessLogic. If i check or uncheck the checkboxes for validation in the entitytable makes no difference. no additional code is being executed...
I also wonder if it is normal that when i press validate button and something is not valid. For exapmle non existing foreign key, the records still can be inserted in the target tables. It seems like no validation is done at all.
Hi, Yes that was the bug, they didnt handle this scenarios for validation in Beta, Hoping they will fix this issue in original version, as we already given feedback with this issues to Microsoft.
Mr. Krishna please tell me the perfect defination of the insert doinsert
ReplyDeleteupdate doupdate
delete dodelte
Hi Madhu,
DeleteInsert-While its inserting it will validate against the functionalities and it will call the super methods respectively. normally we will call this because it will validates against the fields.
Doinsert- it will insert the values into the table any way, normally we will use when you want to insert a single field or not required to validate or not required in transactions then we will do...the same is for update and doupdate also
Regards,
krishna.
Hi, I also have a question on the data migration framework. I want to validate the businessLogic on insert of new records from the staging table. I have enable validateWrite and validate businessLogic on insert and update, but the code don't seem to run. Is this still a bug or do i need to do something else?
ReplyDeleteThanks in advance!!
Hi,
DeleteYou have to create the debugger in the entity class of validations because these will excecuted through entity classes.
Regards,
krishna.
Hi thanks for your response! Don't seem to get what you mean. Entity class of validations? For example in my DMFCustomerEntityClass create a new method validateWrite?
ReplyDeleteHi,
DeleteNormally when the Source data imports to Stage Tables then we can validate stage against the Target tables, so you can debug at this level of the code , then you can check how it is validating.
Open the stage Table data and select one record as mark left side and click on validate, so you can debug at this level.
Regards,
krishna.
the validate button on the stagetable executes validateFieldValues in the DMFCHeckFieldClass. This checks if foreign keys exists in their corresponding mastertables. I need to validate the (custom)businessLogic. If i check or uncheck the checkboxes for validation in the entitytable makes no difference. no additional code is being executed...
ReplyDeleteI think I too have too investigate..... and come back with answer
DeleteI also wonder if it is normal that when i press validate button and something is not valid. For exapmle non existing foreign key, the records still can be inserted in the target tables. It seems like no validation is done at all.
DeleteHi,
DeleteYes that was the bug, they didnt handle this scenarios for validation in Beta, Hoping they will fix this issue in original version, as we already given feedback with this issues to Microsoft.
Regards,
krishna.