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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Internal EDT references from Field Property to the EDT get lost on renaming and exporting

(0) ShareShare
ReportReport
Posted on by 3,905

Hey Guys,

there seems to some internal things going wrong within Ax2012. If you rename an ExtendedDataType (here it is a string) and have already used this  within ExtendeDataType property of a table field, something is going wrong, or better said: does nor work as in Ax2009, where this worked like a charme.

Ok:

Let's say we have (working in the usr layer) a string ExtendedDataType MyEdt100 / Length 100

Addtional we have a Table  with two fields / Field1 and Field2, Field2 is assigned this EDT.

Now, due to a typo or something other, we must rename our EDT lets say from MyEDT100 to RenEDT100.

First of all, you will notify a warning on synchronisation of yout table.

If you look at the table field properties, you will see your old EDTName. Just for Information, I additionally changed the Length on RenEDT100 to 90 before making the hardcopies. This shows that the field knows its real assigment (RenEDT100/FieldLen 90)

UnselectedProperty.png

If you now select the ExtendedDataTypeProperty (click in) you surprisingly see the following

 

SelectingProperty.png

 

If you leave this, the MyEDT100 is shown again:

 

So it seems that the Field internally has both properties, the info: I really was renamed to RenEDT100 and somewhere the string 'MyEDT100' which was somewhere assigned?

 

Problems arise if you export your project:

Within the XPO the wrong Name is exported and there is no other information related to RenEDT100 in it.

 

XPOContent.png

 

So lets delete your project and reimport (or import the xpo on another instance)

 

A warning appears. Minor Changes.

 

DuringReimport.png

 

and after Import the Field das not have any EDT assigned to it. 

 

AfterReimport.png

 

This did not happen in Ax2009. 

 

So keep in mind this if you plan to rename EDT Names for some reasons. Think you have to go to each field and reassign the renamed edt. 

 

Did anyone has a solution which allows updating all the references in a secure way??

 

Do not know if this is a 'by design feature' but you should keep an eye on this.

 

regards

 

Douglas

*This post is locked for comments

I have the same question (0)
  • Douglas Noel Profile Picture
    3,905 on at
    RE: Internal EDT references from Field Property to the EDT get lost on renaming and exporting

    Hi,

    some additional information.

    if you go to the table after renaming and do a restore, even the length is set back to 10 and the complete assignment to the edt is lost.

    And morever. This happens if you, after renaming the EDT restart the connected AOS. Maybe two days later.

    Your field is now ExtendedProperty 'No', Length 10.

    If you don't read exactly the warnings on synchronisation, because you are expecting warnings due to other developments. You will cut your data.

    I would say: This can't be a feature, is it?

    regards

    Douglas

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans