oracle+ora+01428,ORA-01428: argument '0' is out of range -- Error recently started showing up

As of about 3 weeks ago, we started seeing this error popping up in several places in our team portal: ORA-01428: argument '0' is out of range.

Upon troubleshooting, we narrowed it down to a common SQL query, and we were even able to find out exactly where it is coming from. We have a where clause here:where ((((a.new_area_id = :P63_SPECIALTY_ID)    or exists(select area_id from AREAS s where s.AREA_ID = a.new_area_id and s.PARENT_AREA = :P63_SPECIALTY_ID)     or exists(select s1.AREA_ID from AREAS s1 inner join AREAS s2 on s1.PARENT_AREA = s2.AREA_ID where s1.AREA_ID = a.new_area_id and s2.PARENT_AREA = :P63_SPECIALTY_ID)) and :P63_SUB_ID is null)     or a.new_area_id in (                                select regexp_substr(:P63_SUB_ID, '[^:]+', 1, rownum) v                                from dual                                connect by rownum <= length(:P63_SUB_ID || ':') - length(replace(:P63_SUB_ID, ':'))                                ))

And when we quote out the last OR statement, the error goes away. So we know the error is stemming from this statement:a.new_area_id in (                                select regexp_substr(:P63_SUB_ID, '[^:]+', 1, rownum) v                                from dual                                connect by rownum <= length(:P63_SUB_ID || ':') - length(replace(:P63_SUB_ID, ':'))

For reference, the variable `:P63_SUB_ID` comes from a group of Checkboxes on the page, and when checked, the variable is populated like `31:159:163` for example when 3 boxes are checked.

We have ran this snippet on a separate SQL command it it works fine producing the result:31159163

We also see that `:P63_SUB_ID` is being populated as we expect in the Session.

Again, this error only started showing up ~3 weeks ago, around the time of a recent APEX update. Does anyone know what might be causing this error, or if the update changed some functionality?

Thanks.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值