- Make sure it is not out of the box EDT which is used on that table column. If it is out of the box try to find another EDT with you desired length or create new EDT. *But don't assign the EDT to that column in this stage*
- Take backup of the table (the xml file in folder) in which this EDT is being used. In case it is used in many tables on that form take theirs backup too.
- Delete the particular field from all the targeted tables.
- Build and sync (preferably build the model). In case the field is used inside any class or form code it will give error. Comment them all to successfully build and sync.
- Make sure you can run your form without that column. i.e. there is not any popup error or warnings. If there's still any error try to reset iis (open command prompt as adminstrator and write iisreset and enter) and clear usage data (from AX client go to option> Usage data>Reset).
- You may crosscheck by opening the SQL server and see if that column has successfully been removed.
- Now create the deleted column back using the new EDT (or with same EDT with length changed already). If it is possible create with different name (it is far more safe).
- Build and Sync.
- If sync is successful uncomment lines you commented for successful build in step 4.
- You can now see the column with updated length/type.
Thursday, February 28, 2019
D365FO change EDT type or length precautions (Alert)
A common change request in organization is to change field length due to impetuous development in first place. Though it my look quite easy task for developer, wrongly done can cause hours of painful resolution. So better to be prescient and follow these steps:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment