Code not working

Code not working

Hello,

I met a strange issue today, never seen this before. Last time (a month ago) when I used this part of the code, it was working fine. I am the admin, and did not change anything in the code.
The flow is, that production form is opened from an order report by a custom action button, and on load the production form some field values are fetched from order to production. The first part of the flow is working, production form is opened, but none of the fields are fetched from order.
Important to say that nothing has been changed in the application.
The app was created 4 years ago, and it has been running smoothly so far.

Anyone has ever seen something similar?

Best
George