Focal Point
[CLOSED] (FOC015) THE TEST VALUE IS LONGER THAN THE FIELD FORMAT LENGTH

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8617021396

April 14, 2020, 01:48 PM
Div
[CLOSED] (FOC015) THE TEST VALUE IS LONGER THAN THE FIELD FORMAT LENGTH
I am getting error for the below code:

-SET &CREATE_AM_ING= IF 'REPOSTORY^CREATED DATE' LIKE '%SELLING CODES CREATED DATE% AND 1 NE '1' THEN '' ELSE '-*';

ERROR MESSAGE:
(FOC015) THE TEST VALUE IS LONGER THAN THE FIELD FORMAT LENGTH

Thanks in advance

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.6
Windows, All Outputs
April 14, 2020, 02:16 PM
MartinY
Your LIKE test string is missing ending quote.

'%SELLING CODES CREATED DATE%

Also, why a circumflex accent
^

'REPOSTORY^CREATED DATE'



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
April 14, 2020, 11:57 PM
Div
It based on Paramter value changed and '^' used to separate values.


WebFOCUS 7.6
Windows, All Outputs
April 15, 2020, 07:46 AM
MartinY
quote:
Originally posted by Div:
It based on Paramter value changed and '^' used to separate values.

Ok, but you know that your condition could never be true due to that character in the case where the parameter generates the below condition
IF 'SELLING CODES^CREATED DATE' LIKE '%SELLING CODES CREATED DATE%'


Have you resolved the error issue by adding the missing quote ?


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007