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

SyntaxError: JSON.parse: unexpected end of data at line 2 column 1 of the JSON data

Odoberať

Get notified when there's activity on this post

This question has been flagged
reportopenerp7
3 Replies
14847 Zobrazenia
Avatar
Rihene

Hello guys!!!

Please, i wprk with Reports.

I have added a new report. It has worked fine.

But now, it shows me this error:

SyntaxError: JSON.parse: unexpected end of data at line 2 column 1 of the JSON data

http://localhost:8069/web/webclient/js?db=openerp:3104

Trace:

2015-08-11 14:30:09,330 8601 ERROR openerp openerp.service.web_services: Exception: AttValue: " or ' expected, line 44, column 11

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 712, in go

(result, format) = obj.create(cr, uid, ids, datas, context)

File "/opt/openerp/v7/addons/report_webkit/webkit_report.py", line 330, in create

return super(WebKitParser, self).create(cursor, uid, ids, data, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 442, in create

fnct_ret = fnct(cr, uid, ids, data, report_xml, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 511, in create_source_pdf

return self.create_single_pdf(cr, uid, ids, data, report_xml, context)

File "/opt/openerp/v7/addons/report_webkit/webkit_report.py", line 204, in create_single_pdf

return super(WebKitParser,self).create_single_pdf(cursor, uid, ids, data, report_xml, context=context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 526, in create_single_pdf

processed_rml = etree.XML(rml)

File "lxml.etree.pyx", line 3012, in lxml.etree.XML (src/lxml/lxml.etree.c:68047)

File "parser.pxi", line 1786, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102641)

File "parser.pxi", line 1674, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101470)

File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96652)

File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91461)

File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92647)

File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91943)

XMLSyntaxError: AttValue: " or ' expected, line 44, column 11

2015-08-11 14:30:09,566 8601 ERROR openerp openerp.netsvc: AttValue: " or ' expected, line 44, column 11

(<class 'lxml.etree.XMLSyntaxError'>, XMLSyntaxError(u'AttValue: " or \' expected, line 44, column 11',), <traceback object at 0x7f772877b488>)

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc

result = ExportService.getService(service_name).dispatch(method, params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 654, in dispatch

res = fn(db, uid, *params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 760, in exp_report_get

return self._check_report(report_id)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 738, in _check_report

netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)

File "/opt/openerp/v7/server/openerp/netsvc.py", line 71, in abort_response

raise openerp.osv.osv.except_osv(description, details)

except_osv: (u'AttValue: " or \' expected, line 44, column 11', (<class 'lxml.etree.XMLSyntaxError'>, XMLSyntaxError(u'AttValue: " or \' expected, line 44, column 11',), <traceback object at 0x7f772877b488>))

2015-08-11 14:30:09,568 8601 INFO openerp werkzeug: 127.0.0.1 - - [11/Aug/2015 14:30:09] "POST /web/report HTTP/1.1" 500 -

Who can help me please!!

Regards.

0
Avatar
Zrušiť
Avatar
Rihene
Autor Best Answer

I have found the solution:

It was because of the OpenERP while installing modules, table res_company is missing some attributes :  name, city, zip, country_id...

When i have eliminated them the report works correctly.

So now, i have to reinstall an other database and be carefull in completing attributes of tables :)

Regards.

0
Avatar
Zrušiť
Avatar
laribi
Best Answer

There is an error in xml file in which you defined the header of your report or the report. Please check it or upload and hope we find a solution.

0
Avatar
Zrušiť
Rihene
Autor

Here is the new error: 2015-08-11 15:13:34,544 12271 ERROR openerp openerp.service.web_services: Exception: u'report.titre de conge' Traceback (most recent call last): File "/opt/openerp/v7/server/openerp/service/web_services.py", line 711, in go obj = netsvc.LocalService('report.'+object) File "/opt/openerp/v7/server/openerp/netsvc.py", line 98, in LocalService return Service._services[name] KeyError: u'report.titre de conge' 2015-08-11 15:13:34,794 12271 ERROR openerp openerp.netsvc: report.titre de conge (, KeyError(u'report.titre de conge',), ) Traceback (most recent call last): File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/v7/server/openerp/service/web_services.py", line 654, in dispatch res = fn(db, uid, *params) File "/opt/openerp/v7/server/openerp/service/web_services.py", line 760, in exp_report_get return self._check_report(report_id) File "/opt/openerp/v7/server/openerp/service/web_services.py", line 738, in _check_report netsvc.abort_response(exc, exc.message, 'warning', exc.traceback) File "/opt/openerp/v7/server/openerp/netsvc.py", line 71, in abort_response raise openerp.osv.osv.except_osv(description, details) except_osv: (u'report.titre de conge', (, KeyError(u'report.titre de conge',), ))

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
ERROR openerp openerp.netsvc: AttValue: " or ' expected, line 44, column 11 Solved
report openerp7
Avatar
1
aug 15
5306
Python libraries xlrd and XlsxWriter for windows 2012 server not working
report openerp7 xlrd
Avatar
Avatar
Avatar
3
aug 19
10613
Not allowed to navigate top frame to data URL ?
chrome report openerp7
Avatar
0
máj 18
14433
How do I get the supplier Invoice No to a statement in payments
report openerp7 statement
Avatar
0
jan 17
4235
Ho to create a report to a popup in Openerp
report openerp7 popup
Avatar
0
dec 15
76
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