Solved

Schedules Task: Transferring Mobile Work Orders

  • 21 February 2023
  • 2 replies
  • 45 views

Userlevel 4
Badge +10

Good Morning - I am receiving daily error codes for a scheduled task to transfer work orders to mobile app at 18:00hrs. The error message is saying ‘Invalid WO Status’. Can anyone advise if there is an anomaly  with the set up below - Many thanks for your help.

 

icon

Best answer by Bandula 21 February 2023, 12:58

View original

2 replies

Userlevel 6
Badge +12

Hi,

In this App9 code having multiple values for WO state is not supported.

So you can define 2 separate schedules for both states. Make sure input state in Uppercase. 

 

This the validation in the code.

 

  -- validate status
      IF (wo_status_ NOT IN('PREPARED','FAULTREPORT','ONROUTE', 'STARTED','WORKREQUEST','RELEASED','OBSERVED','UNDERPREPARATION','ASSIGNED','ACCEPTED' )) THEN  
          Error_SYS.Appl_General(lu_name_, 'TRANSWOSTATUS: Invalid Wo Status.');
      END IF;

 

Userlevel 4
Badge +10

Many thanks for your assistance - much appreciated. Thank you

Reply