ITLec / PowerQueryBuilder

13 stars 5 forks source link

Activity entity generates an error. #7

Closed koenvb closed 6 years ago

koenvb commented 6 years ago

When trying to generate a fetch XML view for the activity entity I get the following error:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at ITLec.ChartGuy.PowerQueryBuilder.PowerQueryAttribute.GetPowerQueryAttributeByMetadata(AttributeMetadata attribute)
   at ITLec.ChartGuy.PowerQueryBuilder.MainForm.UpdateFetchXmlListView()
   at ITLec.ChartGuy.PowerQueryBuilder.MainForm.tsbUpdateFetchXml_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I had no issues generating the fetch XML for quotes / Leads/ Opportunities?

activity_entity

Not sure what would cause the issue. Restarting XrmToolbox does not work.

ITLec commented 6 years ago

Thanks a lot for your contribution, the issue has been solved. Next release will be within the next 24 hours. Issue cause:- .LogicalName + "id" Resolved by:- PrimaryIdAttribute

koenvb commented 6 years ago

Confirmed working on new release XrmToolbox: v 1.2018.7.27 Power Query: v 1.2018.7.20