"Cannot read property 'getField' of undefined" error in consoleIssue When a user is opening Service Portal, there is a console error Cannot read property 'getField' of undefined. It can be caused by many reasons. CauseOne of the reasons for this error is : The Contextual Search - Inline Results widget is used on the Service Portal index page. The contextual search must be used in forms(e.g. incident, catalog) where depending on the input in a specific field(e.g. Short Description), the search result will populate. It shouldn't be used in the homepage. If the Contextual search widget is used on the index page, on the Load of service portal home page, the system will search for input. But, on the homepage, as there is no such field(e.g. short description), the system will throw error Cannot read property 'getField' of undefined.ResolutionFrom the Service Portal index page, removing the Contextual Search - Inline Results widget will remove the console error.