Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you click the Order Management Setup link in Business Portal for Dynamcis GP 2010. "Server Error in '/' Application. Object Reference not set to an instance of an Object"


Symptoms

You receive the following error message when you click the Order Management Setup link in Business Portal for Dynamics GP 2010:

Server Error in '/' Application. Object Reference not set to an instance of an Object

This error occurs if a previous version of the Dynamics database was copied over during the upgrade.

↑ Back to the top


Cause

The Role Name field is incorrect in the MbfRole table. 

In previous version of Business Portal for Dynamics GP the Order Management Administrator role was named Order Management Admin. In Business Portal for Dynamics GP 2010 this role has been changed to Order Management Administrator.

↑ Back to the top


Resolution

Follow these steps to resolve this problem.


Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs.

Step 1

Start the Support Administrator Console, Microsoft SQL Query Analyzer, or SQL Server Management Studio. To do this, use one of the following methods depending on the program that you are using.

Method 1: For SQL Server Desktop Engine

If you are using SQL Server Desktop Engine (also known as MSDE 2000), start the Support Administrator Console. To do this, click Start, point to All Programs, point to Microsoft Administrator Console, and then click Support Administrator Console.

Method 2: For SQL Server 2000

If you are using SQL Server 2000, start SQL Query Analyzer. To do this, click Start, point to All Programs, point to Microsoft SQL Server, and then click Query Analyzer.

Method 3: For SQL Server 2005

If you are using SQL Server 2005, start SQL Server Management Studio. To do this, click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Server Management Studio.

Method 4: For SQL Server 2008

If you are using SQL Server 2008, start SQL Server Management Studio. To do this, click Start, point to All Programs, point to Microsoft SQL Server 2008, and then click SQL Server Management Studio.


Step 2

Run the following statement against the Dynamics database:

UPDATE DYNAMICS..MbfRole set Name = 'Order Management Administrator' where Name = 'Order Management Admin'

↑ Back to the top


More Information

The complete error message displayed will be the following.

Object not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object not set to an instance of an object.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.GreatPlains.Web.OrderManagement.UserHelper.IsUserInRole(String role)
icrosoft.GreatPlains.Web.OrderManagement.EOrderPage.SecurityCheckAdmins()
icrosoft.GreatPlains.Web.OrderManagement.OrderSetup.SecurityCheck()
Microsoft.GreatPlains.Web.OrderManagement.EOrderPage.OnInit(EventArgs e)
Microsoft.GreatPlains.Web.OrderManagement.OrderSetup.OnInit(EventArgs e)
System.Web.UI.Control.InitRecursive(Control namingContainer)
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, bposs, kbgreatplainsbp, kb

↑ Back to the top

Article Info
Article ID : 2461641
Revision : 1
Created on : 1/7/2017
Published on : 8/5/2011
Exists online : False
Views : 110