Posts Tagged ‘Object reference’

Power Apps component framework | Import Solution Failed: Object reference not set to an instance of an object

December 12, 2022 Leave a comment

While importing our PCF Code Component, using pac pcf push command, we got an error Import Solution Failed: Object reference not set to an instance of an object.

Reason and Fix:

  • Error was bit difficult to troubleshoot as there was no detailed error message. Turns out the issue was due to the usage of ‘Custom Events’ which is still unsupported at the time of writing this article.
  • As per official docs, support for the custom events will be planned for future which can be used for communicating changes outside of a control without adding a column configuration.
  • Fix is obvious that we had to remove custom events and import the solution.


NullReferenceException while opening CRM form

September 19, 2012 Leave a comment

I was getting an exception when I open a “Account” record.

When I verify the CRM server Event Viewer I got this below “NullReferenceException” warning message



After spending some time I came to know that the problem was because of customization change I did recently


  • I deleted and recreated a custom field with same schema name but with different data type
  • I had the new field added on my ‘Account’ form


I can’t say that it is a fix but below step worked for me

  • Removed the field from the Form
  • Publish the customization
  • Add the field back to the Form

Here is a useful article which helped me