XSLT Step Throwing Errors applying stylesheet
Comments
-
We are using XSLT transformation in one of our Flows. XSLT step is returning below error.
But we verified the XSLT file and its working fine in our local XSLT processor.
I have attached XSLT file and XML input file
Name: [b][BusinessRule] XSLT stylesheet format is invalid[/b]
Exception Message: [b][BusinessRule] XSLT stylesheet format is invalidInput Values:
-- No Data --Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] XSLT stylesheet format is invalid at DecisionsFramework.Design.Flow.CoreSteps.XML.ApplyXSLTStylesheetStep.ApplyXslt(TextReader xmlDocReader, TextReader xsltReader) at DecisionsFramework.Design.Flow.CoreSteps.XML.ApplyXSLTStylesheetStep.Run(StepStartData data) at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)[/b]
[i]edited by One Buffalo on 1/27/2020[/i] -
In older versions of the Microsoft .Net Framework a bug exists that causes errors on processing long or complex XSL Stylesheets. Some details about the issue can be found here: [url=https://stackoverflow.com/questions/16091351/exception-stylesheet-is-too-complex-when-loading-large-xslt-in-net-4-5/16341246]https://stackoverflow.com/questions/16091351/exception-stylesheet-is-too-complex-when-loading-large-xslt-in-net-4-5/16341246[/url]
In order to resolve the issue, a change is required to the DecisionsServiceHost.exe.config file located at C:Program FilesDecisionsDecisions Services Manager to turn off complexity limitation.
The attached snippet must be added after the configuration tag.
Once the change is made, a restart of the Service Host Manager service is required.
Ive also attached the full DecisionsServiceHost.exe.config file with the added snippet for reference.
[i]edited by jason@decisions.com on 1/27/2020[/i]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions