Happy Business Starts Here

Valued Scholar

ORDER BUILDER ERROR MESSAGE

I am running Soap API against Zuora from Salesforce using Order Builder. 
Occasionally, the Order Builder may return the following error message.

 

========================================================= 
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:createResponse xmlns:ns1="http://api.zuora.com/"><ns1:result><ns1:Id>2c92a0fe5f912d8e015fa0aa58ce2724</ns1:Id><ns1Smiley Frustrateduccess>true<...Smiley Frustrated>
=========================================================

 

When this error occurs, API execution is normally terminated as described as "Success" = true. 
However, since the return value from Order Builder is "Success" = false, it seems that the error ended. 
If someone knows, please tell me the cause and measures of this phenomenon.

8 REPLIES 8
Support SME

Re: ORDER BUILDER ERROR MESSAGE

Hi @kimura-tomohiro sorry for the delay in responding back to this post.

Could you please post the error message that you get in the Response? I do not seem to see it in the post. Sorry if i am missing anything obvious.

Also, what is the version of ZQuote and Z360 that you are on?

 

Thank you

Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Valued Scholar

Re: ORDER BUILDER ERROR MESSAGE

Hi doyeli,

Thank you for your reply.
I will provide error information that occurred recently.
It is a log when zamend () is performed after zlogin () in the Apex class.
I have normally terminated to zamend (), but the error message is returning the contents of zlogin (). (I checked with Zuora's data.)

 

■Zuora.zRemoteException.getMessage()
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:loginResponse xmlns:ns1="http://api.zuora.com/"><ns1:result><ns1:Session>Ok0tWsiV9oXyVd6kZXu9g8M_I3bEtcul6UJoiWZ-02nP_vASkkodob4d7gk0aOIwY08oyBIQQM49k1j_4gQ2DPBxROyukY6mid7_wkoywQrIxdby7mZtB2quH4WQ8WilHXdfiCBlBvDTg5NnnGuFmJ_KM_rnqaX5uUu_Mc-V-nxlZXnnHvl20-Y5rP9NsjxTe4QfL_c79jWKpgdiBStEEAfu_g1ugvtSKlYpzJCiZTErPwK3uxTarxwNr3CAz777pTe4P22105JH3CTIVsCR3NEIA9OmRkrTkUNzGhFSDYSRnP4WDXvpEgvFHz99jPSvHgbT0DBgfogmQDc4CJh7R391DAo7pzHQi_wJgUT10Dk=</ns1:Session><ns1:ServerUrl>https://www.zuora.com/apps/services/a/86.0</ns1:ServerUrl></ns1:result></ns1:loginResponse></soapenv:Body></soapenv:Envelope>

■Zuora.zApi.loggers(logger=Zuora.zApi.logger)
logger = Zuora API: login [01/12/2017 21:18:20.207 - 01/12/2017 21:18:35.611]: 
SOAP Request: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:obj="http://object.api.zuora.com/" xmlns:api="http://api.zuora.com/"><env:Header /><env:Body><api:login><api:username>xxxx@test.com</api:username><api:password>***********</api:password></api:login></env:Body></env:Envelope>
SOAP Response: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:loginResponse xmlns:ns1="http://api.zuora.com/"><ns1:result><ns1:Session>Ok0tWsiV9oXyVd6kZXu9g8M_I3bEtcul6UJoiWZ-02nP_vASkkodob4d7gk0aOIwY08oyBIQQM49k1j_4gQ2DPBxROyukY6mid7_wkoywQrIxdby7mZtB2quH4WQ8WilHXdfiCBlBvDTg5NnnGuFmJ_KM_rnqaX5uUu_Mc-V-nxlZXnnHvl20-Y5rP9NsjxTe4QfL_c79jWKpgdiBStEEAfu_g1ugvtSKlYpzJCiZTErPwK3uxTarxwNr3CAz777pTe4P22105JH3CTIVsCR3NEIA9OmRkrTkUNzGhFSDYSRnP4WDXvpEgvFHz99jPSvHgbT0DBgfogmQDc4CJh7R391DAo7pzHQi_wJgUT10Dk=</ns1:Session><ns1:ServerUrl>https://www.zuora.com/apps/services/a/86.0</ns1:ServerUrl></ns1:result></ns1:loginResponse></soapenv:Body></soapenv:Envelope>

logger = Zuora API: amend [01/12/2017 21:18:35.628 - 01/12/2017 21:18:36.245]: 
SOAP Request: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:obj="http://object.api.zuora.com/" xmlns:api="http://api.zuora.com/"><env:Header><api:SessionHeader><api:session>Ok0tWsiV9oXyVd6kZXu9g8M_I3bEtcul6UJoiWZ-02nP_vASkkodob4d7gk0aOIwY08oyBIQQM49k1j_4gQ2DPBxROyukY6mid7_wkoywQrIxdby7mZtB2quH4WQ8WilHXdfiCBlBvDTg5NnnGuFmJ_KM_rnqaX5uUu_Mc-V-nxlZXnnHvl20-Y5rP9NsjxTe4QfL_c79jWKpgdiBStEEAfu_g1ugvtSKlYpzJCiZTErPwK3uxTarxwNr3CAz777pTe4P22105JH3CTIVsCR3NEIA9OmRkrTkUNzGhFSDYSRnP4WDXvpEgvFHz99jPSvHgbT0DBgfogmQDc4CJh7R391DAo7pzHQi_wJgUT10Dk=</api:session></api:SessionHeader></env:Header><env:Body><api:amend><api:requests><api:Amendments><obj:ContractEffectiveDate>2018-01-01</obj:ContractEffectiveDate><obj:CustomerAcceptanceDate>2018-01-01</obj:CustomerAcceptanceDate><obj:Name>Renew</obj:Name><obj:ServiceActivationDate>2018-01-01</obj:ServiceActivationDate><obj:SubscriptionId>2c92a0fe5f33da0f015f34aea66b633a</obj:SubscriptionId><obj:Type>Renewal</obj:Type></api:Amendments><api:AmendOptions><api:GenerateInvoice>false</api:GenerateInvoice><api:ProcessPayments>false</api:ProcessPayments></api:AmendOptions></api:requests></api:amend></env:Body></env:Envelope>
SOAP Response: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:loginResponse xmlns:ns1="http://api.zuora.com/"><ns1:result><ns1:Session>Ok0tWsiV9oXyVd6kZXu9g8M_I3bEtcul6UJoiWZ-02nP_vASkkodob4d7gk0aOIwY08oyBIQQM49k1j_4gQ2DPBxROyukY6mid7_wkoywQrIxdby7mZtB2quH4WQ8WilHXdfiCBlBvDTg5NnnGuFmJ_KM_rnqaX5uUu_Mc-V-nxlZXnnHvl20-Y5rP9NsjxTe4QfL_c79jWKpgdiBStEEAfu_g1ugvtSKlYpzJCiZTErPwK3uxTarxwNr3CAz777pTe4P22105JH3CTIVsCR3NEIA9OmRkrTkUNzGhFSDYSRnP4WDXvpEgvFHz99jPSvHgbT0DBgfogmQDc4CJh7R391DAo7pzHQi_wJgUT10Dk=</ns1:Session><ns1:ServerUrl>https://www.zuora.com/apps/services/a/86.0</ns1:ServerUrl></ns1:result></ns1:loginResponse></soapenv:Body></soapenv:Envelope>

The things I want to know are:
1. Cause of zRemoteException
2. Despite catching an Exception, why the subsequent processing was successful
3. How to prevent similar errors

As long as I look at the log, I am concerned about the following:
1. It takes 15 seconds for zlogin ()
2. The content of the response of zamend () is incorrect

The version of Z4SF is as follows.
ZQuote: Version 8.8
Z 360: Version 4.8

Thank you
Tomohiro Kimura

Guru

Re: ORDER BUILDER ERROR MESSAGE

We see this issue many times every day and are still on version 7. This started in the June-July 17 time frame. It is causing us many customer facing errors. We were told there was a bug in Zuora's retry code when there was a failure in the communication.  Zuora worked with Salesforce engineers to diagnose. The results are always the previous calls' results - not always the login response. We were told this was fixed in version 8.10 of zQuotes.  Maybe you are able to upgrade. (For many reasons we were unable to upgrade to 8 and have zquotes 9 on our radar.)

 

From our code we have no way of knowing if the initial SOAP call succeeded as we got an error - sometimes the data is correct in Zuora and sometimes not. It is proving impossible to write appropriate error handling for these ZRemoteExceptions.

 

I would like to inform you that the issue reported in (COM-12366) has been addressed in ZQuote 8.10n release.

 

@doyeli  

 

@kimura-tomohiro If upgrading works for you please report back here,

Maggie Longshore
Support SME

Re: ORDER BUILDER ERROR MESSAGE

Hi @MaggieL, Thank you. Yes, this seems to be the sama issue that you have documented.

Hi @kimura-tomohiro, As maggie mentioned, this has been addressed in ZQuote 8.9 and z360 4.9 release.

Please let me  know if you are able to upgrade (BTW--latest version is ZQuote 9.0 and Z360 4.11). If so, please create a Ticket with Zuora support requesting the install links of managed package.

 

Thank you
Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Valued Scholar

Re: ORDER BUILDER ERROR MESSAGE

Hi MaggieL,
Thank you for providing the information.
We will consider upgrading.
I will report the upgrade results here.

 

Hi doyeli,
We will consider whether upgrade is possible and will contact the support team.
Thank you for responding.

 

Thank you
Tomohiro Kimura

Valued Scholar

Re: ORDER BUILDER ERROR MESSAGE

Hi MaggieL,

 

We upgraded to the following version:
ZQuote: 9.0
Z 360: 4.11
It's been about 2 weeks since the upgrade, but the problem like this time has not occurred.
We still need to monitor, but I believe that this problem has been solved.
Thank you for advising me.

 

Thank you
Tomohiro Kimura

Support SME

Re: ORDER BUILDER ERROR MESSAGE

Hi @kimura-tomohiro , Great to know !! Thank you very much for the update

 

Doyeli






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Guru

Re: ORDER BUILDER ERROR MESSAGE

That is good to hear.  This error has been causing us big issues.  We are in the process vetting the 9 version on a sandbox.  It is good to have confirmation that this will help.

Maggie Longshore