Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

error in LINQ query "Object reference not set to an instance of an object"

$
0
0

this query gives error:

 Contact party =
                       (from c in myContext.cav_configurationSet
                        join p in myContext.ContactSet.DefaultIfEmpty()
                        on c.mm_name equals p.FullName
                        where c.mm_name == "TransactionPerformedBy" &&
                        c.StateCode == cav_configurationState.Active
                        select p).FirstOrDefault().ToEntity<Contact>();


I have checked it is due to there is no record or match for c.mm_name. please tell me how to fix it ?

thanks


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images