Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

ProgrammingError: relation "ir_sequence_031" does not exist

Odoberať

Get notified when there's activity on this post

This question has been flagged
sequencepostgresql9.2
2 Replies
3458 Zobrazenia
Avatar
Sampath Kumar S

Hi,

I restored a OpenERP 7 db from PostgreSQL 9.2 from one system to another system on a PostgreSQL9.2. All the sequences are created properly but still getting the error as below

2021-04-05 08:29:23,904 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:23] "POST /web/menu/load_needaction HTTP/1.1" 200 -

2021-04-05 08:29:24,216 8044 INFO  OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:24] "POST /web/action/load HTTP/1.1" 200 -

2021-04-05 08:29:24,750 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:24] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:24,865 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:24] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:24,970 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:24] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:25,155 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:25] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:25,188 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:25] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:25,279 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:25] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:25,717 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:25] "POST /web/dataset/search_read HTTP/1.1" 200 -

2021-04-05 08:29:27,732 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:27] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:28,240 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:28] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:28,464 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:28] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:28,740 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:28] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:34,549 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:34] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:35,668 8044 INFO OPENERP7_DB werkzeug: 127.0.0.1 - - [05/Apr/2021 08:29:35] "POST /web/dataset/call_kw HTTP/1.1" 200 -

2021-04-05 08:29:37,237 8044 ERROR OPENERP7_DB openerp.sql_db: Programming error: relation "ir_sequence_031" does not exist

LINE 1: SELECT nextval('ir_sequence_031')

                       ^

, in query SELECT nextval('ir_sequence_031')

2021-04-05 08:29:37,237 8044 ERROR OPENERP7_DB openerp.osv.osv: Uncaught exception

Traceback (most recent call last):

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 132, in wrapper

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 199, in execute

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 187, in execute_cr

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\stock\stock.py", line 636, in create

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 307, in get

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 299, in get_id

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 284, in next_by_code

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\account\ir_sequence.py", line 57, in _next

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 249, in _next

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\sql_db.py", line 161, in wrapper

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\sql_db.py", line 226, in execute

ProgrammingError: relation "ir_sequence_031" does not exist

LINE 1: SELECT nextval('ir_sequence_031')

                       ^

 

2021-04-05 08:29:37,239 8044 ERROR OPENERP7_DB openerp.netsvc: relation "ir_sequence_031" does not exist

LINE 1: SELECT nextval('ir_sequence_031')

                       ^

Traceback (most recent call last):

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\netsvc.py", line 306, in dispatch_rpc

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\service\web_services.py", line 632, in dispatch

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 190, in execute_kw

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 132, in wrapper

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 199, in execute

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\osv\osv.py", line 187, in execute_cr

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\stock\stock.py", line 636, in create

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 307, in get

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 299, in get_id

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 284, in next_by_code

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\account\ir_sequence.py", line 57, in _next

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\openerp\addons\base\ir\ir_sequence.py", line 249, in _next

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\sql_db.py", line 161, in wrapper

  File "C:\Program Files (x86)\Openerp7.0\OpenERP 7.0-20170301\server\.\openerp\sql_db.py", line 226, in execute

ProgrammingError: relation "ir_sequence_031" does not exist

LINE 1: SELECT nextval('ir_sequence_031')

                       ^

This is popping up while creating any records.
SQL dump file did not have "AS INTEGER" while creating the sequences

Thanks

 

0
Avatar
Zrušiť
Avatar
Kiran K
Best Answer

Hi ,

The issue occurs when you try to restore the backup from a higher version to a lower version.

Remove 'As integer' from dump.sql file and restore it will solve the issue .

Hope it Helps,

Kiran K

4
Avatar
Zrušiť
Avatar
Sampath Kumar S
Autor Best Answer

Hi,

I created all the sequences again and it started working.

Thanks

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
Sequence Prefix
sequence
Avatar
0
feb 23
6414
How to customize the invoice,bill and journal name sequence
sequence
Avatar
0
jan 23
95
What is the best (correct) way to create sequence ? py or xml? Solved
sequence
Avatar
Avatar
1
okt 22
5186
Deleted a sequence
sequence
Avatar
0
apr 22
3605
Set an increment for customer reference Solved
sequence
Avatar
Avatar
Avatar
2
mar 25
3678
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now