Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Web services error creating SalesInvoice with negative commission amount

Posted on by Microsoft Employee

I am using web services to create an invoice in Dynamics GP. I can successfully create an invoice with a negative amount for an invoice line, but if I try to assign commissions to the invoice, I get the error "Input variable contains a negative value". According to the documentation for SalesCommission, the CommissionAmount can be negative if the extended price and unit price on a sales line are negative amounts; I have both fields set as negative amounts but still get this error.

In the CreateSalesInvoice policy, I am providing commissions and distributions.

Any ideas what's going wrong?

*This post is locked for comments

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans