cancel
Showing results for 
Search instead for 
Did you mean: 
Nissaya
Level 2

Incorrect value of Amount field QuickBooks SDK

The task is to pay invoices from deposites automatically for all customers. I create an application that will do everything when you click the button. I decided that it would be correct to create a customer payment that will pay for all open invoices. I work through qbXML and C# sdk. The XML query looks like this:

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <ReceivePaymentAddRq>
            <ReceivePaymentAdd>
                <CustomerRef>
                    <FullName>#1 ASAP Transport Inc</FullName>
                </CustomerRef>
                <RefNumber>LS-2-39</RefNumber>
                <TotalAmount>1000.00</TotalAmount>
                <AppliedToTxnAdd>
                    <TxnID>399DB-[removed]</TxnID>
                    <SetCredit>
                        <CreditTxnID>39A[removed]</CreditTxnID>
                        <AppliedAmount>0.00</AppliedAmount>
                    </SetCredit>
                </AppliedToTxnAdd>
            </ReceivePaymentAdd>
        </ReceivePaymentAddRq>
    </QBXMLMsgsRq>
</QBXML>

Response:

<?xml version="1.0" ?>
<QBXML>
    <QBXMLMsgsRs>
        <ReceivePaymentAddRs statusCode="3210" statusSeverity="Error" statusMessage="The 
           &quot;receive payment total amount&quot; field has an invalid value &quot;1000.00&quot;.  
           QuickBooks error message: This field contains an invalid character." />
    </QBXMLMsgsRs>
</QBXML>

I tried changing the point to a comma, removing decimal numbers. Then error 3040: There was an error when converting the amount & quot;1000" in the field & quot; TotalAmount".

I also tried sending a similar xml example from the documentation, but ended up with the same error. When you try to add a Receive Payment via c#, the objects in the C# example have the same error numbers. There is a similar problem with other operations where I specify amounts (for example, creating an invoice or changing the amount in it)

I use QuickBooks Enterprise Solutions 20.0

Solved
Best answer February 20, 2020

Best Answers
RaymondJayO
Moderator

Incorrect value of Amount field QuickBooks SDK

It's great to see you here today, @Nissaya. I'm here to ensure you'll get the right support in completing your task to automatically pay invoices from deposits for all customers. 


We have a separate and dedicated forum that handles SDK concerns for QuickBooks Desktop (QBDT) Enterprise. This is the place where developers, like you, engage with others to discuss programming concerns. I'd suggest posting your question from there. This way, our developers can provide you an accurate resolution to fix the error 3040 so you can complete your task. I'll guide you how. 

  1. Go to this link: https://help.developer.intuit.com/s/.
  2. Choose QuickBooks Desktop under What do you need help with?
  3. Click Ask a Question
  4. Log into your existing Intuit Developer Account or create a new one. 
  5. Enter "Fix incorrect value of Amount field for QuickBooks SDK and error 3040" as your concern. 
  6. Click Ask

 

The screenshot below shows you the last two steps. 

AskSDKQuestion.PNG

 

Additionally, you can always utilize the helpful SDK topics by going to the API Docs & Tools menu. Then, select QuickBooks Desktop and choose SDKs. You'll be able to browse them from the left panel of the page as seen in the screenshot below. 

SDKConcerns.PNG

 

You can count me in if you have other concerns. I'll gladly help, @Nissaya

View solution in original post

1 Comment
RaymondJayO
Moderator

Incorrect value of Amount field QuickBooks SDK

It's great to see you here today, @Nissaya. I'm here to ensure you'll get the right support in completing your task to automatically pay invoices from deposits for all customers. 


We have a separate and dedicated forum that handles SDK concerns for QuickBooks Desktop (QBDT) Enterprise. This is the place where developers, like you, engage with others to discuss programming concerns. I'd suggest posting your question from there. This way, our developers can provide you an accurate resolution to fix the error 3040 so you can complete your task. I'll guide you how. 

  1. Go to this link: https://help.developer.intuit.com/s/.
  2. Choose QuickBooks Desktop under What do you need help with?
  3. Click Ask a Question
  4. Log into your existing Intuit Developer Account or create a new one. 
  5. Enter "Fix incorrect value of Amount field for QuickBooks SDK and error 3040" as your concern. 
  6. Click Ask

 

The screenshot below shows you the last two steps. 

AskSDKQuestion.PNG

 

Additionally, you can always utilize the helpful SDK topics by going to the API Docs & Tools menu. Then, select QuickBooks Desktop and choose SDKs. You'll be able to browse them from the left panel of the page as seen in the screenshot below. 

SDKConcerns.PNG

 

You can count me in if you have other concerns. I'll gladly help, @Nissaya

View solution in original post

Sign in for the best experience
Ask questions, get answers, and join our large community of QuickBooks users.
Sign In / Sign Up

Need to get in touch?

Contact us