Try "null-ing" the table-buffer: salestable=null before you change company.
________________________________ Fra: [email protected] [mailto:[EMAIL PROTECTED] På vegne af eldj_joax Sendt: 14. oktober 2008 19:51 Til: [email protected] Emne: [development-axapta] switching companies in Axapta with X++ - Error 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]

