# Javascript error when "Accounting" in Sunstone

**URL:** <https://forum.opennebula.io/t/javascript-error-when-accounting-in-sunstone/6207>\
**Category:** Product Support\
**Created:** [July 31, 2018, 12:00pm UTC](https://forum.opennebula.io/t/javascript-error-when-accounting-in-sunstone/6207 "2018-07-31T12:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Beguier](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/nicolas_beguier/32/5730_2.png) [@Nicolas\_Beguier](https://forum.opennebula.io/u/Nicolas_Beguier)\
**Post date:** [July 31, 2018, 12:00pm UTC](https://forum.opennebula.io/t/javascript-error-when-accounting-in-sunstone/6207/1 "2018-07-31T12:00:51Z")

</div>

Hi,

Since the migration of OpenNebula from 5.4.6 to 5.6.0, we are unable to generate Accounting of a user or a group. For some user, we have the correct answer : “There are no accounting records”. For the other, we have nothing and the browser console give us this error :

```auto
jquery.dataTables.js:9213 Uncaught TypeError: Cannot read property 'parentNode' of null
    at _Api.<anonymous> (jquery.dataTables.js:9213)
    at _Api.iterator (jquery.dataTables.js:6978)
    at _Api.<anonymous> (jquery.dataTables.js:9212)
    at _Api.destroy (jquery.dataTables.js:7141)
    at jQuery.fn.init.DataTable.fnDestroy (jquery.dataTables.js:412)
    at _fillAccounting (accounting.js:576)
    at success (accounting.js:211)
    at Object.success (action.js:353)
    at fire (jquery.js:3187)
    at Object.fireWith [as resolveWith] (jquery.js:3317)
(anonymous)	@	jquery.dataTables.js:9213
iterator	@	jquery.dataTables.js:6978
(anonymous)	@	jquery.dataTables.js:9212
(anonymous)	@	jquery.dataTables.js:7141
DataTable.fnDestroy	@	jquery.dataTables.js:412
_fillAccounting	@	accounting.js:576
success	@	accounting.js:211
success	@	action.js:353
fire	@	jquery.js:3187
fireWith	@	jquery.js:3317
done	@	jquery.js:8785
(anonymous)	@	jquery.js:9151
XMLHttpRequest.send (async)		
send	@	jquery.js:9203
ajax	@	jquery.js:8684
accounting	@	action.js:347
accounting	@	vm.js:543
(anonymous)	@	accounting.js:208
dispatch	@	jquery.js:4737
elemData.handle	@	jquery.js:4549

```

* * *

OpenNebula is running on a Debian 9.5 and is on version 5.6.0  
It was working before the migration.

**Steps to reproduce:**

When logged in Sunstone dashboard, go to _System_ then _Groups_. Select oneadmin.  
Click on _Accounting_ and finally _Get accounting_

**Current results:**

Nothing append, except the JS error above

**Expected results:**

The accounting…

---

<div class="post-metadata">

**Author:** ![AbelC](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/abelc/32/5192_2.png) [@AbelC](https://forum.opennebula.io/u/AbelC)\
**Post date:** [July 31, 2018, 12:14pm UTC](https://forum.opennebula.io/t/javascript-error-when-accounting-in-sunstone/6207/2 "2018-07-31T12:14:02Z")

</div>

Hi @Nicolas_Beguier,

We are aware of this, and it is already solved for the following versions:

[https://github.com/OpenNebula/one/issues/2315](https://github.com/OpenNebula/one/issues/2315)

BR,  
Abel.

---

<div class="post-metadata">

**Author:** ![Nicolas\_Beguier](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/nicolas_beguier/32/5730_2.png) [@Nicolas\_Beguier](https://forum.opennebula.io/u/Nicolas_Beguier)\
**Post date:** [July 31, 2018, 12:36pm UTC](https://forum.opennebula.io/t/javascript-error-when-accounting-in-sunstone/6207/3 "2018-07-31T12:36:53Z")

</div>

Great ! Thank you
