I have configured with MLS IDX with drupal site using drealty module, After created and configured with IDX fields with drealty fields, we can not import the data from IDX API it will make following issue.

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=85&op=do StatusText: OK ResponseText: Fatal error: Call to a member function claimItem() on a non-object in /var/www/xxx/includes/batch.inc on line 27

Anybody help me, how to fix this issue?

Comments

eradeepak’s picture

Issue summary: View changes
eradeepak’s picture

Issue summary: View changes
eradeepak’s picture

Issue summary: View changes
eradeepak’s picture

Title: Drealty Import issue » Drealty data Import issue
eradeepak’s picture

Issue summary: View changes
duntuk’s picture

Where exactly are you seeing this error?

Is it through running drush in SSH? or is it through the drupal admin interface? If admin interface, where?

tripodcreative’s picture

I can confirm I am seeing this error as well.

It occurs on initial import after configuring the drealty framework. I have many fields enabled for mapping, I'll remove some to see if it imports easier.

tripodcreative’s picture

When I go to initial import, or flush data, I receive this error: An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=27&op=do StatusText: OK ResponseText: Fatal error: Call to a member function claimItem() on a non-object in [SYSPATH]/includes/batch.inc on line 274

tripodcreative’s picture

Upon presence of this error, there is a link to navigate to an error page. Upon navigating to this page, I receive this error: "Fatal error: Call to a member function getAllItems() on a non-object in [SYSPATH]/includes/batch.inc on line 465"

cpollinger’s picture

I am getting the same error when running it through Drupal admin interface.

phelix’s picture

I am also having the same problem. Does anyone know what is causing this or has anyone found a fix for this ??

duntuk’s picture

I've never used the admin interface for imports... However this works:

drush -d rets-import
tripodcreative’s picture

Forcing use of Drush for users isn't effective enough for most end users as they're not command-line savvy. If the provided admin interface doesn't work this should be noted and queued for a fix.

phelix’s picture

I am ok with using command line and I don't get errors with that but I need the interface to queue the items up. Maybe I am wrong but that command just process what's in queue am I right? Is there a way to queue items through drush? Say I add a new field and want all my listings updated with the days for that new field? I must process the queue then import?

tripodcreative’s picture

Priority: Major » Critical

I am changing the priority of this error to critical as it's hindering deployment on a production environment.

tripodcreative’s picture

I receive this error on screen after failed import:

Notice: Undefined variable: operations in drealty_import_full_import_form_submit() (line 91 of /home/[sitename]/public_html/sites/all/modules/drealty/modules/drealty_import/includes/full.batch.inc).

I also see these errors intermittently throughout the admin interface:

Notice: Undefined index: drealty_listing in drealty_import_flush_form_submit() (line 35 of /home/[sitename]/public_html/sites/all/modules/drealty/modules/drealty_import/includes/flush.batch.inc).
Warning: Invalid argument supplied for foreach() in drealty_import_flush_form_submit() (line 35 of /home/[sitename]/public_html/sites/all/modules/drealty/modules/drealty_import/includes/flush.batch.inc).
Notice: Undefined variable: operations in drealty_import_flush_form_submit() (line 60 of /home/[sitename]/public_html/sites/all/modules/drealty/modules/drealty_import/includes/flush.batch.inc).

geekygnr’s picture

I have also come across this problem. Drush works but the web interface only works at pulling when query type is Offset Not Supported (Query based on RETS Key) and I never see it pull more information then the record chunk size.

dreamogul’s picture

I get the same error, in my php error log when using drush, or as described as above when using "drealty import" module. When using the drush the import appears to still be going, when attempting the "drealty import" module it breaks the process

docans’s picture

Has anyone been able to find a solution to this. I am also getting the same problem. when i tried to import using the web

When i tried to import using drush this what i got.

C:\>cd Ampps

C:\Ampps>cd www

C:\Ampps\www>cd realtors

