Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Regular Contributor
JOE-B
Posts: 122
Registered: 03-12-2009
0

What is an Object Error 200?

Hi all,

 

first off, what is an Object Error 200?  I cann't seem to find any documentation on that error... I see a few questions relating to it, but no explanations.   what I am trying to do:  I am building a C# wrapper that I can use in different applications that will make it very easy for me to integrate in my other apps.   My testing a console app was working creating an AR customer object, reading out that data and updating a MySQL DB.   the only change I made was changing where the object was created (inside a switch{}) and I started getting this error?  now even when i remove the switch I still get the error!!!

 

connecting to MAS90 4.2.  the console app is running directly on the MAS server Windows 2003  Again it was working, but with no documentation on what that error is, it is hard to debug!  

 

the error happens trying to create the AR_Customer_BUS object

 

 

Joe Bartoli
IT Manager
Granitize Products inc
Regular Contributor
JOE-B
Posts: 122
Registered: 03-12-2009
0

Re: What is an Object Error 200?

After Hours of struggling with this, I figured it out 2 minutes after posting this  :smileytongue:   

 

the problem was a user rights issue, i forgot I had changed the user to a generic user for BOI (though I thought it had run correctly with this user, i guess not).  changed the user login info and all is well again :smileyhappy:

 

the question still remains:  What exactly is an Object Error 200?  and where can I get documentation?

Joe Bartoli
IT Manager
Granitize Products inc
Sage Employee
jepritch
Posts: 233
Registered: 08-25-2009
0

Re: What is an Object Error 200?

Hi Joe,

 

We use Error 200 for general setup issues.  We push this error on the creation of objects for things like, Security (as you found out), possible options not set up, or module integration errors.  If you get this error, usually we post an error message in the oSession.LastErrorMsg property as to what went wrong.

 

If you are within MAS and running a selection off the menu for which you do not have permission or a selection for an option that isn't turned on somewhere, we trigger the error 200, for our launcher to display the reason why.

 

Hope that helps

Elliott

Regular Contributor
JOE-B
Posts: 122
Registered: 03-12-2009
0

Re: What is an Object Error 200?

that helps tremendously!!!  did not think to check that value...  I ran it with the bad user (displaying the LastErrorMsg) and got a meaningful message!

 

thank you!   

 

Joe Bartoli
IT Manager
Granitize Products inc