• ASP.NET Error PRForms.dll

    Hello, I'm receiving an error " Could not load file or assembly 'PRForms.DLL' or one of its dependencies." when referencing Sage.Peachtree.API in an ASP.NET application. However, the same code works as a console app. How do I resolve this issue? …
  • 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 API Importing Question

    Hello everyone. I have a question about the Sage 50 SDK. I am trying to create a PO in Sage through the API. Using .Net and C#, I can see the Lines and the specific fields for the PO itself, but I am unsure how to set the Vendor the PO is linked to in…
  • Importing and Exporting using .NET API

    Hello Everyone, I am having trouble figuring out how to import and export to and from Sage 50 Quantum using the US SDK. I have gone through several of the sample apps and I am just not seeing how things are transacting. I want to import CSV files in…
  • Duplicates Customer Id skip and Import to sage 50

    Hi, I am using sage 50 U.S Edition and Visual Studio 2013. I need to import sales order csv file to sage 50 if customer id is not available in sage 50 customer details that sales order customer id will be import to customer details ,if already exists…
  • 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 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? Thansk, SF
  • Import using interop DLLs program

    Hi ALL, I have imported the Invoice record in Sage 50 US using interop dll program, But it is not returning GUID is. Can any one help me to get the working? string path = System.Windows.Forms.Application.StartupPath; string FileNameXML; string…
  • Add Purchase Invoice / also known as Purchase Journal/ also knows as GRV using Sage 50 U.S SDK 2018

    I wanted to add SaleInvoice using the SDK and found out that there is a method Company.Factories.SalesInvoiceFactory .Create(). But When I wanted to create PurchaseInvoice, I tried to look Create() Method in Company.Factories.PurchaseInvoiceFactory. But…
  • How to overwrite the sales tax using sdk

    We want to be able to write the Sales tax of a document back to sage using a third party application. From the .net dll, we have understood that the sales tax can only be calculated but not written to. But we want to know if there is any way we can edit…
  • My COM User ID and Password do not work

    I'm trying to use the sample COM project CSSDK and am having trouble logging in, I'm trying to log in with the User ID and Password I was sent by sage support to access the COM interface but I get the "Access is denied." message. What am I doing wrong…
  • Get Application Unique Key of a company

    Hello All, I have a created a new company. I need to access that file through my .net application. To begin connection it asks for "Application ID". I have searched in my sage sotware regarding id. I couldn't get. Where do I get my application id? …
  • Getting the rate of a Tax Code

    Hi, I'm using the .NET SDK and I cannot find anywhere the actual rate of a taxCode, is this property available at all? Thanks, Ignacio
  • update onhand on MasterStockItem

    Hi, Is there any way to update the onhand qyt in a MasterStockItem from the SDK?
  • How to get assembly component list using .net api ?

    How do I get the component list for an Assembly item using the SDK ? I can get the list of Assembly items using the AssemblyItemFactory, but it does not have a Bill of Materials or Components collection for each item. The only way I've found so far…
  • Sage 50 2017 could not be integrated with the dll generated by PeachwServer.tlb.

    Hi Experts, We have already an C# developed integration program to integrate with Sage 50 by using a dll generated from PeachwServer.tlb with tlbimp tool. It worked properly before Sage 50 2017. But we found it didn't work on Sage 50 2017.1 the latest…
  • Sage SDK Web Support

    Does the Sage 50 SDK support web applications? I'm attempting to create an ASP.NET application to talk with Sage back and forth. I added the API to the website with it simply starting a session but I receive an expection: Could not load file or assembly…
  • Can't export units of measure.

    When this line executes: var exporter = (Export)app. CreateExporter(PeachwIEObj.peachwIEObjUnitMeasure); I get this error: The import object id specified is not valid. Please check the import object in the documentation. The enum is evaluating to…
  • Using COM API user required Administrator rights ?

    Hi All, I am trying to import data using COM APIs with the C# programming. I got the Error "Your security settings do not allow the action you are trying in this area. Click, help for more information." Is this permission issue, Is while calling COM…
  • .Net and bill of materials.

    Can we access the component items of an AssemblyItem via .Net? I don't see anything obvious in the API. Maybe COM is the only way to get there?
  • .NET API and C# PeachtreeSession events don't seem to be triggering.

    I'm attempting to implement these events, but they don't seem to be triggered when I close either a company, or the Sage application itself. My code notifies me that the event handlers are being added, but the handlers never get called. private static…
  • SDK Performance is tooooo slow

    Hi, I have sage 50 accounting, the data are on a local server (within same network). We have no issue with the performance when using Sage 50 but when using the SDK it's really [:@]tooooooooooooo[:@] slow Listing companies takes 45 seconds! Finding…
  • 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…