Azure / Azure/azure-quickstart-templates

Logic App Transform XML error - 'Cannot find a script or an extension object associated with namespace 'https://schemas.microsoft.com/BizTalk/2003/userCSharp'

Open
#7,335 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

[Azure Logic Apps - VETER Pipeline](https://github.com/Azure/azure-quickstart-templates/tree/master/201-logic-app-veter-pipeline)

### Issue Detail Logic App Transform XML error - 'Cannot find a script or an extension object associated with namespace 'https://schemas.microsoft.com/BizTalk/2003/userCSharp'

### Repro steps
1. Followed the steps for deploying Azure Logic Apps - VETER Pipeline.
2. Performed HTTP Post using Postman, received HTTP 502 Bad Gateway - {"error":{"code":"NoResponse","message":"The server did not received a response from an upstream server. Request tracking id 'xxxx'."}}

3. Detailed error from the Logic App run shows as follows:

{
"statusCode": 400,
"headers": {
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Date": "Tue, 24 Mar 2020 19:06:31 GMT",
"Server": "Microsoft-IIS/10.0",
"X-Powered-By": "ASP.NET",
"Content-Length": "5535",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"Code": "InvalidXsltContent",
"Message": "An error occurred while processing map. 'Cannot find a script or an extension object associated with namespace 'https://schemas.microsoft.com/BizTalk/2003/userCSharp'.'",
"Details": [
{
"Code": "InvalidXsltContent",
"Message": "{\"StatusCode\":400,\"ErrorCode\":7,\"Details\":null,\"Message\":\"An error occurred while processing map. 'Cannot find a script or an extension object associated with namespace 'https://schemas.microsoft.com/BizTalk/2003/userCSharp'.'\",\"Data\":{},\"InnerException\":{\"ClassName\":\"System.Xml.Xsl.XslTransformException\",\"Message\":\"Cannot find a script or an extension object associated with namespace 'https://schemas.microsoft.com/BizTalk/2003/userCSharp'.\",\"Data\":null,\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":\" at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)\\r\\n at SAPOrderMap.(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current)\\r\\n at SAPOrderMap.(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current)\\r\\n at SAPOrderMap.Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)\\r\\n at SAPOrderMap.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)\\r\\n at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)\\r\\n at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)\\r\\n at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results)\\r\\n at Microsoft.Azure.Function.Transform.XsltTransformer.TransformToXmlInternal(ProcessedXslt`1 processedXslt, XmlReader inputXmlReader, XsltArgumentList xsltArguments, Nullable`1 transformOptions) in X:\\\\bt\\\\1064798\\\\repo\\\\src\\\\functions\\\\Scripts\\\\Function.Transform\\\\XsltTransformer.cs:line 235\\r\\n at Microsoft.Azure.Function.Transform.XsltTransformer.TransformInternal(ProcessedXslt`1 processedXslt, XmlReader inputXmlReader, XsltArgumentList xsltArguments, Nullable`1 transformOptions) in X:\\\\bt\\\\1064798\\\\repo\\\\src\\\\functions\\\\Scripts\\\\Function.Transform\\\\XsltTransformer.cs:line 174\",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"ExceptionMethod\":\"8\\nInvokeXsltLateBoundFunction\\nSystem.Data.SqlXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\\nSystem.Xml.Xsl.Runtime.XmlQueryContext\\nSystem.Collections.Generic.IList`1[System.Xml.XPath.XPathItem] InvokeXsltLateBoundFunction(System.String, System.String, System.Collections.Generic.IList`1[System.Xml.XPath.XPathItem][])\",\"HResult\":-2146231998,\"Source\":\"System.Data.SqlXml\",\"WatsonBuckets\":null,\"res\":\"Xml_UserException\",\"args\":null,\"sourceUri\":null,\"lineNumber\":0,\"linePosition\":0,\"version\":\"2.0\"},\"TargetSite\":{\"Name\":\"TransformInternal\",\"AssemblyName\":\"Microsoft.Azure.Function.Transform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\"ClassName\":\"Microsoft.Azure.Function.Transform.XsltTransformer\",\"Signature\":\"Microsoft.Azure.Function.Transform.XsltTransformOutput TransformInternal(Microsoft.Azure.Function.Common.Xml.ProcessedXslt`1[System.Xml.Xsl.XslCompiledTransform], System.Xml.XmlReader, System.Xml.Xsl.XsltArgumentList, System.Nullable`1[Microsoft.Azure.Function.Common.Xml.XsltTransformOptions])\",\"Signature2\":\"Microsoft.Azure.Function.Transform.XsltTransformOutput TransformInternal(Microsoft.Azure.Function.Common.Xml.ProcessedXslt`1[[System.Xml.Xsl.XslCompiledTransform, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], System.Xml.XmlReader, System.Xml.Xsl.XsltArgumentList, System.Nullable`1[[Microsoft.Azure.Function.Common.Xml.XsltTransformOptions, Microsoft.Azure.Function.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]])\",\"MemberType\":8,\"GenericArguments\":null},\"StackTrace\":\" at Microsoft.Azure.Function.Transform.XsltTransformer.TransformInternal(ProcessedXslt`1 processedXslt, XmlReader inputXmlReader, XsltArgumentList xsltArguments, Nullable`1 transformOptions) in X:\\\\bt\\\\1064798\\\\repo\\\\src\\\\functions\\\\Scripts\\\\Function.Transform\\\\XsltTransformer.cs:line 214\\r\\n at Microsoft.Azure.Function.Transform.XsltTransformer.d__9.MoveNext() in X:\\\\bt\\\\1064798\\\\repo\\\\src\\\\functions\\\\Scripts\\\\Function.Transform\\\\XsltTransformer.cs:line 92\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\\r\\n at Microsoft.Azure.Function.Transform.TransformRequestProcessor.d__2.MoveNext() in X:\\\\bt\\\\1064798\\\\repo\\\\src\\\\functions\\\\Scripts\\\\Function.Transform\\\\TransformRequestProcessor.cs:line 49\",\"HelpLink\":null,\"Source\":\"Microsoft.Azure.Function.Transform\",\"HResult\":-2146233088}",
"Details": null,
"InnerError": null
}
],
"InnerError": null
}
}

4.
5.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the 201-logic-app-veter-pipeline template and inspect the deployed Transform XML step and SAPOrderMap referenced in the error. Reproduce the HTTP POST in Postman; done means the sample request completes without the InvalidXsltContent or userCSharp namespace error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, postman, xml
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.