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

Custom Data Entity is empty

(2) ShareShare
ReportReport
Posted on by 521
 Hello,
I created a custom data entity in Visual Studio using purchTable as the data source. The entity was successfully created, and I can see it listed under System administration > Workspaces > Data management > Data Entities. However, it doesn't contain any data, even though purchTable in SQL Server has plenty of data.
All steps I followed:
  1. Created a new Dynamics 365 FO project and set Synchronize database to true.
  2. Added a new Data Entity using the wizard.
  3. Set purchTable as the data source.
  4. Set Is Public to true.
  5. Built both the project and solution successfully with no errors.

    the result in postman will be like this 
    {
        "@odata.context": "https://exampleurl.axcloud.dynamics.com/data/$metadata#MyCustDataEntity",
        "value": []
    }
     
What could I be missing?


 
I have the same question (0)
  • Suggested answer
    Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi,

    It could be because of the legal entity, by default if you don't specify the dataAreaId, then it will take the user legal entity. So make sure you use "cross-company" and specify the dataAreaId where you want to get the data from.

    Example:
    url/data/CustomersV3?cross-company=true&$filter=dataAreaId eq 'USMF' and CustomerAccount eq 'US-01'

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Did you specify cross company filter in odata query? It can be the scenario that may be in the user related dataareaid, data is not available.
     
    Please make sure that you have specified the url like this.
    http://[baseURI\]/data/FleetCustomers?cross-company=true
     
    For more details check this.
     
    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/odata
  • Komi Siabi Profile Picture
    13,224 Most Valuable Professional on at
    Hi,

    Why are you using a standard table purchTable for your data entity, when the it already has one? 
    As Layan said, ensure you are in the right entity and your user has access to a valid entity.
  • Anthony Blake Profile Picture
    3,150 Super User 2026 Season 1 on at
    To expand on everyone else's great answers, why not try your exact query against the standard purchase orders entity instead of you custom entity, to rule out a query issue?
     
    I think Layan's answer is probably the cause as you seem to have everything covered except legal entity. Try not to think of your data entity as "empty", more as not returning any data. It's more like a view than a populated element.
     
    Anthony
  • D365FO Junior-Dev Profile Picture
    521 on at
    Thank you

    I know there is a  standard data entity for purchtable, just I need only three columns of purchtable not all 
    this is why I tried to created that custom data entity 

    as you mentioned cross-company should be true in the url and I did but no return any data so far I think there is an issue with data entity !
     
     
     
    https://exampleurl.axcloud.dynamics.com/data/MyCustDataEntity?cross-company=true
  • Suggested answer
    Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi D365FO Junior dev,
     
    If you go to SQL and so select *from MyCustomDataEntity, does it return data?
     
    Also when you created the new entity and it's staging table, did you make sure that their labels are different than the original one, the label for both should be unique 
     
    Did you link the new entity with the new staging table by changing "Data management staging table" property on the entity?

    Also the public collection name and the public entity name should be unique and different than the original ones.
     
    Finally make sure you are using the public collection name in the url.
     
    *Note, if you only want 3 fields from PurchTable, then no need to create new entity, you can filter the url to return certain fields using $select keyword from the standard entity.
    url/data/CustomersV3?cross-company=true&$filter=dataAreaId eq 'USMF' and CustomerAccount eq 'US-01'&$select=CustomerAccount
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Verified answer
    Martin Dráb Profile Picture
    239,118 Most Valuable Professional on at
    You don't need to create and maintain a new entity to select just three fields. Simply use $select in your OData query. For example: https://exampleurl.axcloud.dynamics.com/data/PurchaseOrderHeadersV2?$select=PurchaseOrderNumber,OrderVendorAccountNumber.
     
    Also, if you suspect that your data entity returns no data, test just whether your entity returns data, e.g. by looking at the underlying SQL view in SQL Server Management Studio. You're currently testing a few other things as well, such as your OData query. If you test too many things at once, you then don't know where the problem lies.
  • Waed Ayyad Profile Picture
    9,100 Super User 2026 Season 1 on at
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • Waed Ayyad Profile Picture
    9,100 Super User 2026 Season 1 on at
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans