• Generate Auto number for sales invoice and sales order

    Hi All, How to get next invoice number using peactree SDK (interop.peachwserver.dll) Any help on this will be appreciated. Thanks.
  • How to set date range for customer export? sage50 api question.

    Im exporting sage50 customer details in this code. Please let me know how can I set date range to the exporter object so that will pull only contact updates within certain dates. Code- exporter = (Export)ptApp.CreateExporter(PeachwIEObj.peachwIEObjContactsList…
  • 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…
  • ValidationException when building CustomerCreditMemo - Sage 50 SDK .NET

    Greetings all, We use the .NET SDK for Sage 50 to integrate our software with Sage 50. I've got a situation where we're trying to make a Credit Memo in our software to push over in to sage 50. During a relatively routine step, we are getting a Sage ValidationException…
  • Sage 2018 - upgraded to 2019 and then downgraded back to 2018, now API won't work

    We have written a program for one of our clients using the Sage Peachtree API. Every time they upgrade versions, we always have to get the latest DLLs and rebuild our app to make it work again. However recently they say that they installed Sage 2019,…
  • 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; invoice.ReferenceNumber…
  • There was a problem opening company.: (inner exception: FileNotFound)

    var companyId = GetCompany(); try { // Request authorization from Sage 50 for our third-party application. AuthorizationResult authorizationResult = Session.RequestAccess(companyId); This line Session.RequestAccess throws a PeachtreeException: FileNotFound…
  • Sage sdk singleton error

    FormerMember
    FormerMember
    Hi, We use the sage sdk framework for a tool who works well, but for 90% of installation case, we have a "Sage.sdk.singleton" during the connection process. In local, we can bug fix this by reinstall Sage. but for our clients, that's more complicated…
  • update onhand on MasterStockItem

    Hi, Is there any way to update the onhand qyt in a MasterStockItem from the SDK?
  • CriptographicException and System.InvalidOperationException

    I can hit all the sample databases and my private database locally; however, when deployed I get this exception: System.Security.Cryptography.CryptographicException","StackTrace": " at Sage.Peachtree.API.PeachtreeSession.VerifyOrRequestAccess(CompanyIdentifier…
  • An error occurred while importing! This happened for Field Name: EmpEE Fld5-Calc Name

    In the managedCOM I used BOEmployees.LoadAll to pull down an employee I had previously entered. With out editing anything, i saved it back into the COM using BOEmployee.SaveAll. I get this error off of importer.Import(): System.Runtime.InteropServices…
  • Sage 50 2016 SDK - The type or namespace name 'Sage' could not be found (are you missing a using directive or an assembly reference?)

    Hi, I tried to connect to Sage 50 2016 but It is impossible, when I compile my code, I get this error: Error 4 The type or namespace name 'Sage' could not be found (are you missing a using directive or an assembly reference?) It is a little weird…
  • C# GetApplication returns null with Peachtree 2008

    I am creating an automated import of Purchase Invoices for a client who is using Peachtree 2008 Premier, and I've downloaded Sage 50 2016.0 SDK. I'm using the credentials that were provided when I downloaded the SDK and the function returns NULL. When…
  • Cannot send journal to Sage 50 US via SDK importer

    I am trying to use the SDK (COM) to transfer a journal entry to Sage 50 (Peactree) but cannot make it work. I can see the import status screen flash out and there is no error occurs during the import; but nothing appears in the sage 50 journal entry report…
  • Purchase orders and character limits

    Currently i am working on a program meant to create purchase orders using excel files to import some data into said order. So far the only problem i seem to keep having is that certain things, such as the Term and Address fields have a "Character limit…
  • SDK Getting Started

    I am a senior developer who is VERY new to Sage. I haven't ever used it or even seen it. A client wants me to use the SDK to get some very basic invoice and payment information out of Sage 50, but even the "Getting Started" info around here seems a little…
  • setting the ReferenceNumber when creating (importing) a new SalesOrder into Sage50

    Hi, What is the recommended way to set the ReferenceNumber when creating a new SalesOrder. Currently I'm doing this: var invoiceList = sageCompany.Factories.SalesOrderFactory.List(); invoiceList.Load(); var top1 = invoiceList.OrderByDescending(x …
  • SDK Quote Generation

    I have an application that creates new quotes via the SDK. These quotes appear to be correct, but when I go to the Sage application and convert one of those new quotes, the Invoice Due Date is not being set. I set what I believe are the appropriate properties…
  • Sage 50 could not be opened becausethe company data location .... could not be accessed

    Hi, I have a problem under Windows 8 and Sage 50(2013). When I made a connection to PT from SDK COM objects I had the following error: Sage 50 could not be opened becausethe company data location .... could not be accessed. If this path is correct…
  • Add "date due" into an invoice from API SDK

    Hi, I am developing an application to enter an invoice to Peachtree using the API .NET SDK for Sage 50 2013 , and I want to set the date due into the invoice object ( I noted that the property is visible and it can accept a nulleable value) but when I…
  • Upgrade to 2014 Sage-50 US edition causing me major headaches

    Hello, I was prompted to perform the upgrade to 2014 Sage-50 US Edition. Was prompted to convert database. Afterward, when I attempted to use the Sage .NET API to talk to it, I ran into errors... Sage.Peachtree.API.Exceptions.UntranslatedException…
  • Adding Freight to SO

    Hi, Does anyone have a sample, or suggestion on how I can add the Freight charge to a Sales Order imported into Sage from the COM interface via XML. I looked and looked and can get everything else imported but not that. Thanks!! Andreas