mongoimport


FailedToParse: Date expecting integer milliseconds


I have json file with below content :
laks#giis:/home/ubuntu# cat /tmp/db1.json
{ "_id" : { "$oid" : "54cf54e57f7cfa64c908ebd2" }, "tid" : 1, "__v" : 0 }
and it imports properly:
laks#giis:/home/ubuntu# mongoimport -d test -c tutorials --file /tmp/db1.json
connected to: 127.0.0.1
Tue May 5 03:44:25.471 imported 1 objects
but when I added date field to the same db.json file it fails:
laks#giis:/home/ubuntu# cat /tmp/db1.json
{ "_id" : { "$oid" : "54cf54e57f7cfa64c908ebd2" }, "tid" : 1, "__v" : 0,"time" : { "$date" : "2015-02-01T22:09:31.475-0500" } }
laks#giis:/home/ubuntu# mongoimport -d test -c tutorials --file /tmp/db1.json
connected to: 127.0.0.1
Tue May 5 03:45:17.729 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Date expecting integer milliseconds: offset:92
Tue May 5 03:45:17.729
Tue May 5 03:45:17.729 check 0 0
Tue May 5 03:45:17.729 imported 0 objects
Tue May 5 03:45:17.729 ERROR: encountered 1 error(s)
Other solutions like add "--jsonArray" in the cli , didn't help.

Related Links

mongoimport csv file error : fields cannot be identical '' and ''
FailedToParse: Date expecting integer milliseconds
mongoimport very very slow for large json file
How to import a json file to MongoDB
Mongoimport in Mongodb

Categories

HOME
oauth-2.0
spring-boot
google-cloud-pubsub
mobile
formatting
hiveql
datetimepicker
swap
symfony-3.2
zabbix
install
jquery-select2
virtualhost
google-api-oauth
minimax
watson-dialog
internet-explorer-7
openoffice-basic
jq
ajaxcontroltoolkit
pushbullet
apdu
libxml2
checkmarx
federated
ios9
epub
node-soap
wunderground
certbot
instances
datagridviewcombobox
vpython
peerjs
smooth-streaming
nshttpurlresponse
inner-join
ack
ng-class
dcom
runtime-permissions
dotnet-cli
px4
seyren
boost-regex
codesniffer
spring-cloud-aws
mavlink
alfred
dimensionality-reduction
xcode7.1
syslog4j
patching
android-xmlpullparser
3d-rendering
phpdesigner
archiva
code-translation
fadein
jquery-draggable
javapackager
libgcrypt
lytro
cloud-storage
roslyn-code-analysis
syncano
winforms-interop
pdcurses
opennebula
mri
pysvn
caption
system.io.packaging
yosemite
mvcgrid
nspopupbutton
visual-studio-setup-proje
opencobol
xps
kuka-krl
boofcv
php-amqplib
ekevent
kademlia
dd4t
nx
system.transactions
libx264
feincms
diazo
javah
s60
text-manipulation
nscharacterset
opengl-to-opengles
disk-based
office-2003
hotfix
memory-consumption

Resources

Encrypt Message