I was shown a 'Unable to display this Web Part' error when trying to view a BDC list, this was the steps I took to get rid of that error.
Below the error was the ID 27c287c1-c37d-42d8-8c98-f28d87aa587e
I looked into the SharePoint logs found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS and check the corresponding ID
This was shown,
01/13/2012 09:28:58.91 w3wp.exe (0x26B4) 0x3608 SharePoint Foundation Web Parts 89a1 High Error while executing web part: Microsoft.BusinessData.MetadataModel.InvalidMetadataObjectException: Cannot find Property with name 'bcdCompanyName' on the parent object. The parent object may be returned by the LobSystem (External System) or it is created to be sent to LobSystem as input. This Property is referred to by child TypeDescriptor with Name 'bcdCompanyName' and Id '292' on Parameter with Name 'returnParameter' on Method with Name 'ReadList' on Entity (External Content Type) with Name 'Entity1' in Namespace 'SalesBDCModel.BdcModel1'. at Microsoft.SharePoint.BusinessData.Infrastructure.DotNetTypeReflector.GetValueFromInstanceUsingChildTypeDescriptor(Object instance, ITypeDescriptor typeDescriptor) at Microsoft.SharePoint.BusinessData.Runtime.FieldValueHelpers.GetValue(Obje... 27c287c1-c37d-42d8-8c98-f28d87aa587e
I had the entity name wrong, after changing from bcd to bdc in the Entity Model, I was no longer seeing the error.
No comments:
Post a Comment