AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

why linux mongodb not insert?
 
 

i use mongodb in linux

this code

if(^mongoinit(mongodb://localhost:27017 test noncust)){init complite}
else {init faild!}

if(^mongoinsertdocument($$noncustid $$insertstring)) {insert complite}
else {insert ERROR!!} # data insert

if(^mongoclose()) {close copmlite}
else {close ERROR!!!}

if($troproduct==AA) {AAAAAA}
else {TTTTTT}


message is success but mongodb not data…
i don’t know…
plese help…

Image Attachments
linuxmongo실행.jpg
 

 
  [ # 1 ]

Insufficient information. What version of CS was this? What was the value of $$noncustid?

 

 
  [ # 2 ]
Bruce Wilcox - Oct 23, 2016:

Insufficient information. What version of CS was this? What was the value of $$noncustid?

 

thak you!!
i make $$noncystid is user input data
$$noncustid=^join($custname $custphone)

windows is sucess but linux is fail…
i don’t know reason…

 

 
  [ # 3 ]
jiyoung kim - Oct 24, 2016:
Bruce Wilcox - Oct 23, 2016:

Insufficient information. What version of CS was this? What was the value of $$noncustid?

 

thak you!!
i make $$noncystid is user input data
$$noncustid=^join($custname $custphone)


CSversion is 6.8a

windows is sucess but linux is fail…
i don’t know reason…

 

 
  [ # 4 ]

try “:trace all ”  and see what actually is going as your string in the mongodb. And I hope you have built your “mongoserver” again on linux.

 

 
  [ # 5 ]
Hitesh Saraf - Nov 4, 2016:

try “:trace all ”  and see what actually is going as your string in the mongodb. And I hope you have built your “mongoserver” again on linux.

thank you!!

 

 
  login or register to react