C:\Ampps\www\realtors>drush status
 Drupal version                  :  7.41
 Site URI                        :  http://default
 Database driver                 :  mysql
 Database username               :  root
 Database name                   :  farmington
 Database                        :  Connected
 Drupal bootstrap                :  Successful
 Drupal user                     :  Anonymous
 Default theme                   :  listingplus
 Administration theme            :  seven
 PHP executable                  :  php.exe
 PHP configuration               :  C:\Ampps\php\php.ini
 PHP OS                          :  WINNT
 Drush version                   :  6.0
 Drush configuration             :
 Drush alias files               :
 Drupal root                     :  C:/Ampps/www/realtors
 Site path                       :  sites/default
 File directory path             :  sites/default/files
 Private file directory path     :  sites/default/files/private
 Temporary file directory path   :  tmp


C:\Ampps\www\realtors>drush -d rets-import
Bootstrap to phase 0. [0.01 sec, 2.77 MB]                            [bootstrap]

Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 2.91 MB] [bootstrap]

Cache HIT cid: 6.0-commandfiles-0-9c5085a85961ce0247fc3a8f012e5a96       [debug]

[0.07 sec, 2.92 MB]
Bootstrap to phase 0. [0.14 sec, 6.68 MB]                            [bootstrap]

Bootstrap to phase 5. [0.17 sec, 6.68 MB]                            [bootstrap]

Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.18 sec,    [bootstrap]

6.68 MB]
Initialized Drupal 7.41 root directory at                               [notice]

C:/Ampps/www/realtors [0.19 sec, 7.81 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.19 sec,    [bootstrap]

7.81 MB]
Initialized Drupal site default at sites/default [0.19 sec, 7.81 MB]    [notice]

Cache HIT cid: 6.0-install_profile-66ecfeb9791a023150773849f1550c5d      [debug]

[0.2 sec, 7.82 MB]
Cache HIT cid: 6.0-commandfiles-2-699657487b88e8b0c2ede2984aa12913       [debug]

[0.2 sec, 7.82 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.2 [bootstrap]

sec, 7.82 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.2 sec, [bootstrap]

7.82 MB]
Successfully connected to the Drupal database. [0.2 sec, 7.82 MB]    [bootstrap]

Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.21 sec,    [bootstrap]

8.34 MB]
Cache HIT cid: 6.0-install_profile-66ecfeb9791a023150773849f1550c5d      [debug]

[1.28 sec, 32.14 MB]
Cache HIT cid: 6.0-commandfiles-5-5b2c9b1249ac953f743ebe27ccaf0ed0       [debug]

[1.28 sec, 32.16 MB]
Bootstrap to phase 6. [1.35 sec, 33.2 MB]                            [bootstrap]

Drush bootstrap phase : _drush_bootstrap_drupal_login() [1.36 sec,   [bootstrap]

33.2 MB]
Successfully logged into Drupal as Anonymous (uid=0) [1.36 sec, 33.67[bootstrap]

MB]
Found command: rets-import (commandfile=drealty) [1.36 sec, 33.67 MB][bootstrap]

Calling hook drush_drealty_rets_import [1.49 sec, 33.7 MB]               [debug]

Processing Resource: Property for Connection: ctmls_connection [1.51    [notice]

sec, 35.13 MB]
curl_setopt(): DrupalPrivateStreamWrapper::stream_cast is not          [warning]

implemented! phrets.php:1370 [1.51 sec, 35.14 MB]
curl_setopt(): DrupalPrivateStreamWrapper::stream_cast is not          [warning]

implemented! phrets.php:1370 [1.51 sec, 35.14 MB]
curl_setopt(): cannot represent a stream of type user-space as a       [warning]

