web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to add dataverse filter condition for a lookup field in dual-write?

(0) ShareShare
ReportReport
Posted on by 7 Moderator

Hi,

We need to synchronize data from Dynamics 365 CE to F&O using dual-write when a lookup field contains data. We have tried CE filter condition - LookupFieldName ne null, but getting below error while creating a record in CE.

    Exception Message: Object reference not set to an instance of an object.
    
    ErrorCode: -2147220891
    HexErrorCode: 0x80040265
    
    ErrorDetails: 
        OperationStatus: 0
        SubErrorCode: -2146233088
        Plugin: 
            ExceptionFromPluginExecute: Microsoft.Dynamics.Integrator.DualWriteFpRuntime.Plugins.PreCommitPlugin
            ExceptionRetriable: False
            ExceptionSource: PluginExecution
            OriginalException: PluginExecution
            PluginTrace: [INF] - [2022-02-10T06:17:12.794Z] - plugin [PreCommitPlugin] invoked with the message of [InternalPipeline] for target

How to add dataverse filter condition for a lookup field in D365 dual-write mapping?

I have the same question (0)
  • Shaju Samuel Profile Picture
    5 on at

    Hi Charan,

     did you manage to find the solution to your query. We too have a similar requirement but do not have a working solution as yet.

     Thanks in advance 

    Sam

  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at

    Hi Shaju,

    We couldn't find a right filter solution to check whether a lookup field has value or not but managed with a work around. Created a boolean field on the entity and this field will be set when the lookup field is set with non-blank value. Added a dataverse dual-write filter to sync to F&O only when this boolean field value is set (filter: booleanField eq true)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans