Good Day
I trying to customize a 0401000 screen, I trying to get a siteid from a detail of a purchase order and LineRef in a details grid of a receipt screen, I doing a simple select query but I am getting an error message

this is the query:

the code never hits the breakpoint because it sends an error message I read on the internet that the problem is caused by the data header file on the customization screen. i compare sql table with data header file but i don't see any difference
in the dynamics sl directory have 2 files

I use the purorddet.dh file





any idea what's wrong?
trying import the original file but the result is a error message


