As you mention, this error could occur randomly.
A way to protect your code is to catch the exception then retry your request after a delay.
from threading import Event timer = Event() ... while True: try: ts = ek.get_timeseries(...) break except ek.EikonError as err: if err.err_code != 2504: # request failed with other reason than 2504 error code break # let's retry after a delay timer.wait(1)
(timer.wait() is better than time.sleep())
Im downloading the fields "TR.LNMandatedArrangerParent" and "TR.LNMandatedArrangerParentNation", concatenationg with the character "|". However, I get results in "mixed" order, I attached a picture below.