cancel
Showing results for 
Search instead for 
Did you mean: 

InvalidVariableNameException: Invalid variable name: - in pattern Error

03-22-2019 9:46 AM
1438 views 3 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello Experts,

I am facing the below error during testing from RWB while trying to pass URL dynamically from the Pattern Variable Replacement using Manual value in the REST receiver adapter.

Please find the below screenshot for your reference.

Thanks in advance for the help.

0 Likes
View Entire Topic
former_member190293
Active Contributor
0 Likes

Hi Prashanth!

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey FileName1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/REST","auth_id");
conf.put(FileName1,auth_id);
FileName1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/REST","auth_token");
conf.put(FileName1,auth_token);
return "";

Regards, Evgeniy.