ROC - Replace Text in File Action Issue

book

Article ID: 131790

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

ROC - Replace Text in File Action Issue: Unable to replace text, even though choosing the regular-expression configuration in action =True the replacement is not working

Cause

During analysis it was identified that the text value to be replaced consisting of $ and some special characters which is processed as regular expression instead of plain text the replacement of text in file are failing.

The reason it is not working with regular expression because in regular expression the $ is a keyword the the text value need to be replaced is having the $ which need to be considered as text.

Environment

CA Release Automation: 6.5, 6.6 or higher

Resolution

To match the text the preferred configuration in RA action should be something like \$abcd instead of $abcd

Additional Information

Also please make sure that you are using the same encoding in action which is there on file at the target server.