Ok. I have upgraded to 5.4 ACCPAC. I am still getting the same error when calling my DLL from an ASP page. I even upgraded the DLL to VB 2005. It says "The session object was not opened". The error is -214746259
I am running on 5.2 I am going to upgrade to 5.4 and see what happens.
I am running the ACCPAC and the web site on the same machine.
I get an error message saying that the session was not created.
Rory
I also know that the credentials being passed through are ok. I saw another thread where the person said that it was there database id giving the hassles. I am not having a problem like that.
I looked carefully at article thread631-986269.
I have a ASP .NET DLL that connects through to the ACCPAC XAPI (I have also tried this using COMAPI).
When I call the DLL from a normal windows application, the sesion is created and everything runs fine.
Use:
Dim Session As New...
I am trying to extract Order History and Order Status using Visual Basic 6 and ACCPAC.xapisession.
The Order History is to extract the history of the items bought by a customer for a six month period. I therefore would pass in their Customer number and the relevant periods and then want to get...
Still an error. What I have noticed, is that you gave me the line of code
"Session.Company.HomeCurrency" is your code to extract price lists. When I try to execute this statement - it errors out. Also I the debugged the Sesion object and even though it was defined as xapisession, a lot of...
Thanks. I altered my statements like you said - no joy.
Any ideas why when I try to open the AR0024 view I get the error:
“ System error. Call to cpGetCompanyInformation failed [FALSE].”
I can open other views fine?
I have changed my code to this...
I got the error checking working properly and it gives the error I gave you above, but it also gives this error
"System error. Call to cpGetCompanyInformation failed [FALSE]."
HELP please - at a dead end!!
Hello zemp, here is my code. When it runs, and the ARCUSTOMER view is initialised, then I get the error "View: AR0024. View call failed". Can you see anything?
-----------------------------------------------------------
Set Session = CreateObject("ACCPAC.xapisession")
Session.Open...
Hello Zemp.
I did what you said, but it still bombs out when trying to open view IC480. Can this view be used?
What views do you use to extract item pricing?
If you read the item price using IC480 - what happens - does it work?
Rory
I have tried using COMAPI and XAPI. For the COM API, I use the following code:
=====================================================
Dim accSession As New AccpacCOMAPI.AccpacSession
accSession.Init "", "AS", "AS1000", "52A"
accSession.Open "ADMIN", "ADMIN", "RTCO", Date, 0, ""
Dim mDBLinkCmpRW...
I have successfully extracted information out of the Item views (IC0310).
I am now trying to extract out of the IC0480 - Item pricing - as I need to extract the item prices for my external application. The problem I have, is that when I come to init the view, I get an error saying that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.