Data Painter Function Issue
search cancel

Data Painter Function Issue

book

Article ID: 191252

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

While using the @string(date,dateformat)@ function in ARD, the function is not generating a 4 digit year using YYYY format. If i use the below function then i get an error

@string(~CDATE~,DD/MM/YYYY)@ 

Exception: MetaFunctions : uf_process_function : Exception: MetaFunctions : uf_string : Exception Index and length must refer to a location within the string.
Parameter name: length Stack Trace:    at System.String.Substring(Int32 startIndex, Int32 length)
   at GT.TDMoD.Services.Common.GTCommon.IsDateTimeFormat(String ps_format, Int32& pl_date_format, Int32& pl_time_format)
   at GT.TDMoD.Services.Generator.MetaFunctions.uf_string(String ps_string, String ps_format) : Stack :    at GT.TDMoD.Services.Generator.MetaFunctions.uf_string(String ps_string, String ps_format)
   at GT.TDMoD.Services.Generator.MetaFunctions.uf_process_function(String ps_function_call)


If i change the year format to 3 characters as YYY then it gives the 4 digit year or using YY to generate a 2 digit year also works.
@string(~CDATE~,DD/MM/YYY)@ 

Please resolve. I am on version 3.0.5.5

Environment

Release : 4.9

Component : CA Test Data Manager - TDM Web Portal

Resolution

********************************************
We stopped supporting legacy TDOD. It should work with TDMService
********************************************
Please start using TDMService and stop using TDoD service for the communication link between ARD and TDMPortal.  This will resolve this issue.

http://<>:8080/TDMService
OR
https://<>:8443/TDMService

Use the same port as you use for connecting to the TDMPortal.