Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

D365 F&O Data Lake + CDMUtil generates an entity JSON with SQL that refers to a non-existent view

Posted on by

I am using D365's export to data lake feature and then using CDMUtil to make this data available for querying. I exported the entity FinancialDimensionValueEntity which comprises of 3 underlying tables:

  • DimensionAttribute
  • DimensionAttributeValue
  • HcmWorker

The entity JSON file has the following SQL definition in it:

CREATE VIEW [DBO].[FINANCIALDIMENSIONVALUEENTITY] AS SELECT T1.DIMENSIONATTRIBUTE AS FINANCIALDIMENSION, T1.LEGALENTITYID AS LEGALENTITYID, T1.DIMENSIONVALUE AS DIMENSIONVALUE, T1.DESCRIPTION AS DESCRIPTION, T1.ACTIVEFROM AS ACTIVEFROM, T1.ACTIVETO AS ACTIVETO, T1.ISSUSPENDED AS ISSUSPENDED, T1.ISTOTAL AS ISTOTAL, T1.ISBLOCKEDFORMANUALENTRY AS ISBLOCKEDFORMANUALENTRY, T1.GROUPDIMENSION AS GROUPDIMENSION, T1.PARTITION AS PARTITION, T1.RECID AS RECID, T2.ISBALANCING_PSN AS ISBALANCING_PSN, T2.OWNER AS OWNERREFRECID, T2.RECVERSION AS RECVERSION#2, T2.PARTITION AS PARTITION#2, T2.RECID AS RECID#2, T3.PERSONNELNUMBER AS OWNER, T3.RECVERSION AS RECVERSION#3, T3.PARTITION AS PARTITION#3, T3.RECID AS RECID#3 FROM FINANCIALDIMENSIONVALUEENTITYVIEW T1 LEFT OUTER JOIN DIMENSIONATTRIBUTEVALUE T2 ON(( T1.DIMENSIONATTRIBUTEVALUE = T2.RECID) AND ( T1.PARTITION = T2.PARTITION)) LEFT OUTER JOIN HCMWORKER T3 ON(( T2.OWNER = T3.RECID) AND ( T2.PARTITION = T3.PARTITION)) WHERE(((((((( T1.DIMENSIONATTRIBUTETYPE = 0) OR ( T1.DIMENSIONATTRIBUTETYPE = 1)) OR ( T1.ACTIVEFROM <> 0)) OR ( T1.ACTIVETO <> 0)) OR ( T1.ISSUSPENDED <> 0)) OR ( T1.ISTOTAL <> 0)) OR ( T1.ISBLOCKEDFORMANUALENTRY <> 0)) OR ( T1.GROUPDIMENSION <> N''))

The above SQL selects from FINANCIALDIMENSIONVALUEENTITYVIEW which is not one of the underlying tables. Further along in the JSON it confirms the dependency:

          /name/: /backingElements/,          /value/: /FinancialDimensionValueEntityView,DimensionAttributeValue,HcmWorker/

How do I figure out the definition for FinancialDimensionValueEntityView so that I can create this view in Synapse?

I have tried finding the underlying view definition without success. I have tried finding a matching entity in D365 but could not identify one.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans