Business Portal Requisitions Management Approval Hierarchy List: Server Error in ‘/’ Application

David Meego - Click for blog homepageThis 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:


Click to expand screenshot without detail

To show better error information from Business Portal (BP), use the following steps on the Internet Information Server (IIS) machine:

  1. Navigate to the folder where BP’s IIS site is stored (e.g. C:inetpubwwwrootwssVirtualDirectories80)
  2. Make a backup copy of the Web.config file
  3. Open the Web.config in Notepad
  4. Search for the following line:    CallStack=”false”

    and change it to:

        CallStack=”true”

  5. Search for the following line:    CustomErrors mode=”On”

    and change it to:

        CustomErrors mode=”Off”

  6. Save and close the Web.config
  7. Close and re-open IE if it’s open, then navigate to the BP Home page.

 


Click to expand screenshot with detail

 

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

David

14-Feb-2014: Updated to show release of Business Portal 6.1.

Fixed ApprovalTree.zip

This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on http://www.winthropdc.com/blog.

Please post feedback or comments

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.