Content body cannot be converted to new editor format if my html page has a URL
Asked by Kommaraju Ajay Kumar:

Dear Community,

I am receiving the below error while posting my html page to the confluences .

My Html page looks like this

\<table\>  
\<tr\>\<td\>1\</td\>\<td\>6419476\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174\&eventid=6419476](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476)  
\</td\>\</tr\>  
\<tr\>\<td\>2\</td\>\<td\>6218221\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=339794&eventid=6218221)[xxx.domain](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476)[.com/zabbix/tr_events.php?triggerid=339794\&eventid=6218221](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=339794&eventid=6218221)  
\</td\>\</tr\>  
\<tr\>\<td\>3\</td\>\<td\>5977900\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340269&eventid=5977900)[xxx.domain](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476)[com/zabbix/tr_events.php?triggerid=340269\&eventid=5977900](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340269&eventid=5977900)  
\</td\>\</tr\>  
\<tr\>\<td\>4\</td\>\<td\>5864141\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340459&eventid=5864141)[xxx.domain](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476)[.com/zabbix/tr_events.php?triggerid=340459\&eventid=5864141](https://mgt02.intacct.com/zabbix/tr_events.php?triggerid=340459&eventid=5864141)  
\</td\>\</tr\>  
\</table\>

If I remove \<td\>url\</td\> from the page I am able to post the data to the confluence.

![Screenshot 2021-08-30 at 6.13.34 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/158119i18C7985D6F0B20AA/image-size/large?v=v2&px=999 "Screenshot 2021-08-30 at 6.13.34 PM.png")Need your help   


Answers:
author: Kommaraju Ajay Kumar
body: I found the answer here :

<br />

<https://community.atlassian.com/t5/Confluence-questions/quot-Content-body-cannot-be-converted-to-new-editor-format-quot/qaq-p/1332071#M216408>

Thanks [@Ayush Ujjwal](/t5/user/viewprofilepage/user-id/4499253)


author: Kommaraju Ajay Kumar
body: After multiple debugging sessions I found that if an url has '\&' symbol , confluence rest api is failing to post the data

[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174\&eventid=6419476](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476) will fail but

<https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174> will be updated.

My script constructs the table as below

\['1', '6419476', 'ia_hw_raid', '[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174\&eventid=6419476](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476)'\]

\['2', '6218221', 'ia_hw_raid', '[https://xxx.domain.com/zabbix/tr_events.php?triggerid=339794\&eventid=6218221](https://xxx.domain.com/zabbix/tr_events.php?triggerid=339794&eventid=6218221)'\]

\['3', '5977900', 'ia_hw_raid', '[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340269\&eventid=5977900](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340269&eventid=5977900)'\]

\['4', '5864141', 'ia_hw_raid', '[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340459\&eventid=5864141](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340459&eventid=5864141)'\]

\['5', '5630524', 'ia_hw_raid', '[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340364\&eventid=5630524](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340364&eventid=5630524)'\]

\<table\>

\<tr\>\<td\>1\</td\>\<td\>6419476\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174\&eventid=6419476](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340174&eventid=6419476)\</td\>\</tr\>

\<tr\>\<td\>2\</td\>\<td\>6218221\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://xxx.domain.com/zabbix/tr_events.php?triggerid=339794\&eventid=6218221](https://xxx.domain.com/zabbix/tr_events.php?triggerid=339794&eventid=6218221)\</td\>\</tr\>

\<tr\>\<td\>3\</td\>\<td\>5977900\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340269\&eventid=5977900](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340269&eventid=5977900)\</td\>\</tr\>

\<tr\>\<td\>4\</td\>\<td\>5864141\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340459\&eventid=5864141](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340459&eventid=5864141)\</td\>\</tr\>

\<tr\>\<td\>5\</td\>\<td\>5630524\</td\>\<td\>ia_hw_raid\</td\>\<td\>[https://xxx.domain.com/zabbix/tr_events.php?triggerid=340364\&eventid=5630524](https://xxx.domain.com/zabbix/tr_events.php?triggerid=340364&eventid=5630524)\</td\>\</tr\>

\</table\>

\<class 'str'\>

{

"data": {

"authorized": false,

"errors": \[\],

"successful": false,

"valid": true

},

"message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format",

"statusCode": 400

}


Tags: cloud

confluence-cloud