In Codebook, the screener does not work when the field TR.NAICSNationalIndustryCode is included. For example, the commands
screener_output=Screener('U(IN(Equity(active,public,primary))), IN(TR.GICSSectorCode,"45"), IN(TR.NAICSNationalIndustryCode,"513210"), TOP(TR.H.EV(Curn=USD),7,nnumber),Curn=Native')
df=fundamental_and_reference.Definition(universe=[screener_output.expression],fields=['TR.CompanyName','TR.F.EV'], parameters={'curn':'USD','NULL':'Blank','Scale':6}).get_data()
return error code 800 (see 1st attachment).
When the parameter IN(TR.NAICSNationalIndustryCode,"513210") is removed, the code runs fine (see 2nd attachment).
Can this be corrected so that the screener works with the field TR.NAICSNationalIndustryCode as well?