Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. java.lang.IllegalStateException: java.lang.IllegalStateException: {"data":{"stack-trace":["#0 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/ActiveRecord.php(419): yii\\db\\Command->execute()","#1 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/ActiveRecord.php(394): yii\\db\\ActiveRecord->insertInternal(NULL)","#2 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/BaseActiveRecord.php(578): yii\\db\\ActiveRecord->insert(false, NULL)","#3 /home/www/cloud-rsync/common/models/base/Master.php(107): yii\\db\\BaseActiveRecord->save(false, NULL)","#4 /home/www/cloud-rsync/rest/versions/v1/controllers/SyncController.php(279): common\\models\\base\\Master->save(false)","#5 /home/www/cloud-rsync/rest/versions/v1/controllers/SyncController.php(68): rest\\versions\\v1\\controllers\\SyncController->parseSale(Array, '14386')","#6 [internal function]: rest\\versions\\v1\\controllers\\SyncController->actionCreate()","#7 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/InlineAction.php(54): call_user_func_array(Array, Array)","#8 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/Controller.php(147): yii\\base\\InlineAction->runWithParams(Array)","#9 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/Module.php(423): yii\\base\\Controller->runAction('create', Array)","#10 /home/www/cloud-rsync/vendor/yiisoft/yii2/web/Application.php(82): yii\\base\\Module->runAction('v1/sync/create', Array)","#11 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/Application.php(370): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))","#12 /home/www/cloud-rsync/rest/web/index.php(30): yii\\base\\Application->run()","#13 {main}"],"code":23503,"previous":{"stack-trace":["#0 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/Command.php(279): PDOStatement->execute()","#1 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/ActiveRecord.php(419): yii\\db\\Command->execute()","#2 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/ActiveRecord.php(394): yii\\db\\ActiveRecord->insertInternal(NULL)","#3 /home/www/cloud-rsync/vendor/yiisoft/yii2/db/BaseActiveRecord.php(578): yii\\db\\ActiveRecord->insert(false, NULL)","#4 /home/www/cloud-rsync/common/models/base/Master.php(107): yii\\db\\BaseActiveRecord->save(false, NULL)","#5 /home/www/cloud-rsync/rest/versions/v1/controllers/SyncController.php(279): common\\models\\base\\Master->save(false)","#6 /home/www/cloud-rsync/rest/versions/v1/controllers/SyncController.php(68): rest\\versions\\v1\\controllers\\SyncController->parseSale(Array, '14386')","#7 [internal function]: rest\\versions\\v1\\controllers\\SyncController->actionCreate()","#8 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/InlineAction.php(54): call_user_func_array(Array, Array)","#9 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/Controller.php(147): yii\\base\\InlineAction->runWithParams(Array)","#10 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/Module.php(423): yii\\base\\Controller->runAction('create', Array)","#11 /home/www/cloud-rsync/vendor/yiisoft/yii2/web/Application.php(82): yii\\base\\Module->runAction('v1/sync/create', Array)","#12 /home/www/cloud-rsync/vendor/yiisoft/yii2/base/Application.php(370): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))","#13 /home/www/cloud-rsync/rest/web/index.php(30): yii\\base\\Application->run()","#14 {main}"],"code":"23503","name":"Exception","type":"PDOException","message":"SQLSTATE[23503]: Foreign key violation: 7 ERROR: insert or update on table \"sale\" violates foreign key constraint \"sale_rel_channel\"\nDETAIL: Key (channel_id)=(0) is not present in table \"channel\"."},"name":"Database Exception","type":"yii\\db\\Exception","message":"SQLSTATE[23503]: Foreign key violation: 7 ERROR: insert or update on table \"sale\" violates foreign key constraint \"sale_rel_channel\"\nDETAIL: Key (channel_id)=(0) is not present in table \"channel\".\nThe SQL being executed was: INSERT INTO \"sale\" (\"trxno\", \"trxdate\", \"termtype\", \"cash_id\", \"branch_id\", \"cashier_id\", \"bp_id\", \"trxtype\", \"isvoid\", \"reserved_var1\", \"created_at\", \"taxed\", \"taxinc\", \"crc_id\", \"excrate\", \"fisrate\", \"billaddr\", \"shipaddr\", \"subtotal\", \"basesubtotal\", \"discexp\", \"discamt\", \"basediscamt\", \"taxamt\", \"basetaxamt\", \"basefistaxamt\", \"total\", \"basetotal\", \"paystatus\", \"channel_id\", \"trxitype\", \"isdraft\", \"acc_ar\", \"posses_id\", \"updated_at\", \"created_by\", \"updated_by\") VALUES ('JL/SBY142004021405/001', '2020-04-02 00:00:00', 'C', '7', '6', '14', '2271', 'S', , 'PS/SBY212004021354/001', NOW() AT TIME ZONE 'Asia/Jakarta', 1, , '1', '1', '1', 'GOJEK\n', 'GOJEK\n', '12250', '12250', '', '0', '0', '1225', '1225', '1225', '13475', '13475', 'N', '0', 'S', 1, '10', '11107', NOW() AT TIME ZONE 'Asia/Jakarta', '21', '21')"},"status":false}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement