Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Getting synch error in...
Finance forum
Unanswered

Getting synch error in DMF while adding unmapped fields

Posted on by 2
Hi,
I am using DMF to export some data. The entity has some virtual fields as well. While I am exporting without virtual fields the data gets exported. But with virtual fields, I am getting synch error and the process is not exporting anything at all. I have tried below steps already
 
1. Synch data entity and staging with SQL successfully (synched even post dropping the entity and view from SQL).There are no build and synch errors.
2. Deleted the entity from data entity list and refresh entity store to get updated schema in D365.
3. Generated the mapping explicitly to make sure the mapping is updated.
 
Below is the error message:
session 4598010 (rishi.kumar)
SELECT T1.LEDGERACCOUNT,T1.POSTINGLAYER,T1.JOURNALNUMBER,T1.LEDGERDIMRECID,T1.NAME,T1.ACCOUNTINGCURRENCY,T1.REPORTINGCURRENCY,T1.ENDDATE,T1.FINANCIALSTARTDATE,T1.TYPE,T1.MAINACCOUNTID,T1.REPORTINGCURRENCYAMOUNT,T1.TRANSACTIONCURRENCYAMOUNT,T1.MAINACCOUNTTYPE,T1.LEGALENTITY,T1.RECID#2,T1.RECVERSION#2,T1.RECID#3,T1.RECVERSION#3,T1.RECID#4,T1.RECVERSION#4,T1.RECID#5,T1.RECVERSION#5,T1.CREATEDBY,T1.CREATEDTRANSACTIONID,T1.RECVERSION,T1.PARTITION,T1.RECID FROM XYZ_ACCOUNTBALANCESENTITYPERF T1 WHERE (((((PARTITION=5637144576) AND (PARTITION#2=5637144576)) AND (PARTITION#3=5637144576)) AND (PARTITION#4=5637144576)) AND (PARTITION#5=5637144576)) ORDER BY T1.LEDGERACCOUNT,T1.LEDGERDIMRECID
[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'RECID#2'.
Object Server Azure:
Results    Cannot select a record in Account balances perf entity (XYZ_AccountBalancesEntityPerf).
The SQL database has issued an error.
 
Any help would be much appreciated as I have already tried the usual ways of resolving the issue.
 
Rishi
 
  • Layan Jwei Profile Picture
    Layan Jwei 3,081 Super User on at
    Getting synch error in DMF while adding unmapped fields
    Hi CU,

    We will need more info in order to help you.

    How did you add the virtual field, did you follow the steps here?
    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/data-entity-computed-columns-virtual-fields#example-create-a-virtual-field

    is the virtual field added to the staging table?

    is it a custom entity or standard one?

    what is your entity key? and what are the datasources used?

    also what is the code inside postLoad for this virtual field?

    does the error appear when you use skip staging = true? did u try to do skip staging = false and see if the error is still there?

    if u can share screenshots as well, it might help

    Thanks,
    Layan Jweihan

Helpful resources

Quick Links

Upcoming TechTalk: Copilot Capabilities…

Review the Copilot features that are currently available in Dynamics 365 Finance…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,377 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans