+ button for a sub grid in a form is suppose to open a look up to add existing record but after 9.1 upgrade this is failing with the below error.
CrashReport:
FileName:/form/page.aspx
LineNumber:0
Function:XrmCore.Commands.AddFromSubGrid.addExistingFromSubGridAssociated
ErrorReport:<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<OriginContext>XMLHandler</OriginContext>
<OriginCorrelationId>{5d1c6ca0-b8c4-d650-b89c-b700810a9a41}</OriginCorrelationId>
<ScriptErrorDetails>
<Message>$v_1 is not a function</Message>
<ExceptionNumber>0</ExceptionNumber>
<Line>0</Line>
<URL>/form/page.aspx?lcid=1033&themeId=a49c4ae8-1ce2-e511-80fb-005056a10920&tstamp=6182116&updateTimeStamp=637969251142885373&userts=133076273723608153&ver=-311091485#etc=4400&pagetype=entityrecord&extraqs=%3fetc%3d4400%26id%3d%257bCE25C231-B018-ED11-8D9E-08002742A8A7%257d%26rskey%3d%257b7F68A34B-26F1-430F-B3EF-7079F2925C69%257d%26_gridType%3d4400&rskey=%7b7F68A34B-26F1-430F-B3EF-7079F2925C69%7d&pagemode=iframe&counter=1663153803701</URL>
<PageURL>/form/page.aspx?lcid=1033&themeId=a49c4ae8-1ce2-e511-80fb-005056a10920&tstamp=6182116&updateTimeStamp=637969251142885373&userts=133076273723608153&ver=-311091485#etc=4400&pagetype=entityrecord&extraqs=%3fetc%3d4400%26id%3d%257bCE25C231-B018-ED11-8D9E-08002742A8A7%257d%26rskey%3d%257b7F68A34B-26F1-430F-B3EF-7079F2925C69%257d%26_gridType%3d4400&rskey=%7b7F68A34B-26F1-430F-B3EF-7079F2925C69%7d&pagemode=iframe&counter=1663153803701</PageURL>
<Function>XrmCore.Commands.AddFromSubGrid.addExistingFromSubGridAssociated</Function>
<FunctionRaw></FunctionRaw>
<SourceScriptName>$webresource:Main_system_library.js</SourceScriptName>
<CallStack>
TypeError: $v_1 is not a function at Mscrm.GridCommandActions.checkInParentAndInvoke (http://win-stk8tk70krs:5555/_static/_common/scripts/commandbaractions.js?ver=-311091485:1:398122) at Mscrm.GridCommandActions.$1J (http://win-stk8tk70krs:5555/_static/_common/scripts/commandbaractions.js?ver=-311091485:1:397016) at Mscrm.GridCommandActions.addExistingFromSubGridAssociated (http://win-stk8tk70krs:5555/_static/_common/scripts/commandbaractions.js?ver=-311091485:1:398550) at AddFromSubGridLibraryLegacy.addExistingFromSubGridAssociated (<anonymous>:1:45804) at Mscrm.Utilities.executeJavascriptFunction (http://win-stk8tk70krs:5555/Advise36Core410/_common/global.ashx?ver=-311091485:6872:601502) at Mscrm.CommandHandler.$Cu_1 (http://win-stk8tk70krs:5555/_static/_controls/ribbon/ribbon.js?ver=-311091485:1:83210) at Mscrm.CommandHandler.$Ap_1 (http://win-stk8tk70krs:5555/_static/_controls/ribbon/ribbon.js?ver=-311091485:1:82550) at Mscrm.CommandHandler.handleCommand (http://win-stk8tk70krs:5555/_static/_controls/ribbon/ribbon.js?ver=-311091485:1:77461) at Mscrm.CommandBarData.executeCommand (http://win-stk8tk70krs:5555/_static/_controls/ribbon/ribbon.js?ver=-311091485:1:147786) at Mscrm.TurboGridControl.$6V_4 (http://win-stk8tk70krs:5555/_static/_grid/GridControl.js?ver=-311091485:1:271450) </CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36</BrowserUserAgent>
<BrowserLanguage>undefined</BrowserLanguage>
<SystemLanguage>undefined</SystemLanguage>
<UserLanguage>undefined</UserLanguage>
<ScreenResolution>1920x1070</ScreenResolution>
<ClientName>Web</ClientName>
<ClienState>Online</ClienState>
<ClientTime>2022-09-14T04:17:59</ClientTime>
</ClientInformation
>
</CrmScriptErrorReport>