Unable to make Sales Invoice from Sales Order

Hi,

One of our client has created a sales order with 520 items(one item per row in sales order items).

He wants to make invoice from the sale order, so he clicks on “Make Invoice” button to create SI from SO. But it did not copying the data from SO to SI.It just showed the progress bar and after a while it showed 502 Bad gateway error.

We concluded that, this is happening because of too many rows added on Sales Order form. So we suggested for splited the sales order, but client is not interested in splitting the order into multiple parts.

Is there any alternative to manage SO -> SI flow, with too many items under single SO?

Thanks, Rohit
NewIndictransTechnologies

Check the trace and confirm if the reason is too many rows. We have seen orders with 1000 rows.

On console log i am getting following error:

500 Internal Server Error
Uncaught SyntaxError: Unexpected token <

Kindly refer below image

Also on console under network tab, i found following things:

General
Remote Address:
Request URL:http://128.199.188.134/
Request Method:POST
Status Code:500 Internal Server Error
Response Headers
view source
Connection:keep-alive
Content-Length:141
Content-Type:text/html
Date:Tue, 05 May 2015 06:17:18 GMT
Server:nginx/1.4.6 (Ubuntu)
Request Headers
view source
Accept:application/json, text/javascript, /; q=0.01
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Content-Length:103
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:user_image=“https%3A//secure.gravatar.com/avatar/7b7bc2512ee1fedcd76bdc68926d4f7b%3Fd%3Dretro”; user_id=Administrator; system_user=yes; full_name=Administrator; sid=42bffd7cdcd6852f939376e293875b9c96bb68b14b7b7501a850392e
DNT:1
Host:128.199.188.134
Origin:http://128.199.188.134
Referer:http://128.199.188.134/desk
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
X-Requested-With:XMLHttpRequest
Form Data
view source
view URL encoded
source_name:SO-00424-2
cmd:erpnext.selling.doctype.sales_order.sales_order.make_sales_invoice
_type:GET

SO -> SI flow with 520+ items in rows, is working properly on local machine. But it is not working on client’s server(Digital Ocean). Is it regarding with server timeout?
Please provide the solution.

Thanks, Rohit
NewIndictransTechnologies Pvt. Ltd.