CRM Script - The remote server returned an error: (500) Internal Server Error

Hi,

We have a script that when a sales reaches a certain stage creates a document in SuperOffice.  The trouble it this document is huge, with a number of varible substitutions, and it takes about 4 - 5 minutes for SuperOffice to create the document.

When it is created with the script, the following error is returned.

CRM Script - The remote server returned an error: (500) Internal Server Error

Basically it is timing out.  Sometime we get another error "The operation has timed out", though it is normally the Internal Server Error that we get.

If you choose a different document template, all works fine.

Whilst we understand we cannot speed up the process, unless the customer cleans up their template a bit.  Is there any way of preventing the error.  I have tried to increase timeout settings in IIS, but cannot stop this error from occuring.

Many thanks,

Trevor

RE: CRM Script - The remote server returned an error: (500) Internal Server Error

Hi Trevor, did you find out what the issue was? Have something similar..

Av: Klaus Feierlein 20. maj 2021

RE: CRM Script - The remote server returned an error: (500) Internal Server Error

You have exceeded one or more of the limitations in in CRMScript:

  • It is not allowed to run a script for more than 60 seconds.
  • Memory-intensive scripts are not allowed. Each script may not consume more than 8 MB of memory.

You can read more about what you can and can't do in the documentation.

Av: Bergfrid Skaara Dias 7. jul 2021

RE: CRM Script - The remote server returned an error: (500) Internal Server Error

Hi, just a question.

@Bergfrid Skaara Dias

The limitations you mention applies only to the online environment I guess?
It seems like Trevor get these error in a onprem environment.

Best regards
Patrik

 

Av: Patrik Lindholm 7. jul 2021

RE: CRM Script - The remote server returned an error: (500) Internal Server Error

You're absolutely right, Patrik. Thanks for pointing out the difference.

Av: Bergfrid Skaara Dias 8. jul 2021