Deserialize error on batchJobHelper.downloadBatchJobMutateResponse call that contains errors in response.

53 views
Skip to first unread message

todd.t...@optimine.com

unread,
Apr 28, 2016, 12:36:39 PM4/28/16
to AdWords API Forum
We recently upgraded out Java applications to v201603 and migrated from MutateJobService to BatchJobService for uploading bids. All works fine except when an upload request has an error. Then on the subsequent batchJobHelper.downloadBatchJobMutateResponse call we get the following:

2016-04-28 08:02:33,635 [Agent - BID_STATUS : Job - 413592 thread] ERROR - (GoogleJobResponseProcessor:338) updateKeywordsUsingMutateService -  [ com.google.api.ads.adwords.lib.utils.BatchJobException ] Failed to download batch job mutate response from URL: <Removed URL>
        at com.google.api.ads.adwords.axis.utils.v201603.batchjob.BatchJobHelper.downloadBatchJobMutateResponse(BatchJobHelper.java:106)
...

        at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:89)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.xml.sax.SAXException: No deserializer for {https://adwords.google.com/api/adwords/cm/v201603}ErrorList
        at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.MessageElement.getValueAsType(MessageElement.java:917)
        at com.google.api.ads.adwords.axis.utils.AxisDeserializer.deserializeBatchJobMutateResults(AxisDeserializer.java:136)
        at com.google.api.ads.adwords.axis.utils.v201603.batchjob.BatchJobHelper.downloadBatchJobMutateResponse(BatchJobHelper.java:102)
        ... 19 more

I was able to manually download the response and it contains the error:
-<rval>
-<errorList>
-<errors xsi:type="EntityNotFound" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fieldPath>operations[101].operand.criterion.id</fieldPath>
<trigger>CriterionId{id=3000000}</trigger>
<errorString>EntityNotFound.INVALID_ID</errorString>
<ApiError.Type>EntityNotFound</ApiError.Type>
<reason>INVALID_ID</reason>
</errors>
</errorList>
<index>101</index>
</rval>

Any responses that do not have these errors work fine.
Any help here is appreciated.

Shwetha Vastrad (AdWords API Team)

unread,
Apr 28, 2016, 3:35:58 PM4/28/16
to AdWords API Forum
Hi Todd,

Could you provide the SOAP request and response logs for this Batch operation along with the BatchJob ID? This will help me determine what went wrong. Please use Reply privately to author when responding.

Also, the criterionID 3000000 is used to represent all keywords that triggered impressions on the display network. 

Thanks,
Shwetha, AdWords API Team.

todd.t...@optimine.com

unread,
Apr 28, 2016, 5:04:07 PM4/28/16
to AdWords API Forum
Hi Shwetha,

After more investigation, we believe this error is the result of a corrupt build. This error has not been reproducible in any test environment.

Thanks,

Todd
Reply all
Reply to author
Forward
0 new messages