Question
Serialized Solutions Inc
CA
Last activity: 20 Nov 2018 12:51 EST
Cannot generate XML file with Connect-File and XML Stream
In Pega Platform 7.3.1, I am trying to generate an XML file from some of the data elements of a Case.
I created the Connect-File to point to the XML that will be generated. (applies to Work Object)
I created the XML stream (MyXMLStream) that will extract from Work Object to write XML (applies to Work Object)
(XML Type: xml)
I have an Activity to write the file. (Applies to Work Object).
Create new work object (Page-New) and set property.
Use of Connect-File
ConnectorName: XML stream name via autocomplete
Operation: Write from XML stream
Parameter: xml
When I run activity, it fails indicating it can't Rule-Obj-XML.
For Parameter, I have tried MyXMLStream xml, "MyXMLStream xml".
both attempts fail. Also, step page for Connect-File has been set with Page-New value as well.
The error also indicates still looking for MapFrom but as I am not using it via SOAP Response I didn't use that as the XML Type.
what am I missing?
thank you,
Rob
-
Likes (1)
Russel Kuate -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
CollabPartnerz
IN
Could you please provide snapshots of your configuration.
Serialized Solutions Inc
CA
@ Gayatri. thank you for your response. information and error message provided in attached word document. I hope I have included everything of importance
CollabPartnerz
IN
HI,
so as per the attached for your xml stream purpose is XML but in activity you mentioned parameter as XMLFeed xml so can you try updating your parameter as xml and let me know if you are facing any issue.
Serialized Solutions Inc
CA
@ Gayatri. I may have named the entries wrong but I am trying to generate the XML file (connect file) from the XML Stream mapping.
That's what I want to do but the error says it can't find the XMLFeed xml when I configure it as in the screenshots.
-
Elena Martín Jose Antonio Santiago Daniel Vallecillo
Swedbank AB
SE
Hi,
Can you try specifing parameter with out xml. Just specify XMLFeed.
Serialized Solutions Inc
CA
Hi ,
when I tried/try that, I get the error Failed to find instance SAE-HRServices-Work-EFormEntry.MapFrom of type Rule-Obj-XML.
thank you
Rob
Serialized Solutions Inc
CA
#pegahelp
Although the setting of the property helps, it doesn't make sense that this Activity step doesn't work
Serialized Solutions Inc
CA
#helpme
Although I have a workaround, it is still unclear why the function (Connect-File --> operation: Write from XML Stream rule) doesn't work at all. Has it been deprecated?
Pegasystems Inc.
IN
Hi Rob,
For Connect-File method, the XML stream rule should be created with the XML type as "MapFrom". Then just pass in your stream rule name in the parameters( XMLFeed).
Thanks,
Santhosh
-
Russel Kuate Vishruthi Reddy
CollabPartnerz
IN
Please find the below link might help you
https://collaborate.pega.com/question/can-you-modify-permissions-files-generated-connect-file-rule