• Setting shipping/mailing addresses in Sales Orders and Purchase Orders

    I feel like there's something I'm missing. I can successfully create a Sales Order and a Purchase Order with line items in Sage50 using the .NET API (not ODBC). The issue I'm having is that while the correct vendor/customer are set, the address for…
  • Import Unit Cost for Inventory Adjustments with the COM API

    I'm trying to import the Unit Cost field among others for Inventory adjustments via the COM Interface. For some reason this one field likes to remain at 0.00 even when making a positive adjustment with a value greater than 0.00. Here is an example of…
  • Could not load file or assembly Sage.Peachtree.Domain

    Hi I have written a windows service that speaks to Sage 50. It runs on three computers. On only one computer, I see this in the logs: 2020-07-09 11:01:27.277 -04:00 [DBG] Could not load file or assembly 'Sage.Peachtree.Domain, Version=2020.2.0.219…
  • Vendor Names Changed On Save Without Any Reason

    This issue may or not be related to the Vendor.IsModified always being true ( https://www.sagecity.com/support_communities/sage50_accounting_us/f/sage-50-u-s-software-development-kit-sdk/132513/vendor-ismodified-is-always-true ). I'm posting it separately…
  • Vendor.IsModified is Always True?

    I'm trying to troubleshoot some problems I'm having, so I wrote a very simple .NET Framework v4.7.2 C# console application to narrow down where the problem is. One issue I've found is immediately after loading any Vendor record, IsModified is always true…
  • 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…
  • 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,…
  • 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…
  • 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…
  • 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…
  • .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…
  • 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…
  • Having connectivity issue with Sage 50 US 2016 Quantum Accounting Edition

    Hi All, We are having connectivity problems with Sage 50 US 2016 Quantum Accounting Edition. The version of the Sage 50 is " 23.2.00.0184 ". Our application is .Net application which is integrating with Sage 50 US. It is working fine on our end but…
  • 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…
  • SDK Crash to create a Customer instance

    I have developed an application that get customer information from Sage 50, this application never is stopped until the user decide to do it, I mean, when the user starts the process to get customer information from Sage 50, the application connects to…