Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ACCPAC Session Not Initilaized 1

Status
Not open for further replies.

SLICan

IS-IT--Management
May 28, 2009
23
CA
We have a .net application which is written to communicate with ACCPAC 5.2. We use AccpacCOMAPI to connect to ACCPAC. Our problem is we are not always able to establish connection, sometimes we can, sometimes we cannot. We tried to trace the problem and found it stops at session initialization (AccpacSession.Init) and the message is "Session is not initialized". To fix this problem, we'd need to restart the .net application pool. Does anybody know how to fix the problem? Any reply will be greatly appreciated. Thanks.
 
Djangman, agreed. yes, it pretty cool ACCPAC sees the AR invoice as soon as Create Invoice is clicked.
 
Writing directly to the Accpac tables is always risky and not advised, there is way too much margin for error. You can create an AR invoice by setting about 5 fields in the API, by comparison you need to set hundreds of fields if writing to the tables. To batch the transactions add a boolean field to your table and then set this once the transactions have been sent to Accpac, its simple and clean.
 
Just brain storming, since it always happens at the 1st attempt to connect everyday, would it be possible that it is casused by web site configuration improper setting?
 
Now I remeember why it is real time update instead of batching. We tried to elimitate one step (either submit the update job by user or schedule an update job). Too ideal, isn't it?
 
Totally ideal. That's why most of us Accpac professionals abandoned Accpac's web interface years ago. First, it's been flaky. Second, 99% of our users don't need real-time results.

You do know that with the upcoming version 6, all of your code is moot, right?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top