ListAccountCodes API Issue

Problem reported by Chris Curtis 9 years ago

Hi,

I've been using the API all fine. This morning I am getting a error when using ListAccountCodes.

The error on the server logs says

[13-Jan-2016 10:40:55 Europe/Dublin] PHP Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] SOAP-ERROR: Encoding: string '\xa0...' is not a valid utf-8 string in C:\inetpub\nucoplus\inc\clearbooksapi\src\Clearbooks\Soap\1\0.php:388 Stack trace:

0 C:\inetpub\nucoplus\inc\clearbooksapi\src\Clearbooks\Soap\1\0.php(388): SoapClient->__soapCall('listAccountCode...', Array, Array)

1 C:\inetpub\nucoplus\inc\clearbooksapi\src\Clearbooks\Soap\1\0.php(241): Clearbooks_Soap_1_0->_call('listAccountCode...')

2 C:\inetpub\nucoplus\inc\clearbooksapi\live\ListAccountCodes.php(7): Clearbooks_Soap_1_0->listAccountCodes()

3 {main}

thrown in C:\inetpub\nucoplus\inc\clearbooksapi\src\Clearbooks\Soap\1\0.php on line 388

The call is made from - http://www.nucoplus.com/inc/clearbooksapi/live/ListAccountCodes.php - which is using the code from the pre-compiled library on the API documentation.

I created some new codes yesterday so i'm not sure if that has something to do with it.

Any help would be greatly appreciated.

4 Replies

Hi Chris,

Have you added any new account codes with special characters in them recently?

Seems to me that it's an character encoding issue, this means we have to investigate this further but a quick fix could be to edit the name of the account to not include accented/special characters.

Lajos

Hi Lajos,

Thanks for your quick reply. I'll go through the accounts I created and retype them.

It could be possible because I copy and pasted the names it included non printable characters from the spreadsheet perhaps.

I'll advise if I find anything further.

Hi Chris,

I took a quick look and seems to me that the account with number 2007001 starts with a weird empty character. That may be the issue.

I added a ticket so we can look into why this happens.

Let me know if editing that account solves it.

Lajos

Hi Lajos,

Thank you so much, removing the empty character has solved the issue!

That is brilliant, Thanks!

Reply to this problem

Attach images by dragging and dropping or upload
 

Your comments will be public and can be answered by anyone in the Clear Books community.

Find out what we do and who we are