QBSDK给出错误 [英] QBSDK giving error

查看:334
本文介绍了QBSDK给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用QuickBooks SDK(QBSDK)开发从QuickBooks到Postgres数据库的连接,然后再建立从Postgres数据库回到QuickBooks的连接。数据是客户名称,经过大量时间后,大多数数据都可以正常工作。从QuickBooks方面,我正在使用示例EventHandler来获取数据,然后调用一个程序加载到postgres db中。在Postgres方面,我有此处所述的NOTIFY / LISTEN >并返回QuickBooks。正如我所指出的,除了最后,一切正常。当我的程序尝试将客户名称添加到QuickBooks时,它显示以下错误,表明QuickBooks已打开。好吧,我知道它是打开的,因为我打开了它并且正在运行。我希望SDK仅将名称添加到QuickBooks中,而不给出错误消息。

I have been using the QuickBooks SDK (QBSDK) to develop a connection from QuickBooks to a postgres database and then also a connection from the postgres database back to QuickBooks. The data is the customer name and after a huge amount of time, it is all mostly working. From the QuickBooks side I am using the sample EventHandler to get the data and then I call a program to load into the postgres db. On the postgres side I have a NOTIFY/LISTEN as described here with a program going back to QuickBooks. As I indicated, everything works fine except at the end. When my program tries to add the customer name to QuickBooks, It gives the error below indicating that QuickBooks is open. Well, I know it is open, because I opened it and it is running. I want the SDK to just add the name into QuickBooks without giving the error message.

错误是:QuickBooks无法启动,因为它已经在运行。只有QB会计,QuickBooks簿记员和QuickBooks企业可以打开多个公司文件。

The error is: QuickBooks can't start because it is already running. Only QB Accountant, QuickBooks bookkeeper and QuickBooks enterprise can open more than one company file.

除postgres LISTEN / NOTIFY外,所有内容都在C ++中。我正在使用Windows 7和postgres 9.2。 QuickBooks是QuickBooks Pro2012。
如果我在没有运行QuickBooks的情况下运行postgres部分,它将添加它而不会出现问题。

Everything is in C++ except for the postgres LISTEN/NOTIFY. I am using Windows 7, and postgres 9.2. QuickBooks is QuickBooks Pro 2012. If I run the postgres part without QuickBooks running, it adds it without a problem.

因此,我知道QuickBooks正在运行但我只想让它在后台添加名称而不会出现错误。现在,它不会将其添加到QuickBooks中。某处有开关吗?购买其中一项建议的商品是否可以解决问题?我希望只使用普通的QuickBooks。我可以使用QBXML退出QuickBooks,运行客户名称添加,然后再次启动QuickBooks吗?我没有看到退出应用程序的XML操作。

So, I know that QuickBooks is running but I just want to have it add the name in the background without the error. Right now it does not add it to QuickBooks . Is there some switch somewhere? Would buying one of those suggested solve the problem? I was hoping to just use the plain QuickBooks instead. Can I use a QBXML to exit QuickBooks, run the customer name addition and then start QuickBooks again? I do not see an XML action that exits the application.

BTW,我讨论了此处

另外,如果存在是Postgres中的更改并且QB已打开,则会发生相同的错误。

Also, another problem is if there is a change in Postgres and QB is open, the same error occurs.

谢谢!

吉姆

推荐答案

事实证明,没有办法与QuickBooks进行两次连接。您只能安装一个,因此在运行sdktest应用程序时需要关闭QuickBooks应用程序。我没有测试是否可以使用其他QuickBooks应用程序之一(QB Accountant,QuickBooks簿记员和QuickBooks enterprise)...

It turns out that there is no way to do TWO connections to QuickBooks. You can have only one so the QuickBooks app needs to be shut down when the sdktest app is run. I did not test to see if one of the other QuickBooks apps (QB Accountant, QuickBooks bookkeeper and QuickBooks enterprise ) will work...

这篇关于QBSDK给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