Sometimes, when I modified SL limit order (to trail it), it is not modified, and when I check history, the status say so. This is quite random and happens occassionaly. What could be the probable cause of this. For e.g. today this happened in one of my order id: #220504200180245
You need to check status_message, not status in order history if you want to check for historical order failure reason. Doc link was highlighted in the above reply.
status_message
field.