This is a reposting of an article I originally wrote on my Developing for Dynamics GP blog.
I have seen this error pop up on a few Microsoft Dynamics GP 2013 systems, so I thought I would post some information to help you resolve it. …. Well, at least one possible cause of it.
When using Business Portal 6.0 for Microsoft Dynamics GP 2013 and click on the Approval Hierarchy List in Requisition Management, you receive the following error:
Server Error in ‘/’ Application.
Depending on the system settings you may or may not get the detail of the error itself, see the screenshots below:
To show better error information from Business Portal (BP), use the following steps on the Internet Information Server (IIS) machine:
- Navigate to the folder where BP’s IIS site is stored (e.g. C:inetpubwwwrootwssVirtualDirectories80)
- Make a backup copy of the Web.config file
- Open the Web.config in Notepad
- Search for the following line: CallStack=”false”
and change it to:
- Search for the following line: CustomErrors mode=”On”
and change it to:
- Save and close the Web.config
- Close and re-open IE if it’s open, then navigate to the BP Home page.
You will notice that the error with the detail references Line 151 in the source file /BusinessPortal/Applications/ReqMgmt/ApprovalTree/ApprovalTree.aspx
Looking at that line in ApprovalTree.aspx file, we can see that the CssClass property is missing the opening quote.
<asp:button id=”ModifyButton” CssClass=BrandingAndStyleActionButton” runat=”server” Text=”Modify”></asp:button> <asp:button id=”OKButton” CssClass=”BrandingAndStyleActionButton” runat=”server” Text=”OK”></asp:button>
Editing the ApprovalTree.aspx file to add the opening quote, fixes the issue
<asp:button id=”ModifyButton” CssClass=“BrandingAndStyleActionButton” runat=”server” Text=”Modify”></asp:button> <asp:button id=”OKButton” CssClass=”BrandingAndStyleActionButton” runat=”server” Text=”OK”></asp:button>
This is logged in the system as Problem Report 72313 and has been fixed in the code. However, it has not been made available as there has not been an update for Business Portal 6.0 released.
Update: You can now obtain the fix by installing Business Portal 6.1, see the details at Now Available: Business Portal 6.1 for Microsoft Dynamics GP 2013.
Or you can still fix the issue yourself, either by editing the file with Notepad.exe or by using the fixed file attached as an archive to the bottom of this article.
Hope this helps
14-Feb-2014: Updated to show release of Business Portal 6.1.
This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on http://www.winthropdc.com/blog.