The error appeared when I copied a train loading station when it was active for a train request (turquoise color) and installed it through a ghost
Error while running event RailLogisticsDispatcher::on_robot_built_entity (ID 14)
RailLogisticsDispatcher/script/entity.lua:507: attempt to index global 'disp' (a nil value)
stack traceback:
RailLogisticsDispatcher/script/entity.lua:507: in function 'entityHandleBuiltDispatcher'
RailLogisticsDispatcher/script/entity.lua:629: in function 'entityHandleBuilt'
RailLogisticsDispatcher/control.lua:87: in function <RailLogisticsDispatcher/control.lua:84>