none
SSO configuration value assign to schema field (xpath) error RRS feed

  • Question

  • varT = SSO.Utility.SSOClientHelper.Read("testApp", "Name");
    
    System.Diagnostics.EventLog.WriteEntry("Log", varT);
    
    xpath (output, "string(/*[local-name()='Root' and namespace-uri()='http://ABC.Out']/*[local-name()='Naam' and namespace-uri()=''])")= varT;

    I am using above code in my Expression shape and  'varT' is populating correct.
    But when I am assigning this variable value to xPath it is throwing below error. Please advise

    Inner exception: Illegal attempt to update the value of part 'part' in XLANG/s message 'output' after the message construction was complete.

    RH

    Friday, August 16, 2019 9:28 PM

All replies

  • That is because message are immutable except inside a Construct Message shape where you are creating the message.   
    Sunday, August 18, 2019 9:49 PM
  • Hi Dan,

    Following code should be written in Msg Assignment shape. 

    xpath (output, "string(/*[local-name()='Root' and namespace-uri()='http://ABC.Out']/*[local-name()='Naam' and namespace-uri()=''])")= varT;

    Value should be assigned in same message assignment shape where it is constructed.


    Pooja Jagtap Software Engineer KPIT Cummins

    Wednesday, August 21, 2019 8:52 AM