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 :
Dynamics 365 Community / Forums / Finance forum / build errors on adding...
Finance forum

build errors on adding custom field to data entity

(0) ShareShare
ReportReport
Posted on by

Hello team, I am trying to add new custom field in InventTransferOrderHeaderEntity. i have added the custom field to InventTransferTable and it was created extension and  I can see the new field added into the data source in entity and was able to drap and drop the new field to data entity. but when i am trying to build solution getting below build errors. 

C:\AOSService\PackagesLocalDirectory\MSE-D365Integrations\MSE-D365Integrations\AxDataEntityViewExtension\InventTransferOrderHeaderEntity.Extension2.xml(0,0): TableDoesNotExist: Path: [AxDataEntityViewExtension/InventTransferOrderHeaderEntity.Extension2/ViewMetadata/DataSources/InventTransferTable/DataSources/ShippingLogisticsPostalAddressBaseEntity/Table]:Table 'LogisticsPostalAddressBaseEntity' does not exist.
C:\AOSService\PackagesLocalDirectory\MSE-D365Integrations\MSE-D365Integrations\AxDataEntityViewExtension\InventTransferOrderHeaderEntity.Extension2.xml(0,0): TableDoesNotExist: Path: [AxDataEntityViewExtension/InventTransferOrderHeaderEntity.Extension2/ViewMetadata/DataSources/InventTransferTable/DataSources/ShippingContactPerson/Table]:Table 'HcmWorker' does not exist.
C:\AOSService\PackagesLocalDirectory\AxDataEntityViewExtension\InventTransferOrderHeaderEntity.Extension2.xml(0,0): TableDoesNotExist: Path: [AxDataEntityViewExtension/InventTransferOrderHeaderEntity.Extension2/ViewMetadata/DataSources/InventTransferTable/DataSources/ReceivingContactPerson/Table]:Table 'HcmWorker' does not exist.
C:\AOSService\PackagesLocalDirectory\AxDataEntityViewExtension\InventTransferOrderHeaderEntity.Extension2.xml(0,0): TableDoesNotExist: Path: [AxDataEntityViewExtension/InventTransferOrderHeaderEntity.Extension2/ViewMetadata/DataSources/InventTransferTable/DataSources/ReceivingLogisticsPostalAddressBaseEntity/Table]:Table 'LogisticsPostalAddressBaseEntity' does not exist.
C:\AOSService\PackagesLocalDirectory\AxDataEntityViewExtension\InventTransferOrderHeaderEntity.Extension2.xml(0,0): UnhandledMetadataValidationException: Path: [AxDataEntityViewExtension/InventTransferOrderHeaderEntity.Extension2]:"An unhandled exception was thrown while validating InventTransferOrderHeaderEntity.Extension2 with callstack System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.AX.Metadata.Validation.AxDataEntityViewValidator.ValidateDateEffectiveFields(IDiagnosticSink diagnostics, Uri uri, AxDataEntityView view, Dictionary`2 dataSources, Dictionary`2 dataSourceToResolverLookup, IMetadataProvider metadataProvider, String pathToViewName, OptionalSettings optSettings)
at Microsoft.Dynamics.AX.Metadata.Validation.AxDataEntityViewValidator.ValidateFields(IDiagnosticSink diagnostics, Uri uri, AxDataEntityView view, String PathToViewName, IMetadataProvider metadataProvider, OptionalSettings optSettings)
at Microsoft.Dynamics.AX.Metadata.Validation.AxDataEntityViewExtensionValidator.DoValidate(AxDataEntityViewExtension objectToValidate, Uri uri, IMetadataProvider metadataProvider, IDiagnosticSink diagnostics)
at Microsoft.Dynamics.AX.Metadata.Validation.ValidatorBase`1.StartValidation(T objectToValidate, Uri uri, IMetadataProvider metadataProvider, IDiagnosticSink diagnostics)."

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,361 Super User 2025 Season 2 on at
    RE: build errors on adding custom field to data entity

    Hi Ramesh,

    Check which models contains the elements for e.g. LogisticsPostalAddressBaseEntity, HCMWorker and all other objects which don't exist according to the error message. Then add these models as references in your own extension model. Without these references, it can't find the objects.

  • Blue Wang Profile Picture
    on at
    RE: build errors on adding custom field to data entity

    Hi Ramesh,

    Check the entity's data sources and you can see the referenced data sources and relations.

    0317.PNG

    As Andre said, you need to confirm that your model has these references.

  • Ramesh Yaragalla Profile Picture
    on at
    RE: build errors on adding custom field to data entity

    yes, thank you somuch. this issue is fixed.

  • Satish Panwar Profile Picture
    14,671 Moderator on at
    RE: build errors on adding custom field to data entity

    Great. Please take time to help verify the answer that helped you so this thread is closed.

  • Blue Wang Profile Picture
    on at
    RE: build errors on adding custom field to data entity

    Hi Ramesh,

    I'm glad to hear that your problem has been solved.

    Please share your solution with us.

    Thank you.

  • Maroua Profile Picture
    10 on at
    RE: build errors on adding custom field to data entity

    Hi Ram, can you please share with us your solution?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans