简体   繁体   中英

Extension function parameters or return values which have Clr type 'XmlQualifiedName' are not supported trying to use FILE.ReceivedFileName

I am creating import application using BizTalk. I have created File schema and Database tables schema and map those schemas as below: 在此处输入图像描述

Also, I want Filename into the table so I created scripting functiod and its scripts as below: 在此处输入图像描述

Now I am validating and testing map but it is giving me below error: Extension function parameters or return values which have Clr type 'XmlQualifiedName' are not supported.

Please see below SS for Orchestration: 在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

As it looks you might have some repeating nodes, and you can't promote or distinguish a field that occurs multiple times, do the following.

  1. Create an internal schema where the fname only occurs once.
  2. Distinguish that field by right clicking anywhere on the schema tree, select Promote, Show Promotions 在此处输入图像描述
  3. Select the field to distinguish (eg fName), make sure the tab is in Distinguished Fields (the default), click the Add button, click the OK Button 在此处输入图像描述
  4. Have a map from your rcv_msg to the internal_msg wich either sets a default value to that field or use a functoid like the String Concatenate to set a default value. This is so that the map creates that element. 在此处输入图像描述
  5. Inside your construct shape in your Orchestration add a Message Assignment shape following your transform shape. 在此处输入图像描述
  6. In the assignment shape have code like the following internal_msg.fName = rcv_msg(FILE.ReceivedFileName); 在此处输入图像描述 在此处输入图像描述
  7. Map from the internal schema to your snd_msg, you can either execute that in the Orchestration or in the Send Port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM