IBM Support

IT40760: SET VARIABLE POLICY DOES NOT WORK FOR XML PAYLOADS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • After migration of the api with the IBM migration tool, are
    facing some issues during execution of messages in API Connect
    version 10.
    
    Add an invoke policy after the parse,  prior to the setvariable,
     message.body as the JSON object from the backend,
    request.parsed_body remains as XML document.
    
    After the set variable, message.body is now null.
      - set-variable:
             version: 2.0.0
             title: set-variable
             actions:
               - set: message.body
                 value: $(request.parsed_body)
                 type: any
    

Local fix

  • recommend they use gatewayscript. So replace the set-variable
    after invoke with a gatewayscript that has the following code:
    context.set("message.body", context.get("request.parsed_body"));
    

Problem summary

  • Setvar action cannot handle xml payload.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT40760

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    A0X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-04-27

  • Closed date

    2022-06-15

  • Last modified date

    2022-06-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DATAPOWER

  • Fixed component ID

    DP1234567

Applicable component levels

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateways"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A0X"}]

Document Information

Modified date:
16 June 2022