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 :
Finance | Project Operations, Human Resources, ...
Answered

Custom data entity doesn't export data although it exists in the table

(0) ShareShare
ReportReport
Posted on by

Hi all,

I created a custom data entity for datasource KanbanRule using the entity creation wizard and attached additional datasources as required by the wizard. 

pastedimage1680097995480v1.png

Solution build, database synchronisation and entity list refresh was done without any errors. 

However, although KanbanRule table has plenty of data, I am not able to export as per the screenshot below when the entity export is executed from data management workspace.

pastedimage1680098230363v2.png

Why is this happening? Thank you for any help in this regard.

Thank you,

Amit

  • Verified answer
    Martin Dráb Profile Picture
    on at
    RE: Custom data entity doesn't export data although it exists in the table

    You should review the query. For example, it's possible that one of your joins filter out all data and therefore the query doesn't return any records.

    I would go to SQL Server Management Studio, find the view (a data entity has a view in DB) and select data from it. If it doesn't return the expected records, I would review the SQL query used by the view and try to adjust to see how it should be changed. When I understand the problem and the change needed, I would go back to Visual Studio and modify the entity.

  • Verified answer
    Bharani Preetham Peraka Profile Picture
    on at
    RE: Custom data entity doesn't export data although it exists in the table

    Adding to Martin, you can also fire an SQL query by select * from EntityName. So you can see what data it is returning. Then tweak the entity accordingly.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans