Maximo Wire - The IBM Maximo Help & Discussion Forum
May 20, 2012, 10:10:29 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: MXEMPACTInterface - need help forming MXGLAccount  (Read 606 times)
0 Members and 1 Guest are viewing this topic.
rdgrimes
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: September 29, 2010, 01:01:59 am »

Ok, so, I've tried this in every combination I can figure, but, since I haven't found any documentation on the details behind the web services, I'm in need of some help. Everything I try throws an error:

"javax.xml.ws.soap.SOAPFaultException: psdi.util.MXApplicationException: Not a valid GL account. Either the required components are not filled or the component values are not valid."

Here's my most recent, of many attempts, to code this correctly:

Code:
MXGLAccount glAccount = new MXGLAccount();
glAccount.setVALUE("431350-7460-12");
glAccount.getGLCOMP().add(new MXGLComponent("431350", 0);
glAccount.getGLCOMP().add(new MXGLComponent("7460", 1);
glAccount.getGLCOMP().add(new MXGLComponent("12", 2);

labor.setGLDEBITACCT(glAccount);

I've used WSDL2JAVA to generate the classes, and I've overloaded the MXGLComponent constructor to allow me to set both value and order.

Thanks for any help.

Ron Grimes
Logged
rdgrimes
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #1 on: September 29, 2010, 08:49:42 pm »

Found the problem. Turns out the error was being thrown because the G/L Account I was trying to add to the LABTRANS record didn't match what was in the WorkOrder table for the given Work Order #. At least, that's what I suspect because, after I changed the G/L account to match the one defined in the WorkOrder record, it went in just fine. The G/L I was previously using is valid, just apparently not for the given WO.

So, thanks again, IBM, for yet another highly informative error message that made it easy to know what the problem was. A better message would be to indicate the G/L Account does not match what is in the WorkOrder table. The way it's currently stated, I was thinking that I failed to form the MXGLAccount object correctly.

[This line left intentionally blank].

Ron
« Last Edit: September 29, 2010, 08:53:07 pm by rdgrimes » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!