TDM: FATAL error :Array boundary exceeded

book

Article ID: 195598

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

 

 We notice there is an issue pertaining to version 4.8 upgrade. The details are listed below:

  

The project  “TDM DMV VR “ is giving “FATAL error :Array boundary exceeded” . Out of 13 sub records in each data pool, one is not allowing formulas which then  leads to an error and crashes datamaker. However if hardcoded values is used, it publishes correctly. These formulas are working correctly in the version 4.4 ( current PROD environment ).

 

This is happening only after the upgrade. We are not creating new data pool. When I tried to republish  the  job , it crashed datamaker . There are no issue for same pool  in version 4.4.

Cause

 

Formula for one of the columns needed to be changed.

Environment

Release : 4.8.100.0

Component : Datamaker

Resolution

The current formula :
@if(^XVR_B_RO_3RD^=~EMPTY~,X'FF',X'@leftpad(@convbase(@subtract(@length(@trim(^XVR_B_RO_3RD^, )@)@,1)@,16)@,0,2)@')@

Replaced formula:

@if(^XVR_B_RO_3RD^=~EMPTY~,X'FF',X'@leftpad(@convbase(@case(@length(@trim(^XVR_B_RO_3RD^, )@)@>0,@subtract(@length(@trim(^XVR_B_RO_3RD^, )@)@,1)@,@subtract(@add(@length(@trim(^XVR_B_RO_3RD^, )@)@,8)@,1)@)@,16)@,0,2)@')@

case
length > 0: length - 1
else: (length + 8) - 1