The following error occurs when adding a condition to a macro AHD05319: Error creating new macro"

book

Article ID: 185513

calendar_today

Updated On:

Products

CA Service Desk Manager

Issue/Introduction

When adding a new condition to macro it fails with an error

 spelsrvr             1660 ERROR        macro.spl              124 Error validating macro:
...
) &&  getval_by_name("group")  == (uuid) "B976A14090'

web:local            1160 ERROR        freeaccess.spl       25889  update checkin of macro:400144 failed: AHD05319: Error creating new macro 

Cause

This error is due to the maximum size set in the ntext field in the database which is 4000, notice that the error shows that the last part of the condition is truncated.

...
) &&  getval_by_name("group")  == (uuid) "B976A14090'

The typical uuid is longer that the one above and it ends with two quotes not with a single quote.

uuid) "7C16AB9E4E22A24C83CD3EA83232D9E6"

Environment

Release : 17.1

Component : SERVICE DESK MANAGER

Resolution

It is not possible to create a macro with conditiions that have more 4.000 chatacters this is an expected behavior, Out of the box the field cannot be edited with the Web Screen Painter.