Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

I'm trying to integrate with a service that has nested multiples. I have fo

I'm trying to integrate with a service that has nested multiples. I have followed all directions I can find on forum, but I'm still stuck. I created a PV of the parent CDT of the nested multiple, but I'm still unsure as to how to retrieve the elements that are supposed to be returned for that nested multiple. I can also see in the application log file that the elements are getting returned in the web service response....but how do I map them to a PV or my pre-existing CDT? Also, I continue to get this error...(Cannot slice index (index by name on a list) when the element has no list type) (Data Outputs)

Please help!
...

OriginalPostID-103475

OriginalPostID-103475

  Discussion posts and replies are publicly visible

Parents
  • Thanks for the comments guys! I did create a CDT last night that matches just the nested multiple in the web service. I saved the parent of the nested web service to it's own PV (of type defined by the web service, and a multiple). In a script task after the "Call Web Service" node I created an output that maps the following:
    pv!holding.securityPosition
    is stored as
    securityPosition (the CDT I created that matches the nested multiple and is a multiple)

    I get this error in my script task..."There is a problem with task “Script Task” in the process “TESTING_Get Holdings Web Service Call”. ERROR:An error occurred while evaluating expression: securityPosition:pv!holding.securityPosition (Cannot slice index (index by name on a list) when the element has no list type) (Data Outputs)"

    Am I getting this error because I'm not defining the index? i.e. [1] The problem is I was all values returned, not just for a specific index.
Reply
  • Thanks for the comments guys! I did create a CDT last night that matches just the nested multiple in the web service. I saved the parent of the nested web service to it's own PV (of type defined by the web service, and a multiple). In a script task after the "Call Web Service" node I created an output that maps the following:
    pv!holding.securityPosition
    is stored as
    securityPosition (the CDT I created that matches the nested multiple and is a multiple)

    I get this error in my script task..."There is a problem with task “Script Task” in the process “TESTING_Get Holdings Web Service Call”. ERROR:An error occurred while evaluating expression: securityPosition:pv!holding.securityPosition (Cannot slice index (index by name on a list) when the element has no list type) (Data Outputs)"

    Am I getting this error because I'm not defining the index? i.e. [1] The problem is I was all values returned, not just for a specific index.
Children
No Data