Ax didn't respond a code

Dear all,

when i want to create a new code from number sequence, Ax can’t execute the following code:

select forupdate firstonly numberSequenceTable

indexhint seriesIdx

where numberSequenceTable.NumberSequence == _numberSequenceCode

AX will become not responding because this code…

this code lying in Classes\NumberSeq\getNumInternal

anybody can help?

Thanks