Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

New entities from data (Technical Preview) errors

When attempting to create a new entitiy in CDS using a 'shaped' dataset, such as I would for PowerBI I am receiving an error message that requests that I report the error code to PowerApps Support. The codes are:





Here is a copy of the query being used to create the dataset (source information has been removed. It is an on-premise SQL server accessed via a data gateway). I suspect that there might be lines in the query that not yet supported, but would like confirmation. 


    Source = Sql.Database("SQL Server", "Database"),
    dbo_dimLocation = Source{[Schema="dbo",Item="dimLocation"]}[Data],
    #"Filtered Rows" = Table.SelectRows(dbo_dimLocation, each ([IsLocationActive] = true) and ([Country] = "AUSTRALIA") and ([OwnershipType] = "COMPANY OPERATED")),
    #"Added Index" = Table.AddIndexColumn(#"Filtered Rows", "Index", 0, 1),
    #"Removed Columns" = Table.RemoveColumns(#"Added Index",{"factCogs(LocationKey)", "factCogs(LocationKey) 2", "factCustomerFeedback", "factEmployeeAvailability", "factEmployeeStatistics", "factGuestFeedback", "factInventory", "factItemSales_Day", "factItemSales_Hour_Check", "factLabour_Hourly", "factLabour_Ideal", "factLabour_Timecard(LocationKey)", "factLabour_Timecard(LocationKey) 2", "factProductSales", "factPurchasesByInvoice", "factSales", "factSalesBudget", "factSalesForecast"})
    #"Removed Columns"

Community Support Team
Community Support Team

Re: New entities from data (Technical Preview) errors

Hi AJGilbey,


Are you trying to create a custom entity in CDS?


About how to create a custom entity in CDS, please check this documentation for a reference:


I am not sure how could use a “shaped” dataset to create a custom entity in CDS. But for the query you are using, I would suggest you post it on PowerBI forum to get the most qualified respondents.

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,017)