CDbException
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]:
[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Cannot insert
explicit value for identity column in table 'lime_survey_782166' when
IDENTITY_INSERT is set to OFF.. The SQL statement executed was: INSERT
INTO [dbo].[lime_survey_782166] ([id], [token], [submitdate],
[lastpage], [startlanguage], [seed], [startdate], [datestamp],
[782166X22X548], [782166X22X527], [782166X22X486], [782166X22X490],
[782166X22X541], [782166X22X487], [782166X22X488], [782166X22X560],
[782166X22X542], [782166X22X542other], [782166X22X489MACRO],
[782166X22X489MICRO], [782166X22X489QUAL], [782166X22X489META],
[782166X22X489METHO], [782166X22X489ALGOR], [782166X22X489NONE],
[782166X22X497WPAPE], [782166X22X497PUB], [782166X22X497ECONO],
[782166X22X497VIZ], [782166X22X497PSIMU], [782166X22X497NONE],
[782166X22X498CATAL], [782166X22X498GLOSS], [782166X22X498SOFTW],
[782166X22X498TRAIN], [782166X22X498NONE],
[782166X22X561DATABASES_DESCRIPTION],
[782166X22X561WPAPERSS_DESCRIPTION],
[782166X22X561PUBLICATIONS_DESCRIPTION],
[782166X22X561VISUALISATIONS_DESCRIPTION],
[782166X22X561POLSIMULATIONS_DESCRIPTION],
[782166X22X561METHODG_DESCRIPTION], [782166X22X559DATA],
[782166X22X559WPAP], [782166X22X559PUBL], [782166X22X504],
[782166X22X553BRA], [782166X22X553CHN], [782166X22X553IND],
[782166X22X553IDN], [782166X22X553ZAF], [782166X22X553NONE],
[782166X22X494], [782166X22X518], [782166X22X519], [782166X22X499],
[782166X22X492NONE], [782166X22X492CFE], [782166X22X492CTP],
[782166X22X492DAF], [782166X22X492DCD], [782166X22X492DEV],
[782166X22X492ECO], [782166X22X492EDU], [782166X22X492ELS],
[782166X22X492ENV], [782166X22X492EXD], [782166X22X492GOV],
[782166X22X492IEA], [782166X22X492ITF], [782166X22X492NEA],
[782166X22X492PAC], [782166X22X492SDD], [782166X22X492SGE],
[782166X22X492SKC], [782166X22X492STI], [782166X22X492SWAC],
[782166X22X492TAD], [782166X22X492WISE], [782166X22X493NONE],
[782166X22X493BIS], [782166X22X493ECB], [782166X22X493EC],
[782166X22X493FAO], [782166X22X493ILO], [782166X22X493IMF],
[782166X22X493ITU], [782166X22X493ESTAT], [782166X22X493UNCTAD],
[782166X22X493UNESCAP], [782166X22X493UNESCWA], [782166X22X493UNECA],
[782166X22X493UNECE], [782166X22X493UNECLAC], [782166X22X493UNESCO],
[782166X22X493UNHAB], [782166X22X493UNIDO], [782166X22X493UNODC],
[782166X22X493UNSD], [782166X22X493WB], [782166X22X493WHO],
[782166X22X493UNWTO], [782166X22X493WTO], [782166X22X493other],
[782166X22X500], [782166X22X500other], [782166X22X495],
[782166X22X496ACHIEV], [782166X22X496NOREL], [782166X22X496BUDGET],
[782166X22X496other], [782166X22X528], [782166X22X547], [782166X23X535],
[782166X23X501OECD], [782166X23X501INTORG], [782166X23X501NSOs],
[782166X23X501GOV], [782166X23X501CENBKS], [782166X23X501CHAMB],
[782166X23X501COMMP], [782166X23X501RESER], [782166X23X501CROWD],
[782166X23X501GAFA], [782166X23X501other], [782166X23X545OECD],
[782166X23X545INTORG], [782166X23X545NSOs], [782166X23X545GOV],
[782166X23X545CENBKS], [782166X23X545CHAMB], [782166X23X545COMMP],
[782166X23X545RESER], [782166X23X545CROWD], [782166X23X545GAFA],
[782166X23X545other], [782166X23X558], [782166X23X546PREF],
[782166X23X546EMPTY], [782166X23X546DOWN], [782166X23X546COPY],
[782166X23X546other], [782166X23X532], [782166X23X554SQ001_SQ001],
[782166X23X554SQ001_SQ002], [782166X23X554SQ002_SQ001],
[782166X23X554SQ002_SQ002], [782166X23X554SQ003_SQ001],
[782166X23X554SQ003_SQ002], [782166X23X540], [782166X23X540_filecount],
[782166X23X555], [782166X23X555_filecount], [782166X23X556],
[782166X23X556_filecount], [782166X23X502SQ006], [782166X23X502SQ002],
[782166X23X502SQ003], [782166X23X502SQ004], [782166X23X502SQ001],
[782166X23X502SQ007], [782166X23X502SQ005], [782166X23X502other],
[782166X23X543TOOL1], [782166X23X543TOOL2], [782166X23X543TOOL3],
[782166X23X543TOOL4], [782166X23X543TOOL5], [782166X23X543TOOL6],
[782166X23X543TOOL7], [782166X23X543TOOL8], [782166X23X544],
[782166X23X549TECH1], [782166X23X549TECH2], [782166X23X549TECH3],
[782166X23X549TECH4], [782166X23X549TECH5], [782166X23X549TECH6],
[782166X23X549TECH7], [782166X23X549TECH8], [782166X23X549TECH9],
[782166X23X549TECH10], [782166X23X549TECH11], [782166X23X549TECH12],
[782166X23X549TECH13], [782166X23X549TECH14], [782166X23X550],
[782166X23X551DISS1], [782166X23X551DISS2], [782166X23X551DISS3],
[782166X23X551DISS4], [782166X23X551DISS5], [782166X23X551DISS6],
[782166X23X551DISS7], [782166X23X552], [782166X23X503SQ002],
[782166X23X503SQ003], [782166X23X503SQ004], [782166X23X503SQ008],
[782166X23X503SQ005], [782166X23X503SQ006], [782166X23X503SQ007],
[782166X23X503SQ001], [782166X23X503other], [782166X23X525],
[782166X23X526], [782166X23X538OECDCOLL_YEARS],
[782166X23X538OECDCOLL_MONTHS], [782166X23X538OECDCOLL_DAYS],
[782166X23X538OECDDISS_YEARS], [782166X23X538OECDDISS_MONTHS],
[782166X23X538OECDDISS_DAYS], [782166X23X520], [782166X23X533SQ001],
[782166X23X533SQ002], [782166X23X533SQ003], [782166X23X533SQ004],
[782166X23X534SQ001], [782166X23X534SQ002], [782166X23X534SQ003],
[782166X23X534SQ004], [782166X23X557], [782166X23X521], [782166X23X529],
[782166X24X536], [782166X24X4911], [782166X24X4912], [782166X24X4913],
[782166X24X4914], [782166X24X4915], [782166X24X4916], [782166X24X4917],
[782166X24X4918], [782166X24X4919], [782166X24X49110],
[782166X24X5221_SQ001], [782166X24X5221_SQ002], [782166X24X5222_SQ001],
[782166X24X5222_SQ002], [782166X24X5223_SQ001], [782166X24X5223_SQ002],
[782166X24X5224_SQ001], [782166X24X5224_SQ002], [782166X24X5225_SQ001],
[782166X24X5225_SQ002], [782166X24X5226_SQ001], [782166X24X5226_SQ002],
[782166X24X5227_SQ001], [782166X24X5227_SQ002], [782166X24X5228_SQ001],
[782166X24X5228_SQ002], [782166X24X5229_SQ001], [782166X24X5229_SQ002],
[782166X24X52210_SQ001], [782166X24X52210_SQ002], [782166X24X524SQ001],
[782166X24X524SQ002], [782166X24X524SQ003], [782166X24X524SQ004],
[782166X24X524other], [782166X24X523], [782166X24X505SQ001],
[782166X24X505SQ002], [782166X24X505SQ003], [782166X24X505SQ004],
[782166X24X505SQ005], [782166X24X505SQ006], [782166X24X505SQ007],
[782166X24X506SQ001], [782166X24X506SQ002], [782166X24X506SQ003],
[782166X24X506SQ004], [782166X24X506SQ005], [782166X24X506SQ006],
[782166X24X506SQ007], [782166X24X506SQ008], [782166X24X506SQ009],
[782166X24X507SQ001], [782166X24X507SQ002], [782166X24X507SQ003],
[782166X24X507SQ004], [782166X24X507SQ005], [782166X24X508SQ001],
[782166X24X508SQ002], [782166X24X508SQ003], [782166X24X508SQ004],
[782166X24X509SQ001], [782166X24X509SQ002], [782166X24X509SQ003],
[782166X24X509SQ004], [782166X24X509SQ005], [782166X24X510SQ001],
[782166X24X510SQ002], [782166X24X510SQ003], [782166X24X510SQ004],
[782166X24X510SQ005], [782166X24X516], [782166X24X530], [782166X25X537],
[782166X25X539SQ001], [782166X25X539SQ002], [782166X25X539SQ003],
[782166X25X539SQ004], [782166X25X539SQ005], [782166X25X539SQ006],
[782166X25X539SQ007], [782166X25X511], [782166X25X511other],
[782166X25X512], [782166X25X513SQ001], [782166X25X513SQ001comment],
[782166X25X513SQ002], [782166X25X513SQ002comment], [782166X25X513SQ003],
[782166X25X513SQ003comment], [782166X25X513SQ004],
[782166X25X513SQ004comment], [782166X25X513SQ005],
[782166X25X513SQ005comment], [782166X25X513SQ006],
[782166X25X513SQ006comment], [782166X25X514SQ001],
[782166X25X514SQ001comment], [782166X25X514SQ002],
[782166X25X514SQ002comment], [782166X25X514SQ003],
[782166X25X514SQ003comment], [782166X25X514SQ004],
[782166X25X514SQ004comment], [782166X25X514SQ005],
[782166X25X514SQ005comment], [782166X25X515SQ001], [782166X25X515SQ002],
[782166X25X515SQ003], [782166X25X515SQ004], [782166X25X515SQ005],
[782166X25X515SQ006], [782166X25X515SQ007], [782166X25X515SQ008],
[782166X25X515other], [782166X25X517], [782166X25X531]) VALUES (:yp0,
:yp1, :yp2, :yp3, :yp4, :yp5, :yp6, :yp7, :yp8, :yp9, :yp10, :yp11,
:yp12, :yp13, :yp14, :yp15, :yp16, :yp17, :yp18, :yp19, :yp20, :yp21,
:yp22, :yp23, :yp24, :yp25, :yp26, :yp27, :yp28, :yp29, :yp30, :yp31,
:yp32, :yp33, :yp34, :yp35, :yp36, :yp37, :yp38, :yp39, :yp40, :yp41,
:yp42, :yp43, :yp44, :yp45, :yp46, :yp47, :yp48, :yp49, :yp50, :yp51,
:yp52, :yp53, :yp54, :yp55, :yp56, :yp57, :yp58, :yp59, :yp60, :yp61,
:yp62, :yp63, :yp64, :yp65, :yp66, :yp67, :yp68, :yp69, :yp70, :yp71,
:yp72, :yp73, :yp74, :yp75, :yp76, :yp77, :yp78, :yp79, :yp80, :yp81,
:yp82, :yp83, :yp84, :yp85, :yp86, :yp87, :yp88, :yp89, :yp90, :yp91,
:yp92, :yp93, :yp94, :yp95, :yp96, :yp97, :yp98, :yp99, :yp100, :yp101,
:yp102, :yp103, :yp104, :yp105, :yp106, :yp107, :yp108, :yp109, :yp110,
:yp111, :yp112, :yp113, :yp114, :yp115, :yp116, :yp117, :yp118, :yp119,
:yp120, :yp121, :yp122, :yp123, :yp124, :yp125, :yp126, :yp127, :yp128,
:yp129, :yp130, :yp131, :yp132, :yp133, :yp134, :yp135, :yp136, :yp137,
:yp138, :yp139, :yp140, :yp141, :yp142, :yp143, :yp144, :yp145, :yp146,
:yp147, :yp148, :yp149, :yp150, :yp151, :yp152, :yp153, :yp154, :yp155,
:yp156, :yp157, :yp158, :yp159, :yp160, :yp161, :yp162, :yp163, :yp164,
:yp165, :yp166, :yp167, :yp168, :yp169, :yp170, :yp171, :yp172, :yp173,
:yp174, :yp175, :yp176, :yp177, :yp178, :yp179, :yp180, :yp181, :yp182,
:yp183, :yp184, :yp185, :yp186, :yp187, :yp188, :yp189, :yp190, :yp191,
:yp192, :yp193, :yp194, :yp195, :yp196, :yp197, :yp198, :yp199, :yp200,
:yp201, :yp202, :yp203, :yp204, :yp205, :yp206, :yp207, :yp208, :yp209,
:yp210, :yp211, :yp212, :yp213, :yp214, :yp215, :yp216, :yp217, :yp218,
:yp219, :yp220, :yp221, :yp222, :yp223, :yp224, :yp225, :yp226, :yp227,
:yp228, :yp229, :yp230, :yp231, :yp232, :yp233, :yp234, :yp235, :yp236,
:yp237, :yp238, :yp239, :yp240, :yp241, :yp242, :yp243, :yp244, :yp245,
:yp246, :yp247, :yp248, :yp249, :yp250, :yp251, :yp252, :yp253, :yp254,
:yp255, :yp256, :yp257, :yp258, :yp259, :yp260, :yp261, :yp262, :yp263,
:yp264, :yp265, :yp266, :yp267, :yp268, :yp269, :yp270, :yp271, :yp272,
:yp273, :yp274, :yp275, :yp276, :yp277, :yp278, :yp279, :yp280, :yp281,
:yp282, :yp283, :yp284, :yp285, :yp286, :yp287, :yp288, :yp289, :yp290,
:yp291, :yp292, :yp293, :yp294, :yp295, :yp296, :yp297, :yp298, :yp299,
:yp300, :yp301, :yp302, :yp303, :yp304, :yp305, :yp306, :yp307, :yp308,
:yp309, :yp310, :yp311, :yp312, :yp313, :yp314, :yp315, :yp316, :yp317,
:yp318, :yp319, :yp320, :yp321, :yp322, :yp323, :yp324, :yp325, :yp326,
:yp327, :yp328, :yp329, :yp330, :yp331, :yp332, :yp333, :yp334, :yp335,
:yp336, :yp337, :yp338, :yp339, :yp340, :yp341)
E:\IIS\website\framework\db\CDbCommand.php(358)
346 {
347 if($this->_connection->enableProfiling)
348 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
349
350 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
351 $message=$e->getMessage();
352 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
353 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
354
355 if(YII_DEBUG)
356 $message.='. The SQL statement executed was: '.$this->getText().$par;
357
358 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
359 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
360 }
361 }
362
363 /**
364 * Executes the SQL statement and returns query result.
365 * This method is for executing an SQL query that returns result set.
366 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
367 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
368 * them in this way can improve the performance. Note that if you pass parameters in this way,
369 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
370 * Please also note that all values are treated as strings in this case, if you need them to be handled as
Stack Trace
#0 |
+
–
E:\IIS\website\framework\db\ar\CActiveRecord.php(1083): CDbCommand-> execute()
1078 {
1079 Yii::trace(get_class($this).'.insert()','system.db.ar.CActiveRecord');
1080 $builder=$this->getCommandBuilder();
1081 $table=$this->getTableSchema();
1082 $command=$builder->createInsertCommand($table,$this->getAttributes($attributes));
1083 if($command->execute())
1084 {
1085 $primaryKey=$table->primaryKey;
1086 if($table->sequenceName!==null)
1087 {
1088 if(is_string($primaryKey) && $this->$primaryKey===null)
|
#1 |
+
–
E:\IIS\website\framework\db\ar\CActiveRecord.php(811): CActiveRecord-> insert(null)
806 * @return boolean whether the saving succeeds
807 */
808 public function save($runValidation=true,$attributes=null)
809 {
810 if(!$runValidation || $this->validate($attributes))
811 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes);
812 else
813 return false;
814 }
815
816 /**
|
#2 |
+
–
E:\IIS\website\application\controllers\admin\dataentry.php(375): CActiveRecord-> save()
370 $beforeDataEntryImport->set('iSurveyID', $iSurveyId);
371 $beforeDataEntryImport->set('oModel', $targetResponse);
372 App()->getPluginManager()->dispatchEvent($beforeDataEntryImport);
373
374 $imported++;
375 $targetResponse->save();
376 $aSRIDConversions[$iOldID] = $targetResponse->id;
377 unset($targetResponse);
378 }
379
380 Yii::app()->session['flashmessage'] = sprintf(gT("%s old response(s) were successfully imported."), $imported);
|
#3 |
unknown(0): DataEntry->import("782166")
|
#4 |
+
–
E:\IIS\website\framework\web\actions\CAction.php(115): ReflectionMethod-> invokeArgs(DataEntry, array("782166"))
110 elseif($param->isDefaultValueAvailable())
111 $ps[]=$param->getDefaultValue();
112 else
113 return false;
114 }
115 $method->invokeArgs($object,$ps);
116 return true;
117 }
118 }
|
#5 |
+
–
E:\IIS\website\application\core\SurveyCommonAction.php(83): CAction-> runWithParamsInternal(DataEntry,
ReflectionMethod, array("r" =>
"admin/dataentry/sa/import/surveyid/782166", "sa" => "import",
"surveyid" => "782166", "iSurveyId" => "782166", ...))
78 $oMethod = new ReflectionMethod($this, $sDefault);
79 }
80
81 // We're all good to go, let's execute it
82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83 return parent::runWithParamsInternal($this, $oMethod, $params);
84 }
85
86 /**
87 * Some functions have different parameters, which are just an alias of the
88 * usual parameters we're getting in the url. This function just populates
|
#6 |
+
–
E:\IIS\website\framework\web\CController.php(308): SurveyCommonAction-> runWithParams(array("r"
=> "admin/dataentry/sa/import/surveyid/782166", "sa" => "import",
"surveyid" => "782166", "iSurveyId" => "782166", ...))
303 {
304 $priorAction=$this->_action;
305 $this->_action=$action;
306 if($this->beforeAction($action))
307 {
308 if($action->runWithParams($this->getActionParams())===false)
309 $this->invalidActionParams($action);
310 else
311 $this->afterAction($action);
312 }
313 $this->_action=$priorAction;
|
#7 |
+
–
E:\IIS\website\framework\web\CController.php(286): CController-> runAction(DataEntry)
281 * @see runAction
282 */
283 public function runActionWithFilters($action,$filters)
284 {
285 if(empty($filters))
286 $this->runAction($action);
287 else
288 {
289 $priorAction=$this->_action;
290 $this->_action=$action;
291 CFilterChain::create($this,$action,$filters)->run();
|
#8 |
+
–
E:\IIS\website\framework\web\CController.php(265): CController-> runActionWithFilters(DataEntry, array())
260 {
261 if(($parent=$this->getModule())===null)
262 $parent=Yii::app();
263 if($parent->beforeControllerAction($this,$action))
264 {
265 $this->runActionWithFilters($action,$this->filters());
266 $parent->afterControllerAction($this,$action);
267 }
268 }
269 else
270 $this->missingAction($actionID);
|
#9 |
+
–
E:\IIS\website\application\controllers\AdminController.php(202): CController-> run("dataentry")
197 }
198
199 $this->runModuleController($action);
200
201
202 return parent::run($action);
203 }
204
205 /**
206 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers.
207 *
|
#10 |
+
–
E:\IIS\website\framework\web\CWebApplication.php(282): AdminController-> run("dataentry")
277 {
278 list($controller,$actionID)=$ca;
279 $oldController=$this->_controller;
280 $this->_controller=$controller;
281 $controller->init();
282 $controller->run($actionID);
283 $this->_controller=$oldController;
284 }
285 else
286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
287 array('{route}'=>$route===''?$this->defaultController:$route)));
|
#11 |
+
–
E:\IIS\website\framework\web\CWebApplication.php(141): CWebApplication-> runController("admin/dataentry/sa/import/surveyid/782166")
136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
137 $_GET[$name]=$value;
138 }
139 else
140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
141 $this->runController($route);
142 }
143
144 /**
145 * Registers the core application components.
146 * This method overrides the parent implementation by registering additional core components.
|
#12 |
+
–
E:\IIS\website\framework\base\CApplication.php(185): CWebApplication-> processRequest()
180 public function run()
181 {
182 if($this->hasEventHandler('onBeginRequest'))
183 $this->onBeginRequest(new CEvent($this));
184 register_shutdown_function(array($this,'end'),0,false);
185 $this->processRequest();
186 if($this->hasEventHandler('onEndRequest'))
187 $this->onEndRequest(new CEvent($this));
188 }
189
190 /**
|
#13 |
+
–
E:\IIS\website\index.php(192): CApplication-> run()
187 require_once APPPATH . 'core/LSYii_Application' . EXT;
188
189 $config = require_once(APPPATH . 'config/internal' . EXT);
190
191 Yii::$enableIncludePath = false;
192 Yii::createApplication('LSYii_Application', $config)->run();
193
194 /* End of file index.php */
195 /* Location: ./index.php */
|