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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance forum

'tableStr' compile-time function does not specify a known table/map/view/data entity

(0) ShareShare
ReportReport
Posted on by 4,131

Hi,

I copied the eventhandlers method to a new public static method for the GeneralJournalAccountEntry_onInserted(Common sender, DataEventArgs e)

However, I could not compile the solution, and the compiler always shows an error below:

"The 'GeneralJournalAccountEntry' argument of the 'tableStr' compile-time function does not specify a known table/map/view/data entity."

Thanks,

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Seems that the package where you develop doesn't have reference to the package where GeneralJournalAcocuntEntry is defined. The code in your package can only see objects in other packages if you add a reference.

    You can add the dependency in Visual Studio in Dynamics 365 menu - Update model parameters - Select referenced packages

  • Yuji Profile Picture
    4,131 on at

    Resolved by adding the reference to "General ledger".

  • KrishnamRaju Profile Picture
    95 on at

    Hi Yuji,

    The GeneralAccountEntry table is actually a part of standard GeneralLedger package. So, make sure your model attached to your solution has a reference to this standard package "GeneralLedger" by reviewing your model parameters as shown in the below screenshot.

    pastedimage1569226877920v1.png

    Thank you,

    Krishnam Raju

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