STDIO FILE* phrets.php:1370 [1.51 sec, 35.14 MB]
* Hostname was NOT found in DNS cache
*   Trying 54.175.136.170...
* Connected to rets.mymatrix.ctreal.com (54.175.136.170) port 80 (#0)
> GET /rets/login.ashx HTTP/1.1
Host: rets.mymatrix.ctreal.com
Accept: */*
User-Agent: DREALTY/1.0
RETS-Version: RETS/1.7

< HTTP/1.1 401 Access Denied
< Cache-Control: no-cache
< Cache-control: no-cache="set-cookie"
< Content-Type: text/html
< Date: Sat, 16 Jan 2016 02:05:26 GMT
< Expires: -1
< Pragma: no-cache
< RETS-Version: RETS/1.7
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
* Added cookie AWSELB="770DD7870C423641ED18682B7C7C034862CF3D7B235A408521DC03D82
0EC41DD8253680876DF0AFEC1FFF77D1E5815D7CC6506634492F9410318EB13E9187FC3683B236D1
C" for domain rets.mymatrix.ctreal.com, path /, expire 1452996312
< Set-Cookie: AWSELB=770DD7870C423641ED18682B7C7C034862CF3D7B235A408521DC03D820E
C41DD8253680876DF0AFEC1FFF77D1E5815D7CC6506634492F9410318EB13E9187FC3683B236D1C;
PATH=/;MAX-AGE=86400
< WWW-Authenticate: Digest realm="MATRIX", nonce="MjAxNi0wMS0xNiAwMzowNToyNi45OT
U", opaque="0000000000000000", stale=false, algorithm=MD5, qop="auth"
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Content-Length: 1293
< Connection: keep-alive
<
* Ignoring the response-body
* Connection #0 to host rets.mymatrix.ctreal.com left intact
* Issue another request to this URL: 'http://rets.mymatrix.ctreal.com:80/rets/lo
gin.ashx'
* Found bundle for host rets.mymatrix.ctreal.com: 0x3c36bf0
* Re-using existing connection! (#0) with host rets.mymatrix.ctreal.com
* Connected to rets.mymatrix.ctreal.com (54.175.136.170) port 80 (#0)
* Server auth using Digest with user 'FVRE200RETS'
> GET /rets/login.ashx HTTP/1.1
Authorization: Digest username="FVRE200RETS", realm="MATRIX", nonce="MjAxNi0wMS0
xNiAwMzowNToyNi45OTU", uri="/rets/login.ashx", cnonce="ZjVhYWQ5NmFkN2UzNWNhNDAwM
DFkZjMwMDAwOTg5Njg=", nc=00000001, qop=auth, response="5becfc6485cb155a2d4834555
5d27e3d", opaque="0000000000000000", algorithm="MD5"
Host: rets.mymatrix.ctreal.com
Accept: */*
Cookie: AWSELB=770DD7870C423641ED18682B7C7C034862CF3D7B235A408521DC03D820EC41DD8
253680876DF0AFEC1FFF77D1E5815D7CC6506634492F9410318EB13E9187FC3683B236D1C
User-Agent: DREALTY/1.0
RETS-Version: RETS/1.7

< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Content-Type: text/xml; charset=utf-8
< Date: Sat, 16 Jan 2016 02:05:27 GMT
< Expires: -1
< Pragma: no-cache
< RETS-Version: RETS/1.7
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
* Added cookie ASP.NET_SessionId="jklv1mhz2lcw0zgkzsowv03a" for domain rets.myma
trix.ctreal.com, path /, expire 0
< Set-Cookie: ASP.NET_SessionId=jklv1mhz2lcw0zgkzsowv03a; path=/; HttpOnly
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Content-Length: 705
< Connection: keep-alive
<
* Connection #0 to host rets.mymatrix.ctreal.com left intact
* Found bundle for host rets.mymatrix.ctreal.com: 0x3c36bf0
* Re-using existing connection! (#0) with host rets.mymatrix.ctreal.com
* Connected to rets.mymatrix.ctreal.com (54.175.136.170) port 80 (#0)
* Server auth using Digest with user 'FVRE200RETS'
> GET /rets/Search.ashx?SearchType=Property&Class=Listing&Query=%28Status%3D%7CA
%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&Format=COMPACT-DECODED
&Limit=250&Offset=1&StandardNames=0 HTTP/1.1
Authorization: Digest username="FVRE200RETS", realm="MATRIX", nonce="MjAxNi0wMS0
xNiAwMzowNToyNi45OTU", uri="/rets/Search.ashx?SearchType=Property&Class=Listing&
Query=%28Status%3D%7CA%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&
Format=COMPACT-DECODED&Limit=250&Offset=1&StandardNames=0", cnonce="ZjVhYWQ5NmFk
N2UzNWNhNDAwMDFkZjMwMDAwOTg5Njg=", nc=00000002, qop=auth, response="863eea03e994
4d9ec961a05de1bb96f9", opaque="0000000000000000", algorithm="MD5"
Host: rets.mymatrix.ctreal.com
Accept: */*
Cookie: ASP.NET_SessionId=jklv1mhz2lcw0zgkzsowv03a; AWSELB=770DD7870C423641ED186
82B7C7C034862CF3D7B235A408521DC03D820EC41DD8253680876DF0AFEC1FFF77D1E5815D7CC650
6634492F9410318EB13E9187FC3683B236D1C
User-Agent: DREALTY/1.0
RETS-Version: RETS/1.7

< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Content-Type: text/xml; charset=utf-8
< Date: Sat, 16 Jan 2016 02:05:27 GMT
< Expires: -1
< Pragma: no-cache
< RETS-Version: RETS/1.7
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< transfer-encoding: chunked
< Connection: keep-alive
<
* Connection #0 to host rets.mymatrix.ctreal.com left intact
* Found bundle for host rets.mymatrix.ctreal.com: 0x3c36bf0
* Re-using existing connection! (#0) with host rets.mymatrix.ctreal.com
* Connected to rets.mymatrix.ctreal.com (54.175.136.170) port 80 (#0)
* Server auth using Digest with user 'FVRE200RETS'
> GET /rets/Search.ashx?SearchType=Property&Class=Listing&Query=%28Status%3D%7CA
%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&Format=COMPACT-DECODED
&Limit=250&Offset=251&StandardNames=0 HTTP/1.1
Authorization: Digest username="FVRE200RETS", realm="MATRIX", nonce="MjAxNi0wMS0
xNiAwMzowNToyNi45OTU", uri="/rets/Search.ashx?SearchType=Property&Class=Listing&
Query=%28Status%3D%7CA%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&
Format=COMPACT-DECODED&Limit=250&Offset=251&StandardNames=0", cnonce="ZjVhYWQ5Nm
FkN2UzNWNhNDAwMDFkZjMwMDAwOTg5Njg=", nc=00000003, qop=auth, response="ae2ebe55f3
16b73f07b9698a06284f5c", opaque="0000000000000000", algorithm="MD5"
Host: rets.mymatrix.ctreal.com
Accept: */*
Cookie: ASP.NET_SessionId=jklv1mhz2lcw0zgkzsowv03a; AWSELB=770DD7870C423641ED186
82B7C7C034862CF3D7B235A408521DC03D820EC41DD8253680876DF0AFEC1FFF77D1E5815D7CC650
6634492F9410318EB13E9187FC3683B236D1C
User-Agent: DREALTY/1.0
RETS-Version: RETS/1.7

< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Content-Type: text/xml; charset=utf-8
< Date: Sat, 16 Jan 2016 02:05:28 GMT
< Expires: -1
< Pragma: no-cache
< RETS-Version: RETS/1.7
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< transfer-encoding: chunked
< Connection: keep-alive
<
* Connection #0 to host rets.mymatrix.ctreal.com left intact
* Found bundle for host rets.mymatrix.ctreal.com: 0x3c36bf0
* Re-using existing connection! (#0) with host rets.mymatrix.ctreal.com
* Connected to rets.mymatrix.ctreal.com (54.175.136.170) port 80 (#0)
* Server auth using Digest with user 'FVRE200RETS'
> GET /rets/Search.ashx?SearchType=Property&Class=Listing&Query=%28Status%3D%7CA
%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&Format=COMPACT-DECODED
&Limit=250&Offset=501&StandardNames=0 HTTP/1.1
Authorization: Digest username="FVRE200RETS", realm="MATRIX", nonce="MjAxNi0wMS0
xNiAwMzowNToyNi45OTU", uri="/rets/Search.ashx?SearchType=Property&Class=Listing&
Query=%28Status%3D%7CA%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&
Format=COMPACT-DECODED&Limit=250&Offset=501&StandardNames=0", cnonce="ZjVhYWQ5Nm
FkN2UzNWNhNDAwMDFkZjMwMDAwOTg5Njg=", nc=00000004, qop=auth, response="f13c7821e9
bcf49064c9690184f9ca2b", opaque="0000000000000000", algorithm="MD5"
Host: rets.mymatrix.ctreal.com
Accept: */*
Cookie: ASP.NET_SessionId=jklv1mhz2lcw0zgkzsowv03a; AWSELB=770DD7870C423641ED186
82B7C7C034862CF3D7B235A408521DC03D820EC41DD8253680876DF0AFEC1FFF77D1E5815D7CC650
6634492F9410318EB13E9187FC3683B236D1C
User-Agent: DREALTY/1.0
RETS-Version: RETS/1.7

< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Content-Type: text/xml; charset=utf-8
< Date: Sat, 16 Jan 2016 02:05:28 GMT
< Expires: -1
< Pragma: no-cache
< RETS-Version: RETS/1.7
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< transfer-encoding: chunked
< Connection: keep-alive
<
* Connection #0 to host rets.mymatrix.ctreal.com left intact
* Found bundle for host rets.mymatrix.ctreal.com: 0x3c36bf0
* Re-using existing connection! (#0) with host rets.mymatrix.ctreal.com
* Connected to rets.mymatrix.ctreal.com (54.175.136.170) port 80 (#0)
* Server auth using Digest with user 'FVRE200RETS'
> GET /rets/Search.ashx?SearchType=Property&Class=Listing&Query=%28Status%3D%7CA
%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&Format=COMPACT-DECODED
&Limit=250&Offset=751&StandardNames=0 HTTP/1.1
Authorization: Digest username="FVRE200RETS", realm="MATRIX", nonce="MjAxNi0wMS0
xNiAwMzowNToyNi45OTU", uri="/rets/Search.ashx?SearchType=Property&Class=Listing&
Query=%28Status%3D%7CA%2CC%2CCL%2CD%2CI%2CSH%2CT%2CW%29&QueryType=DMQL2&Count=1&
Format=COMPACT-DECODED&Limit=250&Offset=751&StandardNames=0", cnonce="ZjVhYWQ5Nm
FkN2UzNWNhNDAwMDFkZjMwMDAwOTg5Njg=", nc=00000005, qop=auth, response="bb6754a6c9
375fc25d42e99ae740a7b7", opaque="0000000000000000", algorithm="MD5"
Host: rets.mymatrix.ctreal.com
Accept: */*
Cookie: ASP.NET_SessionId=jklv1mhz2lcw0zgkzsowv03a; AWSELB=770DD7870C423641ED186
82B7C7C034862CF3D7B235A408521DC03D820EC41DD8253680876DF0AFEC1FFF77D1E5815D7CC650
6634492F9410318EB13E9187FC3683B236D1C
User-Agent: DREALTY/1.0
RETS-Version: RETS/1.7

Any Idea as to how to fix this

JonFreed’s picture

I encountered similar error messages as I was just poking around and trying a few things. After looking into the code, I determined the following for the beta6 code (and this may also apply to earlier versions):

* You will encounter messages like what has been mentioned for the "flush.batch.inc" file if you're trying to flush data but you don't actually have any data. So, what's your work-around until error-handling in the code is made more user-friendly? Just expect to see an error message if you try to flush and you don't have any data to flush.

* You will encounter messages like what has been mentioned for the "batch.inc" file (e.g. "Call to a member function claimItem() on a non-object in [SYSPATH]/includes/batch.inc on line 274") if you're trying to import data but you do not have not enabled any classes (e.g. a listing of type residential). So, what's your work-around until error-handling in the code is improved? Just expect to see an error message if you try to import data but you don't have any thing enabled for an import. (To enable, go to Administration > Drealty > Drealty Connections > and click one of the "Configure" links.

shauntyndall’s picture

Title: Drealty data Import issue » Call to a member function claimItem() on a non-object.
Component: Drealty Office » Drealty Import
Assigned: eradeepak » Unassigned
Priority: Critical » Normal

I believe @jonfreed's assessment is correct. I'm moving this to the drealty_import submodule component for assement. Maybe we can protect users from receiving these errors by not allowing / warning users about those conditions. Can someone propose a patch for review?

bathyalgirish’s picture

im getting a similar error while running a custom coded batch process.

I not using drealty module . its core drupal version 7.43 and some other contributed modules.

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=10&op=do StatusText: OK ResponseText: Fatal error: Call to a member function claimItem() on a non-object in /Users/girish/x/includes/batch.inc on line 274

I've written batch process code for custom data import for 4-5 other projects. but never experienced this issue before.

spsinghs’s picture

Facing same problem on import
Below is error msg
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /drupal74/drupal-7.44/batch?id=18&op=do StatusText: Service unavailable (with message) ResponseText: Error: Call to a member function claimItem() on null in _batch_process() (line 274 of D:\xampp2\htdocs\drupal74\drupal-7.44\includes\batch.inc).
Any Help?

veronicaseveryn’s picture

Assigned: Unassigned » veronicaseveryn
Status: Active » Needs review
StatusFileSize
new11.85 KB

Here's a patch that revises Batch import for listings, agents, offices and openhouses and adds a few extra checks before proceeding with execution.

  • veronicaSeveryn committed a7b3d00 on 7.x-3.x
    Issue #2452287 by veronicaSeveryn: Fixed errors with claimItem()...
veronicaseveryn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Rizwan Siddiquee’s picture

Same Error !!

foreach (array_chunk($result, 100) as $value) {
$operations[] = array(
"custom_table_migrate_batch_porting_mysql_table_to_mongodb",
array($value, $tablename, $mysql_int_types, $mysql_float_types),
);
}
$batch = array(
'operations' => $operations,
'finished' => 'custom_table_migrate_batch_porting_mysql_table_to_mongodb_finished',
'title' => t('Port mysql Tabel to Mongodb'),
'init_message' => t('port mysql table to mongodb.'),
'progress_message' => t('Processed @current out of @total.'),
'error_message' => t('port mysql table to mongodb Batch has encountered an error.'),
);
batch_set($batch);
batch_process(drupal_get_destination());

remove array_chunk

its working fine

foreach ($result as $value) {
$operations[] = array(
"custom_table_migrate_batch_porting_mysql_table_to_mongodb",
array($value, $tablename, $mysql_int_types, $mysql_float_types),
);
}
$batch = array(
'operations' => $operations,
'finished' => 'custom_table_migrate_batch_porting_mysql_table_to_mongodb_finished',
'title' => t('Port mysql Tabel to Mongodb'),
'init_message' => t('port mysql table to mongodb.'),
'progress_message' => t('Processed @current out of @total.'),
'error_message' => t('port mysql table to mongodb Batch has encountered an error.'),
);
batch_set($batch);
batch_process(drupal_get_destination());