• PeachtreeException: "Can't start Btrieve Transaction."

    Sage 50US 2023 .NET SDK, calling PurchaseInvoice.Save() and received "Can't start Btrieve Transaction."

    Stack Trace:
    Sage.Peachtree.API.Exceptions.PeachtreeException: Can't start Btrieve Transaction.

  • How can I get the sales filtered by KEY?

    I am using the SDK, but I can't find how to filter by KEY use ID and/or KEY and it tells me that it is not possible

    Dim m_salesList = oCompanyContext.Factories.SalesInvoiceFactory.List()

    oFilterFact = FilterExpression.Equal(FilterExpression.Property…

  • .NET 5, 6 Support

    Hello.  Do we know when it might be possible to interface a .NET 5+ project with Sage 50?  Any idea of ETA or direction would be greatly appreciated.

    It looks like .NET Framework 4.8 was release just over 3 years ago (April 2019).

    If you're reading this and…

  • VendorReceiptFactory filtering

    I would like to filter the List with a customer ID.  The VB code looks like this:

         Dim p As Sage.Peachtree.API.VendorReceiptList = Me.company.Factories.VendorReceiptFactory.List()
         Dim vendorFilter = PropertyFilterExpression.Equal(PropertyFilterExpression…

  • ETA on .NET 5+ Compatibility with Sage 50 SDK/API?


    I was wondering if there is a rough timeline for compatibility with .NET 5+ (formerly known as .NET Core) with the Sage 50 SDK/API?

    Apologies if I'm missed a similar question on the forums; I made a best-effort to check before asking.  As far…

  • Sage.Peachtree.API v2021.1.1.176 - SalesInvoice.Save() Issue

    Has anyone seen/resolved the following error when trying to save a sales invoice using SalesInvoice.Save()?

    Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

    It worked fine before we switched…

  • Integrating Objets100cLib (Sage dll) to third party c# application

    Hi ,

    Greetings of the day !!!

    I need help integrating Objets100cLib (Sage dll) to third party c# application , can any one help with this ? i want to access data like suppliers/articles etc.

    Thanks in advance


    Hi FormerMember,

    I am getting RPC_E_SERVERFAULT error while I am trying to exporting the data using COM API C# code. I am able to login into Sage using APIs,I can delete the transaction but the Specifically I can not do the export and getting this error…

  • Company identifier always NULL?


    My company updated to Sage 50 2020. Since then a program, we wrote, that was working before (Sage 50 2017) stop working.

    Diving into the code I found that the CompanyIdentifier is not longer being populated and comes NULL, basically I am using…

  • Getting exception 'Non-zero amount must be rounded to whole currency' Sage 50 C# WPF?

    When I try to add an amount in AmountPaid field & if the amount = 55.23 then it throws an exception with stated text "Non-zero amount must be rounded to whole currency"

    I tried AmountPaid = Match.Ceiling(amount) which changes the 55.23 to…

  • Incompatible Company Version Exception

    I went to deploy a desktop application on a clients machine after completing development and testing.
    Upon authentication, I get the following exception message.  I verified that we are using the same version of Sage50 and the build number.
    Does anyone…

  • Unable to Access/ Open Sample Company in Sage50

    Dear Sage Support,

    Good Morning,

    Hope everyone is doing great,

    I'm having hard time connecting my .NET Application via .NET SDK for Sage50 Accounting.

    I have prepared an sample CONSOLE APPLICATION in order to test the authentication as per documentation…

  • Integrating Sage 50 Quantum Accounting 2019 with .NET Application

    I have built web application (.NET Application) that caters to business needs of my client.

    My client have been doing/ managing their accounting via Sage 50 Quantum Accounting Desktop Version software at their end.

    Now, since we as a part of their development…

  • Error installing console app

    I have created a windows service in a console application using TopShelf library. If i run the app directly it works but i when I try to install it I get an error of 

    Unhandled Exception: System.ArgumentException: Specified directory could not be

  • IProcserver 32 not found

    Hi ALL,

    I am working for a client, I am unable to connect with COM API on their machine. After a long investigation, I came to know there is an Iprocserver is not available on their Machine.

    Here is the reference image. if someone can help me.


  • COM API - New build issue.

    Hi All,

    I am trying to connect the Sage 50 US COM APIs 2019 - version 26. when I run my program which is written in the C#.Net is giving the below error.

    Creating an instance of the COM component with CLSID {49073E6E-C47A-41DD-BF5A-01184439577C} from…

  • How we can add customer note to any sales order through sage 50 api

    I am searching for a way around that how we can add customer notes on any existing SO through sage Peachtree API.

  • Sage 50 SDK installation on Windows 10

    Hi Expers:

    After my Sage 50 2018.2 SDK installation on Windows 10 I got problem when I tried to create a Login Object by COM:

    Unable to cast COM object of type 'System.__ComObject' to interface type 'PeachtreeAccounting.Login'.

    This operation…

  • NullReferenceException when creating invoice line items

    Getting this error when I try and add lines to a new sales invoice:


                            // Create invoice

                            var invoice = Company.Factories.SalesInvoiceFactory.Create();


                            // Invoice #, Date, Customer ID

                            invoice.CustomerReference = customer.Key;


  • There was a problem opening company.: (inner exception: FileNotFound)

    var companyId = GetCompany();

    // Request authorization from Sage 50 for our third-party application.
    AuthorizationResult authorizationResult = Session.RequestAccess(companyId);

    This line Session.RequestAccess throws a PeachtreeException: FileNo…

  • Help with Sage 50 Integration with SQL

    I am looking for a developer who can help with integration from SQL database in our custom ERP application to directly call up orders in SAGE 50 to create Invoices and share Customer Data.

  • SDK seeking permissions every time


    We are trying to build up an application using the Sage SDK to create invoices in the Sage 50. In our testing , we found that the Sage SDK is prompting for the user to give permission every time (even if it is same company file that we gave permissions…

  • Is SAGE 50 SDK available in x64 bit?

    Is SAGE 50 SDK available in x64 bit? We are trying to integrate with Microsoft CRM Online, which is x64......



  • Access 2016 reading to/from Peachtree

    I’ve built an access 16 dbase for my company (a small insurance brokerage) and I am now trying to learn if it is possible to have this read to and from the company’s Peachtree accounting software.

    If anybody can help me, I would be very grateful…

  • Update invoice using COM APIs Code.

    Hi All,

    I am trying to update invoice in Sage 50 US using COM APIs PeachWServer DLL. but it won't getting update, Can anyone help on this or give me comment or hint to resolve it?