Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

I have a compile Exception when I build project

(0) ShareShare
ReportReport
Posted on by 10

Severity Code Description Project File Line Suppression State Error Abnormal termination with unhandled exception. Exception key: 2d0c1ed0-2acd-4dff-9049-a3d59706f2aa. Microsoft.Dynamics.AX.Metadata.Core.Exceptions.DuplicateNamedObjectException: Element named: 'CHINTSalesGroup' of type 'AxQuerySimpleDataSourceField' already exists among elements: 'Address, Apartment_RU, Building_RU, BuildingCompliment, City, CountryCurrencyCode, CountryRegionId, County, District, DistrictName, FlatId_RU, HouseId_RU, ISOcode, IsPrivate, Latitude, Location, LocationName, Longitude, Partition, PostalAddress, PostalAddressRecId, PostBox, RecId, recVersion, State, Street, StreetId_RU, StreetNumber, TimeZone, ValidFrom, ValidTo, ZipCode, IsPrivate1, PrivateForParty, RecId1, recVersion1, _RecId_LogisticsPostalAddress, _recVersion_LogisticsPostalAddress, CHINTSalesGroup'. Parameter name: item at Microsoft.Dynamics.AX.Metadata.Core.Collections.KeyedObjectCollection`1.ThrowOnDuplicate(T item) at Microsoft.Dynamics.AX.Metadata.Core.Collections.KeyedObjectCollection`1.Add(T item) at Microsoft.Dynamics.AX.Metadata.MetaModel.AxQuerySimple.AddExtensionDataSourceFields(AxQuerySimpleExtension extension, Dictionary`2 dataSourceLookup, IDictionary`2 extensionNameMap, IList`1 applyErrors) at Microsoft.Dynamics.AX.Metadata.MetaModel.AxQuerySimple.ApplyExtension(AxQuerySimpleExtension querySimpleExtension, IList`1 applyErrors, IDictionary`2 extensionNameMap) at Microsoft.Dynamics.AX.Metadata.Storage.Extension.ExtensionMethods.ReadQueryWithExtensions(IMetadataProvider metadataProvider, String queryName, QuerySimpleExtensionLoader querySimpleExtensionLoader, IList`1 applyErrors) at Microsoft.Dynamics.AX.Framework.Xlnt.XppParser.Pass2.MetadataReaderUtilities.ResolveBaseQuery(AxQuerySimple simpleQuery, String queryName, AxDataEntity view, IRootNamedObject rootObjectForError, IXppcMetadataProvider metadataProvider, IDiagnosticSink diagnosticSink, Boolean preventEmptyQuery) at Microsoft.Dynamics.A

but my project haven't the CHINTSalesGroup and I do not add any query about this to my project.

  • Martin Dráb Profile Picture
    Martin Dráb 230,817 Most Valuable Professional on at
    RE: I have a compile Exception when I build project

    You said you recompiled custom models, but not with which result. Did it succeed or did you get the same error when compiling a model?

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: I have a compile Exception when I build project

    Error seems to be some duplication of a field starting with chint. And the fields seems to be from LogisticsPostalAddress. So can you give a find reference on this table and check in which queries it is used and check where this field is present. As we donot have this field directly try with find reference with related tables where you can see these fields. Once you find you can delete that field. If you cannot find in vs, then go to SSMS and give an SQL query in SSMS and try finding the field there. I believe it should be in LogisticsPostalAddress or logistics location extensions.

    Also you can see your custom model and check in all tables where the extensions are created.

  • Cloud Wang Profile Picture
    Cloud Wang 10 on at
    RE: I have a compile Exception when I build project

    It‘s a view extension and I saw it can't load view metadata. what should I do?

  • Cloud Wang Profile Picture
    Cloud Wang 10 on at
    RE: I have a compile Exception when I build project

    recompiling custom models doesn't help. I find where is used CHINTSalesGroup,that project

    is also throw the exception which my question describe.

  • Martin Dráb Profile Picture
    Martin Dráb 230,817 Most Valuable Professional on at
    RE: I have a compile Exception when I build project

    I would start by recompiling custom models. If it doesn't help, I would check where CHINTSalesGroup is used.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans