Make sure all buffers used inside changecompany are initialized to null.
 
Changecompany(abc)
{
salesTable = 
}

--- On Tue, 10/14/08, eldj_joax <[EMAIL PROTECTED]> wrote:

From: eldj_joax <[EMAIL PROTECTED]>
Subject: [development-axapta] switching companies in Axapta with X++ - Error
To: [email protected]
Date: Tuesday, October 14, 2008, 11:20 PM






I am trying to switch between companies for a special report in AX 
4.0 SP2. 

I try to change to one of the 12 companies. I am able to change with 
the first 2 companies, but with the third one, for some reason, I am 
getting the following error information:

Unable to change company for Sales orders (SalesTable) .
The buffer contains a record which has been selected from the 
original company.

The company "ID" I am using to change companies is fetched from the 
table VirtualDataAreaList so I am sure it is part of a virtual 
company and also a valid CompanyID.

Help please!

 














      

[Non-text portions of this message have been removed]

Reply via email to