Adding Locations Via Batch: BatchJobProcessingError.INTERNAL_ERROR

33 views
Skip to first unread message

Chakravarthy Chowdary

unread,
Nov 19, 2019, 2:17:11 PM11/19/19
to AdWords API and Google Ads API Forum
Hi, 

I am trying to add locations to existing campaign using batch job. I am running batches of 30K locations in each iteration (we have total of 600K locations that needs to be added in total). Its working fine sometimes and most of the times it failing with  BatchJobProcessingError.INTERNAL_ERROR. 
I observed the batch job is getting cancelled after running 300K + locations. 
Not sure if its limit issues but that should throw DISK_QUOTA_EXCEEDED or DEADLINE_EXCEEDED error,  not Internal error. 

Error:

Batch id: 2177646912

Batch Job not ready, wait for 164.6 seconds.
{
    'id': 2177646912,
    'status': 'CANCELED',
    'progressStats': {
        'numOperationsExecuted': 70000,
        'numOperationsSucceeded': 70000,
        'estimatedPercentExecuted': 69,
        'numResultsWritten': 70000
    },
    'uploadUrl': None,
    'downloadUrl': {
        'url': 'masked',
        'expiration': '20191218 172346 America/Phoenix'
    },
    'processingErrors': [
        {
            'fieldPath': None,
            'fieldPathElements': [],
            'trigger': None,
            'errorString': 'BatchJobProcessingError.INTERNAL_ERROR',
            'ApiError.Type': 'BatchJobProcessingError',
            'reason': 'INTERNAL_ERROR'
        }
    ],
    'diskUsageQuotaBalance': None
}


one more: 

batch id: 2177193718
Batch Job not ready, wait for 40.235 seconds.
{
    'id': 2177193718,
    'status': 'CANCELED',
    'progressStats': {
        'numOperationsExecuted': 10000,
        'numOperationsSucceeded': 10000,
        'estimatedPercentExecuted': 10,
        'numResultsWritten': 10000
    },
    'uploadUrl': None,
    'downloadUrl': {
        'url': 'masked',
        'expiration': '20191218 172859 America/Phoenix'
    },
    'processingErrors': [
        {
            'fieldPath': None,
            'fieldPathElements': [],
            'trigger': None,
            'errorString': 'BatchJobProcessingError.INTERNAL_ERROR',
            'ApiError.Type': 'BatchJobProcessingError',
            'reason': 'INTERNAL_ERROR'
        }
    ],
    'diskUsageQuotaBalance': None

I am using test account to do this development and ran in to this issue before production push. Any help would be highly appreciated . 


Thanks 
Chakri 

Google Ads API Forum Advisor Prod

unread,
Nov 19, 2019, 4:02:03 PM11/19/19
to sai....@gmail.com, adwor...@googlegroups.com

Hi Chakri,

Thanks for reaching out. Could you please try to reduce the number of operations in each batch and see if you still encounter the same issue? Please refer to the Best Practices for Batch Processing to optimize batch jobs and lower the chance of encountering errors. If you still face errors after trying these out, please provide us the complete SOAP request and response logs for your failed batch jobs using Reply privately to author option. 

Thanks and regards,
Xiaoming, Google Ads API Team



ref:_00D1U1174p._5001UOCfmn:ref
Reply all
Reply to author
Forward
0 new messages