locked
attributePlatformName cannot be null RRS feed

  • Question

  • Hi,

    I've run into an issue I haven't seen before (I have lost count of how many times this has happened, really, do you ever strike the same problem twice???) with the following error message:

    [2015-04-28 08:01:46.284] Process: w3wp |Organization:d112c59d-5192-e411-a8b8-00155d0a8302 |Thread:    3 |Category: Platform.Sdk |User: c56194d7-5192-e411-a8b8-00155d0a8302 |Level: Error |ReqId: 43bf9da8-df0f-45dc-8792-89a94517902e | VersionedPluginProxyStepBase.Execute  ilOffset = 0x65
    >Web Service Plug-in failed in SdkMessageProcessingStepId: {81CBBB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: account; Stage: 30; MessageName: Retrieve; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: Microsoft.Crm.CrmArgumentNullException: attributePlatformName
       at Microsoft.Crm.Exceptions.ThrowIfNull(Object parameter, String name)
       at Microsoft.Crm.Query.ColumnSetExpression.AddColumns(NameMappingType mapping, String[] attributeNames)
       at Microsoft.Crm.Query.EntityExpression.FromSdkQueryVisitor.Visit(ColumnSet columnSet)
       at Microsoft.Crm.Query.EntityExpression.InitializeColumnSet(String entityPlatformName, ColumnSet cs)
       at Microsoft.Crm.Extensibility.MonikerColumnSetRelatedEntitiesQueryToEntityExpressionConverter.InternalConvert(ICrmConversionContext context, Object[] inputFields)
       at Microsoft.Crm.Extensibility.ConverterBase.Convert(ICrmConversionContext context, Object[] inputFields)
       at Microsoft.Crm.Extensibility.ConversionDescription.Execute(ParameterCollection fieldValues, ICrmConversionContext context)
       at Microsoft.Crm.Extensibility.DictionaryMapper.Map(ParameterCollection inputs, ICrmConversionContext context)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
       at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    Inner Exception: System.ArgumentNullException: Value cannot be null.
    Parameter name: attributePlatformName

    Has anyone else seen this error? It's a CRM 2013 on premise with SP1UR2.

    Thanks


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Tuesday, April 28, 2015 8:19 AM

All replies

  • That is a strange one.  The 'Value cannot be null' implies that you are doing an update/create and haven't set something that is required.  Have you narrowed down/debugged your plugin to see where it's happening?  Maybe post the code so we can review it?
    Tuesday, April 28, 2015 12:14 PM
  • It is a strange one, and as you can see it's breaking in stage 30 of retrieve of Account so, not any code I have written...

    Thanks


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Tuesday, April 28, 2015 12:57 PM
  • I just experienced this as well. It started at 3:00 (by report; 2:35 by logs), by the time I logged in at 3:10 the issue appears to have subsided. Guessing it's something to do with reindexing, but will follow up if I learn of something solid.

    OnPrem CRM 2013 SP1UR1.

    To clarify, this occurred (for us) after we tried to search for a Contact, and then Open it. The opened record would throw the user an "Invalid Argument" error, while showing the above error in the trace logs.
    • Edited by Kyle Andersen Wednesday, May 6, 2015 10:41 AM adding clarificatiaon
    Wednesday, May 6, 2015 10:40 AM
  • I think  this is on related entity not on Contact itself.

    You can try to use Fiddler or Internet Explorer F12 Developer Tools - Network profiler to find on which retrieve do you have this error:

    Example default Contact form retrieves Opportunity and Case/Incident (screen from F12 Dev tools):

    Saturday, May 9, 2015 5:28 PM