Error while validating constraint - odoo-10

when I am writing in a field in Arabic language and save the file, Odoo raises this exception:
Error while validating constraint
123
The filename, directory name, or volume label syntax is incorrect

Related

Laravel 8 - Unable to seed the DataBase / factory error

Hi I am new to creating factories on Laravel and I am setting up a blog website. I had this going just fine and now it isn't working anymore.
When I use "tinker" to add fake data using (App/Models/Post::factory(30)->create();), below error keep occurs. Could anyone please educate me why this error occurs?
App/Models/Post::factory(30)->create();
PHP Warning: Use of undefined constant App - assumed 'App' (this will throw an Error in a future version of PHP) in F:\coding\laravel\test-laraveleval()'d code on line 1
PHP Warning: Use of undefined constant Models - assumed 'Models' (this will throw an Error in a future version of PHP) in F:\coding\laravel\test-laraveleval()'d code on line 1
PHP Warning: A non-numeric value encountered in F:\coding\laravel\test-laraveleval()'d code on line 1
PHP Warning: A non-numeric value encountered in F:\coding\laravel\test-laraveleval()'d code on line 1
PHP Warning: Division by zero in F:\coding\laravel\test-laraveleval()'d code on line 1
[!] Aliasing 'Post' to 'App\Models\Post' for this Tinker session.
Illuminate\Database\QueryException with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'sint' for key 'categories_name_unique' (SQL: insert into categories (name, slug, updated_at, created_at) values (sint, ut-quisquam-et-et-tenetur-molestias-in-dolor-voluptatum, 2022-03-16 07:11:05, 2022-03-16 07:11:05))
'
You have to define factory rules such that you have a constraint in your database that checks for category name uniqueness.
You should read how to write a custom factory in Laravel 8:Examples how to generate factories.

Error when sqooping data to Vertica with column name as 'From','To'

I am trying to sqoop data to Vertioca to a table which has Column named 'From','To', because of which I am getting erorr as VJDBC ERROR: Syntax error at or near "To" . Any alternative to this if we cannot change the column name in DB
As suggested by #marcothesane in the comment, Adding double quotes resolved my problem.

Codeigniter system folder error

I am working on a project with codeigniter and all of a sudden I started getting this kind of error message.
And it is coming from the system folder, database driver, language.
Here is the error message
A Database Error occurred
Error Number 1364
Field 'english' doesn't have a default value
INSERT INTO 'language' ('Phrase') VALUES ('Question')
Filename C:\Wamp64\www\sms\system\database\DB_driver.php
Line Number : 330
Your language table has English column, there is you have not set the default value and you are trying to insert in language table without English column value.
That's it.
Thanks

ORA-00972 when use Japanese fields name

I have a oracle table with Japanese field name as "日本語項目分類カナ名称", when I select 日本語項目分類カナ名称 from myTable, I got error as below:
ORA-00972: identifier is too long
Cause: An identifier with more than 30 characters was specified.
Action: Specify at most 30 characters.
what can I do? this table is used by a lot of app, I can't modify field name...

Magento getting An error has occured while syncronizing media storages. when I try synchronize media to database

Seeing this error in exceptions.log
> Next exception 'Zend_Db_Statement_Exception' with message 'INSERT INTO
> `core_directory_storage` (`name`, `path`, `upload_time`,
> `parent_id`) VALUES (?, ?, '2015-06-15 09:25:48', ?)
> SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
> 'O-1395' for key 'UNQ_CORE_DIRECTORY_STORAGE_NAME_PARENT_ID'' in
> /srv/magento/lib/Zend/Db/Statement/Pdo.php:234
I have truncated both core_storage_directory and core_storage_files but it seems to keep having this issue.
I got this answer from the great support team at Anchor Hosting!
We've seen similar issues before.
This appears to be caused by two directories with the same name, but different case.
eg. if the following directories appear under your media somewhere
mydir
myDir
The sync script inserts "mydir" then attempts to insert "myDir" and
thinks it already exists so raises the Integrity constraint violation
as it compares the names disregarding the case.
To avoid this, there are two options:
Remove/merge files and directories with the same names but different case.
or
Modify the database schema to use the BINARY attribute for the name and path on both core_file_storage and core_directory_storage. This will force MySQL to compare in a case-sensitive manner.

Resources