Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Adding a custom table ...
Finance forum
Unanswered

Adding a custom table to existing table map

Posted on by 2
Hello,
 
I am trying to add a custom table (Table X) to existing SalesPurchLine map. I have added the SalesPurchLine map to Table X under mappings. Then created new method to return SalesPurchLineInterface() class in the table level. In order to create linking for the new custom table to SalesPurchLineInterface(), I have created a new class be using SalesPurchLineInterfaceFactoryAttribute class for the TableX which extends SalesPurchLineInterface() class. 
 
When I try to run the table method to return SalesPurchLineInterface() class, I am getting "object reference not set to an instance of object error".
 
Has anyone tried this before or can help me with the steps of how to add custom table to existing table map (SalesPurchLine).
  • Suggested answer
    Adding a custom table to existing table map
    You have done all the right things; It's a SysExtensionAppClassFactory cache issue. I have seen it a million times when working with WHS.
    The easiest way (and maybe a bad habit of mine) to clear it from the user interface is to use the "Regenerate methods" on the "Wave process methods" form. You find it under Warehouse Management -> Setup -> Waves -> Wave process methods
     
     
    Alternatively you can call the SysFlushAOD class either using SysClassRunner or System Administration -> Setup -> Refresh elements
     
     
     

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,572 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,792 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans