Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
pws_flick
Frequent Visitor

Dataflow Gen2 refresh issue - Dynamics 365 entity to warehouse table

Hi All, 

I have created a Dataflow Gen2 which is picking up data from the 'account' entity in Dynamics 365. 

 

The M-Code for this query is as follows:

 

 

let
    Source = CommonDataService.Database(
        "xxxxxxxxx.crm6.dynamics.com", 
        [CreateNavigationProperties = null]
    ),

    // Grab the "account" table
    #"Navigation 1" = Source{[Schema = "dbo", Item = "account"]}[Data],

    // Keep desired columns
    #"Selected Columns" = Table.SelectColumns(
        #"Navigation 1",
        {
            "accountid",
            "primarycontactid",
            "primarycontactidname",
            "name",
            "customertypecode",
            "description",
            "emailaddress1",
            "emailaddress2",
            "emailaddress3",
            "telephone1",
            "telephone2",
            "telephone3",
            "createdon",
            "createdby",
            "createdbyname",
            "modifiedon",
            "modifiedby",
            "modifiedbyname",
            "ownerid",
            "owneridname",
            "parentaccountid",
            "parentaccountidname",
            "address1_addresstypecode",
            "address1_name",
            "address1_primarycontactname",
            "address1_composite",
            "address1_line1",
            "address1_line2",
            "address1_line3",
            "address1_city",
            "address1_stateorprovince",
            "address1_postalcode",
            "address1_country",
            "address1_latitude",
            "address1_longitude",
            "industrycode",
            "bcbi_companyid",
            "bcbi_companyidname",
            "businesstypecode",
            "defaultpricelevelid",
            "defaultpricelevelidname",
            "exchangerate",
            "fax",
            "masteraccountidname",
            "masterid",
            "msa_managingpartnerid",
            "msa_managingpartneridname",
            "msa_managingpartneridyominame",
            "msdyn_billingaccount",
            "msdyn_billingaccountname",
            "msdyn_primarytimezone",
            "msdyn_salestaxcodename",
            "msdyn_serviceterritory",
            "msdyn_serviceterritoryname",
            "msdyn_workorderinstructions",
            "originatingleadid",
            "originatingleadidname",
            "paymenttermscode",
            "statecode",
            "statuscode",
            "territoryid",
            "territoryidname",
            "transactioncurrencyidname",
            "utcconversiontimezonecode",
            "vel_abn",
            "vel_accountmanagercrm",
            "vel_accountmanagercrmname",
            "vel_accountmanagercrmyominame",
            "vel_accountmanagersales",
            "vel_accountmanagersalesname",
            "vel_accountmanagersalesyominame",
            "vel_acn",
            "vel_acquisitioncode",
            "vel_allocatedportalusers",
            "vel_allocatedportalusers_date",
            "vel_allocatedportalusers_state",
            "vel_autonumber",
            "vel_bpaycrnfol",
            "vel_businesskey",
            "vel_certificateofcompletionexemption",
            "vel_chemicalregister",
            "vel_childaccountallocatedportalusers",
            "vel_consolidatedinvoice",
            "vel_customerdivision",
            "vel_customerponumber",
            "vel_default_paymentmethod",
            "vel_default_paymentmethodname",
            "vel_division",
            "vel_edicust",
            "vel_errordetails",
            "vel_folbillto",
            "vel_folbilltonumber",
            "vel_follocation",
            "vel_follocationnumber",
            "vel_foreign",
            "vel_lastservicedate",
            "vel_mastergrp",
            "vel_mastergrpname",
            "vel_oldcustomernumber",
            "vel_oldpropertynumber",
            "vel_paymentgateway_customerid",
            "vel_paymenttype",
            "vel_picategory",
            "vel_picategoryname",
            "vel_portalinvitationresult",
            "vel_portalinvitationsenton",
            "vel_portalinvitationstatus",
            "vel_portallink",
            "vel_registered",
            "vel_remainingportallicenseallowance",
            "vel_reprtgrp",
            "vel_reprtgrpname",
            "vel_showstripesyncbutton",
            "vel_specialtermsandconditions",
            "vel_spnumber",
            "vel_totalauthorizedportallicenses"
        }
    )
in
    #"Selected Columns"

 

 

I have setup incremental refresh as follows:

inc_refresh.png

 

The data is being written to a table (dbo.account) in my Fabric Data Warehouse with the same columns as the query. 

 

