Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

SQL Exception when adding SalesLineTax

Posted on by 1,035

Using Web Services for GP I'm adding a SalesLineTax to my SalesInvoiceLine in the following way:

SalesLineTax salesLineTax = new SalesLineTax();
salesLineTax.IsTaxableTax = isTaxable;
SalesLineTax[] salesLineTaxes = { salesLineTax };
salesInvoiceLine.Taxes = salesLineTaxes;

However when saving the Invoice I'm getting the following error message: "SQL Server Exception: Operation expects a parameter which was not supplied."

Which parameter of the SalesLineTax object is compulsory? Thanks in advance

*This post is locked for comments

  • Suggested answer
    Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: SQL Exception when adding SalesLineTax

    Something needs to be between the brackets in this line:

    SalesLineTax[  value missing here!     ] salesLineTaxes = { salesLineTax };

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans