forums.frontrange.com Forum Index
Contact | Site Map | Global Sites
forums.frontrange.com
FrontRange Solutions Community Forum
 
FAQFAQ
SearchSearch
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Attention Forum Members

Forums.frontrange.com has been set to “Read Only” status.  You can no longer start new discussions or add/edit existing threads.  Instead, please access FrontRange Connect at www.frontrange.com/community and create your account for the FrontRange virtual community, FrontRange Connect

Sign up for an account today.  Participate in this interactive community forum and leverage the new features and functionality by going to www.frontrange.com/community.

FrontRange Connect provides users with a dependable, secure and feature-rich experience. 

Benefits of FrontRange Connect include:

·       Post discussions and provide comments just as you did in the Forum

·       The ability to create interactive Wikis, a shared workspace where you can build a knowledgebase, develop documentation, share ideas and experiences, and more

·       Additional features not found on the Forum including Event Calendaring, ability to schedule Meetings, Private Messaging and more

·       Improved stability and security over FrontRange Forum

·       Get support and resources for all FrontRange products in one location

·       A network of FrontRange experts and fellow FrontRange product users providing thousands of combined years of experience in one place

 


GMAPI call=LoadAPI return error -31703

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    forums.frontrange.com Forum Index -> GoldMine API
View previous topic :: View next topic  
Author Message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Mon Jul 24, 2006 10:06 pm    Post subject: GMAPI call=LoadAPI return error -31703 Reply with quote

Recently we upgrade from version 6.7 to version 7. My old code used DLL, it was working before and now return loadBDE error -4, so I try to switch to XML for testing. Here is my XML string:

<GMAPI call=\"LoadAPI\">
   <data name=\"User\">TOMD</data>
   <data name=\"Password\">abcd</data>
   <data name=\"SysDir\">h:\\goldmine7\\</data>
   <data name=\"GoldDir\">Goldmine7:</data>
   <data name=\"ComDir\">Goldmine7:</data>
   <data name=\"SQLUser\">sa</data>
   <data name=\"SQLPassword\"></data>
</GMAPI>

and result of the ExecuteCommand is:

<GMAPI call=\"LoadAPI\">
   <status code=\"-31703\">The call passed was not recognised as valid.</status>
</GMAPI>

Could anyone help me with this error, the XML string is correct, I've also test with CommonDir instead of ComDir but error is the same.

Thank a lot for your help,
Tom Question
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 6:52 am    Post subject: Reply with quote

as you can see in the sticky post http://forums.frontrange.com/viewtopic.php?t=25 BDE -4 --  Failed to validate password , so check your username/password!
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 3:26 pm    Post subject: Reply with quote

Thank Sebatian, I'm careful check for that because my password is very simple but it's still fail. Actually, I used *DDE_LOGIN_CREDENTIALS* and the error is -4, if I pass in user name TOMD and pass: abcd, it returned error -5, I copied all the exe and dll from my server to override my local folder, run again and it returned the error -20 (datadict.xml is not correct), I overrided the datadict.xml from the server, the error is still -20. Another thing is that, anytime I run install Goldmine locally, it is error out that my install can not install locally in workstation, but it runs when I copy the dll and exe over from server.

Thanks a lot for your help.
Tom
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 5:38 pm    Post subject: Reply with quote

hmm, did you try to unload any BDE application before you try the DLL-things ?
if not, give it a try :)
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 6:29 pm    Post subject: Reply with quote

Thank you Sebastian, anyway.
I found the trouble that cause the error -4, that's because my exe and dll files version in the Windows\system32 folder did not match with those files in the server, I copied it over that solved my trouble, I can use API LoadBDE login to the Goldmine, but I still want to solve my trouble with GMXML by using GMAPI call = "LoadAPI", it still returns error:
<GMAPI call=\"LoadAPI\">
   <status code=\"-31703\">The call passed was not recognised as valid.</status>
</GMAPI>

TomD
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 7:49 pm    Post subject: Reply with quote

i think you use the
GoldMine.UI.ExecuteCommand function to execute your login.

UI is similear to DDE (interact with loaded application)

you have to use the
GoldMine.GoldMineData.ExecuteCommand
for your LoadAPI Command.
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 8:19 pm    Post subject: Reply with quote

You seem to be running the original release of GM7 - upgrade to the latest.
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 8:23 pm    Post subject: Reply with quote

Yes, Sebastian.
I used:
strXML = "<GMAPI call=\"LoadAPI\">" +
  "<data name=\"User\">*DDE_LOGIN_CREDENTIALS*</data>" +
  "<data name=\"Password\">" + strDDEPass + "</data>" +
  "<data name=\"SysDir\">" + strSysDir + "</data>" +
  "<data name=\"GoldDir\">" + strGoldDir + "</data>" +
  "<data name=\"ComDir\">" + strCommdir + "</data>" +
  "<data name=\"SQLUser\">" + SQL_USERID + "</data>" +
  "<data name=\"SQLPassword\">" + SQL_USERPWD + "</data>" +
"</GMAPI>";
strResult = GoldMine.UIClass.ExecuteCommand(strXML);
the result as I showed you:
 <GMAPI call=\"LoadAPI\">
   <status code=\"-31703\">The call passed was not recognised as valid.</status>
 </GMAPI>"

ExecuteCommand is successful if I use:
<GMAPI call=\"GetLoginCredentials\"></GMAPI>
because when I pass the result from GetLoginCredentials to the LoadBDE (API command from Gm7s32.dll). I also have good result for strSysDir with:
<GMAPI call=\"Macro\"><data name=\"Macro\">&amp;SysDir</data></GMAPI>

Regards,
TomD
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 8:27 pm    Post subject: Reply with quote

Please look here
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 8:28 pm    Post subject: Reply with quote

Hi John,
I have gmw7.exe --> GoldMine 7.0 for Windows 98/2000/XP, version: 7.0.60526.0
Does it the latest upgrade?

Regards,
TomD
Back to top
View user's profile Send private message
1



Joined: 07 Sep 2007
Posts: 0

PostPosted: Tue Jul 25, 2006 8:32 pm    Post subject: Reply with quote

that's correct.

actually - delete the copies of all GM dlls in your Windows/System32 directory, then run GMW7.exe (the main GM exe) and login once with admin level rights - this will put everything you need where you need it.

If you have installed GM7 locally to the default location (%programfiles%/goldmine/goldmine), then go into the GM install dir and run regsvr32.exe against gmxmlapi.dll to be sure.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    forums.frontrange.com Forum Index -> GoldMine API All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group