column_namedata_type
accountiduniqueidentifier
primarycontactiduniqueidentifier
primarycontactidnamevarchar
namevarchar
customertypecodeint
descriptionvarchar
emailaddress1varchar
emailaddress2varchar
emailaddress3varchar
telephone1varchar
telephone2varchar
telephone3varchar
createdondatetime2
createdbyuniqueidentifier
createdbynamevarchar
modifiedondatetime2
modifiedbyuniqueidentifier
modifiedbynamevarchar
owneriduniqueidentifier
owneridnamevarchar
parentaccountiduniqueidentifier
parentaccountidnamevarchar
address1_addresstypecodeint
address1_namevarchar
address1_primarycontactnamevarchar
address1_compositevarchar
address1_line1varchar
address1_line2varchar
address1_line3varchar
address1_cityvarchar
address1_stateorprovincevarchar
address1_postalcodevarchar
address1_countryvarchar
address1_latitudefloat
address1_longitudefloat
industrycodeint
bcbi_companyiduniqueidentifier
bcbi_companyidnamevarchar
businesstypecodeint
defaultpriceleveliduniqueidentifier
defaultpricelevelidnamevarchar
exchangeratedecimal
faxvarchar
masteraccountidnamevarchar
masteriduniqueidentifier
msa_managingpartneriduniqueidentifier
msa_managingpartneridnamevarchar
msa_managingpartneridyominamevarchar
msdyn_billingaccountuniqueidentifier
msdyn_billingaccountnamevarchar
msdyn_primarytimezoneint
msdyn_salestaxcodenamevarchar
msdyn_serviceterritoryuniqueidentifier
msdyn_serviceterritorynamevarchar
msdyn_workorderinstructionsvarchar
originatingleadiduniqueidentifier
originatingleadidnamevarchar
paymenttermscodeint
statecodeint
statuscodeint
territoryiduniqueidentifier
territoryidnamevarchar
transactioncurrencyidnamevarchar
utcconversiontimezonecodeint
vel_abnvarchar
vel_accountmanagercrmuniqueidentifier
vel_accountmanagercrmnamevarchar
vel_accountmanagercrmyominamevarchar
vel_accountmanagersalesuniqueidentifier
vel_accountmanagersalesnamevarchar
vel_accountmanagersalesyominamevarchar
vel_acnvarchar
vel_acquisitioncodevarchar
vel_allocatedportalusersint
vel_allocatedportalusers_datedatetime2
vel_allocatedportalusers_stateint
vel_autonumbervarchar
vel_bpaycrnfolvarchar
vel_businesskeyvarchar
vel_certificateofcompletionexemptionbit
vel_chemicalregisterbit
vel_childaccountallocatedportalusersint
vel_consolidatedinvoicebit
vel_customerdivisionint
vel_customerponumbervarchar
vel_default_paymentmethoduniqueidentifier
vel_default_paymentmethodnamevarchar
vel_divisionint
vel_edicustint
vel_errordetailsvarchar
vel_folbilltovarchar
vel_folbilltonumbervarchar
vel_follocationvarchar
vel_follocationnumbervarchar
vel_foreignbit
vel_lastservicedatedatetime2
vel_mastergrpuniqueidentifier
vel_mastergrpnamevarchar
vel_oldcustomernumbervarchar
vel_oldpropertynumbervarchar
vel_paymentgateway_customeridvarchar
vel_paymenttypeint
vel_picategoryuniqueidentifier
vel_picategorynamevarchar
vel_portalinvitationresultvarchar
vel_portalinvitationsentondatetime2
vel_portalinvitationstatusint
vel_portallinkvarchar
vel_registeredbit
vel_remainingportallicenseallowancedecimal
vel_reprtgrpuniqueidentifier
vel_reprtgrpnamevarchar
vel_showstripesyncbuttonbit
vel_specialtermsandconditionsvarchar
vel_spnumbervarchar
vel_totalauthorizedportallicensesint


However, whenever I try to publish this dataflow - it will generate this error when it tries to refresh (fails on the account_WriteToDataDestination step)

 

 

account_WriteToDataDestination: There was a problem refreshing the dataflow: 'Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: Expression.Error: The column 'Data Source Type' of the table wasn't found. Details: Reason = Expression.Error;ErrorCode = 10224;Detail = Data Source Type;Microsoft.Data.Mashup.Error.Context = User'. Error code: Mashup Exception Expression Error. (Request ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx).

 

 

This seems to indicate that it's looking for a column named 'data source type' ??? I'm thoroughly confused. There is no column named this in the source table or the destination table... 

I have also tried setting the CreateNavigationProperties to 'true' / 'false' - but this gives the same error. 

Any help / guidance is greatly appreciated! 

3 REPLIES 3
lbendlin
Super User
Super User

Out of curiosity - why are you enabling incremental refresh on a dimension table?

In this business, new accounts are added on almost daily basis - thus, I would only like to ingest new and updated accounts each day, rather than the entire 2.3 million+ each day 

 

 thus, I would only like to ingest new and updated accounts each day

 

Thank you for the background information, that helps.

 

 

 thus, I would only like to ingest new and updated accounts each day

 

Oh, you're doomed.  It's called Incremental refresh for a reason. Data is expected to be immutable. If it isn't (like your "updated accounts" ) then Incremental refresh will not work for you, and you will end up with multiple versions of the same account across multiple partitions.   Instead you would need to implement your own differential refresh process, CDC or SCD2.

 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors