Promoting a property after XML debatching - Is this possible?

Hi,
I have a schema (please see below) which I'm currently debatching - this works perfectly! I would like to add a promoted property to the debatched message so that I can then use this for port level routing. This is where I'm currently having some difficulties.
Thus far, I've only been able to get it working against the last debatched message rather than each one. Is this possible within BizTalk?
What I would like to achieve:
Map inbound message to canonical schema on inbound port
De-batch messages on repeating nodes (SpaceUsage)
Use promoted property (SpaceUsageMasterData) within send port to provide message routing.
Schema:
  <ns0:SpaceCanonical xmlns:ns0="http://uol.external.schemas">
  <ns0:SpaceSysID>SpaceSysID_0</ns0:SpaceSysID>
  <ns0:SpaceSysCode>SpaceSysCode_0</ns0:SpaceSysCode>
  <ns0:SpaceName>SpaceName_0</ns0:SpaceName>
  <ns0:SpaceDescription>SpaceDescription_0</ns0:SpaceDescription>
  <ns0:SpaceNetArea>SpaceNetArea_0</ns0:SpaceNetArea>
  <ns0:PropertyCode>PropertyCode_0</ns0:PropertyCode>
  <ns0:FloorCode>FloorCode_0</ns0:FloorCode>
  <ns0:ShowInCMIS>ShowInCMIS_0</ns0:ShowInCMIS>
  <ns0:SpaceModDateTime>1999-05-31T13:20:00.000-05:00</ns0:SpaceModDateTime>
  <ns0:SpaceMasterData>False</ns0:SpaceMasterData>
  <ns0:TodaysDate>1999-05-31T13:20:00.000-05:00</ns0:TodaysDate>
  <ns0:SpaceUsages>
    <ns0:SpaceUsage>
      <ns0:SpaceUsageCode>SpaceUsageCode_0</ns0:SpaceUsageCode>
      <ns0:SpaceParentSysID>SpaceParentSysID_0</ns0:SpaceParentSysID>
      <ns0:SpaceTypeCode>SpaceTypeCode_0</ns0:SpaceTypeCode>
      <ns0:SpaceTypeDescription>SpaceTypeDescription_0</ns0:SpaceTypeDescription>
      <ns0:EMSCode>EMSCode_0</ns0:EMSCode>
      <ns0:EMSDescription>EMSDescription_0</ns0:EMSDescription>
      <ns0:TRACCode>TRACCode_0</ns0:TRACCode>
      <ns0:TRACDescription>TRACDescription_0</ns0:TRACDescription>
      <ns0:DepartmentCode>DepartmentCode_0</ns0:DepartmentCode>
      <ns0:SpaceUsageNetArea>SpaceUsageNetArea_0</ns0:SpaceUsageNetArea>
      <ns0:StartDate>1999-05-31</ns0:StartDate>
      <ns0:EndDate>1999-05-31</ns0:EndDate>
      <ns0:Capacity>Capacity_0</ns0:Capacity>
      <ns0:CostBandCode>CostBandCode_0</ns0:CostBandCode>
      <ns0:CostBandDescription>CostBandDescription_0</ns0:CostBandDescription>
      <ns0:CostRate>CostRate_0</ns0:CostRate>
      <ns0:FunctionalSuitability>FunctionalSuitability_0</ns0:FunctionalSuitability>
      <ns0:SpaceUsageModDateTime>1999-05-31T13:20:00.000-05:00</ns0:SpaceUsageModDateTime>
      <ns0:SpaceUsageMasterData>False</ns0:SpaceUsageMasterData>
    </ns0:SpaceUsage>
 <ns0:SpaceUsage>
      <ns0:SpaceUsageCode>SpaceUsageCode_1</ns0:SpaceUsageCode>
      <ns0:SpaceParentSysID>SpaceParentSysID_0</ns0:SpaceParentSysID>
      <ns0:SpaceTypeCode>SpaceTypeCode_0</ns0:SpaceTypeCode>
      <ns0:SpaceTypeDescription>SpaceTypeDescription_0</ns0:SpaceTypeDescription>
      <ns0:EMSCode>EMSCode_0</ns0:EMSCode>
      <ns0:EMSDescription>EMSDescription_0</ns0:EMSDescription>
      <ns0:TRACCode>TRACCode_0</ns0:TRACCode>
      <ns0:TRACDescription>TRACDescription_0</ns0:TRACDescription>
      <ns0:DepartmentCode>DepartmentCode_0</ns0:DepartmentCode>
      <ns0:SpaceUsageNetArea>SpaceUsageNetArea_0</ns0:SpaceUsageNetArea>
      <ns0:StartDate>1999-05-31</ns0:StartDate>
      <ns0:EndDate>1999-05-31</ns0:EndDate>
      <ns0:Capacity>Capacity_0</ns0:Capacity>
      <ns0:CostBandCode>CostBandCode_0</ns0:CostBandCode>
      <ns0:CostBandDescription>CostBandDescription_0</ns0:CostBandDescription>
      <ns0:CostRate>CostRate_0</ns0:CostRate>
      <ns0:FunctionalSuitability>FunctionalSuitability_0</ns0:FunctionalSuitability>
      <ns0:SpaceUsageModDateTime>1999-05-31T13:20:00.000-05:00</ns0:SpaceUsageModDateTime>
      <ns0:SpaceUsageMasterData>False</ns0:SpaceUsageMasterData>
    </ns0:SpaceUsage>
  </ns0:SpaceUsages>
</ns0:SpaceCanonical>
Thanks,
Steven.

Hi all,
Thanks for the advise regarding my challenges with BizTalk de-batching! I don't think that I was particularly clear in my first post that both the "Space" node and "Space Usage" node have a one to many relationship:
IE. a space can have multiple usages below it in the schema. It should also be noted that the original XML fie received will have a large number of spaces within it and isn't limited to just one.
XML file format:
Header - static
Space - multiple spaces in the file (essentially the rooms within a building)
SpaceUsage - multiple space usages within the file (layout of rooms according to date/usage)
I now believe that what I really needed to do was to de-batch the "space node" and also the "space usage" node which I don't believe is possible as I can find no information on de-batching one file into multiple message
types where there are repeating nodes throughout. Please correct me if I'm wrong. The only part of the message which is static throughout it the header. Moving forward I'll be clearer with our suppliers that we need specific files for each message type rather
than generating large XML files with all the message types in one place.
Kind regards,
Steven.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Using XML Datasource - is this possible

    Firstly, let me say I have searched the web, this forum and the tutorials etc to find something useful to point me in the right direction but had no luck thus far.
    I have some XML that looks like this;
    <StaffList>
        <Staff StaffId="1" Name="Fred Nerk" Mission="JMO">
            <SAC Code="001001"/>
            <SAC Code="001002"/>
            <SAC Code="001003"/>
        </Staff>
        <Staff StaffId="2" Name="John Doe" Mission="UKDEL">
            <SAC Code="001002"/>
        </Staff>
        <Staff StaffId="3" Name="Jane Citizen" Mission="UKREP">
            <SAC Code="001002"/>
        </Staff>
        <Staff StaffId="4" Name="Kim Hughes" Mission="JMO">
            <SAC Code="001002"/>
        </Staff>
    </StaffList>
    We have a dropdown list that contains the Name attribute of each staff element.  We have done that by using a Datasource and binding it to the XML.  Easy.
    Once a Staff member is selected in the dropdown list we would like to populate a control with the value of the "Code" attribute from the child SAC Code element(s) for the selected Staff member.  We would also like to populate a control with the "Mission" attribute for the selected Staff element.
    Is this possible using LC designer?  If so what tactic can we use to do it?  Any help appreciated.  Happy to reshape the XML if it makes it easier.

    Hi,
    I also think you will need some code but it wont be a lot.  In the change event of you dropdown list you will need something like;
    var  
    staffDataNode = $record.resolveNode("StaffList.Staff.(StaffId.value == " + this.boundItem(xfa.event.change) + ")" );SAC.clearItems();
    for   (var i=0; i<staffDataNode.SAC.all.length; i++ ){
         SAC.addItem(staffDataNode.SAC.all.item(i).Code.value);
    Mission.rawValue
    = staffDataNode.Mission.value;
    where SAC and Mission are the controls for the dependent values
    Attached is my form to test the above code.
    Bruce

  • [svn:bz-trunk] 15129: Update the sample jgroups-tcp. xml file with proper explanations of each property after reviewing the JGroups documentation .

    Revision: 15129
    Revision: 15129
    Author:   [email protected]
    Date:     2010-03-30 06:17:55 -0700 (Tue, 30 Mar 2010)
    Log Message:
    Update the sample jgroups-tcp.xml file with proper explanations of each property after reviewing the JGroups documentation. This is still work in progress.
    Modified Paths:
        blazeds/trunk/resources/clustering/jgroups-tcp.xml

    It seems you are asking in wrong forum. AFAIK, you are asking "how to add HTTP header to response generated by my own script". It depend on WWW server we are speaking of and language of script itself. If you will fail to found solution within documentation of the HTTP server and/or scripting language you are using, then the better place for your question is a forum related to such language and HTTP server.
    In meantime, you can try other solituin. The "Refresh: 0;..." header is required for correct function of SoftKey:Next which is displayed by default. But you can redefine the content of SoftKey area using your own key. Such configuration is part of DirectoryObject you sent to phone. See definition of SoftKey 3 in example bottom. It's not original SoftKey:Next that depend on Refresh header. It's my own custom soft-key named "Next" with exact URL defined as part of key definition (replace 'N' with number of next page). It doesn't depend on Refresh header in any way. You should consider such advice as "temporary workaround". You should discover how to send HTTP header 'Refresh'  from your script. Note, it's not possible to redefine one SoftKey only. If you wish to redefine a soft-key, then all soft-keys need's to be defined by you.
    ... followed by Title, Prompt,up to 32 ...
    Dial
    SoftKey:Dial
    1
    EditDial
    SoftKey:EditDial
    2
    Next
    https://an-url-to-your-server-and-script/test-Directory.asp?page=N
    3
    Cancel
    SoftKey:Cancel
    4
    Exit
    SoftKey:Exit
    5

  • Best practice for customizing EJB property after deployment

    Hi Gurus,
      What is the best practice for customizing EJB property after deployment in NW7.1? I have a stateless session bean and it needs to get some environment information before acting. While the information can only be known at runtime. What should I do to achieve it? I thought I can bind the property with a JNDI context but I did not find out where to declare and change the context value. Please advise. Thanks.
    B.R.

    Hi.
    I have a similar problem. But I still can not edit the properties of the ejb-jar.xml.
    I tried to stop the web service, but the properties still remain unmodifiable.
    Could you advise me how to change them?
    We have installed SAP Server 7.0.2

  • Search not updating property after incremental crawl

    We have some SharePoint Document libraries with a number of properties that are used in Search. These are set up as Managed Properties
    We then use these property value to display a table of search results in a custom web part (using full text search query code).
    Anyway, when the properties are changed, the incremental crawls usually pick this up and display the new value in the search results.  we have a few documents that were added and then later had their properties updated, but the old values are still
    being returned in the results - the incremental crawls have not picked up the changes even though this has run through many times since the change was made.
    The SharePoint site was originally set up in WSS 3.0 and we mounted and upgraded the content database into SharePoint 2010 Foundation, but these documents were added AFTER the update.
    This has only happened on a few documents, with the majority working fine.  We can't replicate the problem 'to order', nor does there seem to be any pattern in the reason why these do not get picked up, nor any clues in the crawl log.
    Has anyone else come across this problem or have any idea why this occurs?
    There is a full crawl scheduled for the weekend, so i hope this resolves the issue but it is not one we have come across over many years of using the same code and properties.
    Any help appreciated.
    Thanks,
    Helen

    Try to reset the index and do a full crawl.
    Thanks, Ashish | Please mark a post helpful/answer if it is helpful or answer your query.

  • Setting button property after selecting data from list

    I am not able to set the button property after selecting data from list.
    I would like to say that
    * If a user select an item from list, then user is only allowed to update or delete the data. The update and delete button should be enabled and save button should be disabled.
    * If the users types data manually, then user is allowed only to save this as new entry. The update or delete button at this time should be disabled and only save button should be enabled.
    I want to say that
    In both case, value will be there
    In one case, value will be from list and that is available for update or delete
    in another case, value will be typed from keyboard that is available for save(new entry).
    I do not want to use separate form for update/delete/save new record. I want to use single form for all these operations.
    I am using Form 6i and oracle 8
    Please guide me, I am trying to find this answer for last four days, but could not find the answer. Please help me. Waiting for you reply...

    Thanks Mr. fdellipriscoli,
    But where should this code be written and
    Where the parameter be set to 'YES'
    I think this code should be written somewhere when calling list.
    But bydefault list is called by pressing F9 key. Then where the parameter be set to 'YES' .
    Please help Mr. fdellipriscoli. Waiting for your reply...

  • System property org.xml.sax.driver not specified

    I'm getting the error:
    System property org.xml.sax.driver not specified
    How do I set this property? Why doesn't it find the default?
    I'm using WL6.0
    Imports:
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import org.xml.sax.InputSource;
    import org.xml.sax.XMLReader;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    Code Snippet:
    try
    File stylesheet = new File("LaborDistHours.xsl");
    LaborDistHours ldh = new LaborDistHours("1041410011",
    "01-feb-2000", "30-mar-2000");
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    StringReader reportXML = new StringReader( ldh.getReportXML() );
    document = builder.parse(new InputSource( reportXML ));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    StreamSource stylesource = new StreamSource(stylesheet);
    Transformer transformer = tFactory.newTransformer(stylesource);
    //error occurs here
    DOMSource source = new DOMSource(document);
    StringWriter reportXLST = new StringWriter();
    StreamResult result = new StreamResult(reportXLST);
    transformer.transform(source, result);
    Steven Ford ([email protected])
    "...That we here highly resolve that these dead shall not have died in
    vain - that this nation, under God, shall have a new birth of Freedom - and
    that Government of the people, by the people and for the people shall not
    perish from the earth." Abraham Lincoln

    try to look on xml.apache.org for this error. There should be some pages describing how and why setup this property.
    Basically, these properties defines factories for javax extensions. javax defines interfaces and providers than supply implementations, so for example you can use different XML parsers implementations (we use Xalan for one OC4J container and original ORACLE parser for other). To bind this together they use some defined mechanism like setting system property of including special manifest file etc. (I don't know about details)
    Myrra

  • So is this Possible to update already existed Receiver Flat/XML File ?

    HI ,
    On Receiver File (FTP) Side ,So is this Possible to update already existed FLAT/XML File with some values using Receiver File Adapter??
    Like I have 3 Columns in a Flat File/XML File :-
    Name,  Deptid,  Expenses.
    NameA, 8000,   -
    Currently Blank -
    NameB, 1000,  -
    Currently Blank----
    Now I want to Update Existing Flat file from Receiver File Adapter
    After Execution of scenario, Fileon FTP server would be Updated like this
    Name,  Deptid,  Expenses.
    NameA, 8000,   18000
    NameB, 1000,   25000
    So is this Possible to update already existed FLAT/XML File with some values using Receiver File Adapter?

    I am dealing with similar type of scenario..
    If that way it is not possible , So please guide me what other workarounds can be done ..........???
    Does FTP Sender Support Synch Call... ???
    regards

  • Is this possible? Name xml file produced by pdf file

    Hi,
    At work we have pdf files on the intranet completed by managers, which produces an xml file that is sent to a specific mailbox. Via a button, the form opens an Outlook email with the xml file attached. The user just has to click send. This works fine. However, we end up with a mailbox of xml files called 'reader.xml'.
    Is it possible for Adobe to rename the produced xml file using data from one or two text boxes in the completed pdf file?
    Would it be possible to add a timestamp to the file name as well?
    I've not used java before, but use VBA regularly, and would enjoy the challenge.
    At the moment I'm just exploring the possibility.
    Many thanks.

    The data is text and dates, not that much. I'd want the file to be named after the first and last name fields.
    I'm not sure the IT dept of our organisation would want to install script locally, it would be a very low priority for them apart from anything else.

  • Apple iPad 3. BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Can anyone help me please.

    BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Apple iPad 3. Can anyone help me please.

    All resolved at last
    Deleted the SMTP setting
    Recreated the SMTP using the same settings
    Able to send emails now
    No logic - as usual - just a bug!

  • I upgraded to ios 7.1 and even after i updated to this version in the calendar view i could get a list of all of appointments and now i have half screen of calendar and then appointments is their any way to go full screen of appointmetns

    I upgraded to ios 7.1 and even after i updated to this new version in the calendar view i could get a list of all appointments and now i have done something and i get a half scrren of calendar and half screen of appointments.  is their anyway to get full screen of appointments with the 7.1 version

    Tap on any give date in the monthly view and you will be taken a list of event, the default position being the date you tapped.
    The icon just to the left of the search icon provides a master list view of events.
    http://help.apple.com/iphone/7/#/iph3d110f84

  • "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?

    I don't know what's wrong with my Mac Mozilla Firefox, version 3.6.8, but today, it started alerting me about an error message on the "Error Console". In every website I visit, it tells me: "The 'charCode' property of a keyup event should not be used. The value is meaningless." Is this possibly caused by a virus?
    I saw a pop-up which did not allow me to click it when I scatter the windows on my Mac. I was using Private Browsing, with pop-ups disabled, but one pop-up managed to get passed my settings, and open in another window. It would not allow me to select it, so all I did was to close Firefox, and start a new session. So far, everything has been normal, I also deleted the cookies it installed.
    But, I still keep seeing that "Error Console" notice under my "Tools" on the Menu Bar, and when I clicked on it, it listed errors (such as what I listed above).
    Would someone explain this to me?
    Thanks for your help!

    The messages you see in the Error Console are mostly to assist the web site's author in resolving compatibility problems. Some of them can assist you in determining why a web site doesn't work as intended. The one you mentioned doesn't sound that suspicious, except that it occurs on many sites. Perhaps one of your add-ons is trying to monitor what you type?
    To diagnose whether this is caused by an add-on or one of your settings, you could try the following:
    First, make a backup of your computer for safekeeping. To back up Firefox, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that resolve the errors? If so, then an add-on usually is the culprit. If not, try creating a new (blank) profile: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    If the new profile works correctly, you can choose between further research on your old profile or moving key settings like bookmarks from your old profile to the new one. [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

  • Lost Mode and Play Sound are "Pending."  However, iCloud indicates that it connected and backed up to iCloud at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)

    Hi,
    My wife lost her iPhone two weeks ago while on vacation in London (cell service inoperative in foreign country).  Using Find My iPhone app on my device, I activated Lost Mode and Play Sound.  However, both are listed as "Pending," since it those actions require the phone to connect to the internet (wifi only due to no cellular data coverage.).
    We recently returned home and purchased a new iPhone.
    However, when looking to restore the apps/settings from her old phone using a previous iCloud backup, iCloud indicates that the old phone connected to iCloud and backed up the original phone at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)?
    If the phone was activated and connected to the internet via a wifi signal, shouldn't it immedately lock, show up on the map, Play Sound, and send me an email that the phone has been found?
    I also read somewhere that if running iOS 7, the iCloud website interface enables you to track previous locations, for instance if the phone moves from wifi hotspot to hotspot.  Is that true?  If so, how do I do that?
    Thank you for your time, and have a great day!
    Sincerely,
    - Matt

    just giving this a wee bump as time is of the essence here and i need advice/ answers quick!
    apologies if i've broke any rules!
    alex

  • After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.

    After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.

    Hi everyone, I have Snow Leopard 10.6.8. I have been very very frustrated by this problem. [I could not create new windows, and anything that opens new windows, such as trying to see what Add-ons you have etc would not work]. I read about changing screen alignment to the top... I have one screen so the option does not exist. The above messages would not fix this problem. I searched hard and did find a solution in the end. I read stuff about removing Add-ons until the problem is fixed, but its simply not the case.
    First of all open Firefox. next go to options: Help --- 'Restart with Add-ons disabled'. Tick the box for add-ons, restart firefox. Next go to Tools --- Add-ons. Next (In the Add-ons Manager' click on 'Plugins' on the left hand side pane. Look for the small blue writing that says 'Check to see if your plugins are up to date'.
    Now notice it should say 'Missing Flash'. "For your safety, Firefox has disabled your outdated version of Flash. Please upgrade to the latest version". I followed this, reinstalled Flash and it now works as it always did, no problems. For people where the above fix didn't work, try this one out. Hope it helps people!
    :o)

  • Running Lightroom 6 on Windows machine (after having upgraded from LR5... While attempting to add or change music in the Slideshow module, LR unexpectedly quits.  After several attempts at this, LR6 won't even launch properly...shows the splash screen but

    Running Lightroom 6 on Windows machine (after having upgraded from LR5... While attempting to add or change music in the Slideshow module, LR unexpectedly quits.  After several attempts at this, LR6 won't even launch properly...shows the splash screen but that's it.  The program is buggy...need an update/revision quickly!!

    If you're on Windows, check out a free program called Audacity--it's fantastic.  With Audacity the process of converting a 48.000 kHz to 44.100 kHz is as simply as opening, changing the sample rate, and then exporting again, as an MP3.

Maybe you are looking for

  • Loading multiple forms in single jsp

    Hi, My jsp page has multiple forms (one form for each table which has specific info). So assume it has 3 tables, so 3 forms. I need to load all the form when the page is loaded. code: <FORM name=form1 action="/action1" method=post></FORM> <FORM name=

  • Error 20413, SCVMM 2012 R2

    Hi! I tried to run command "Refresh Virtual Machines" on cluster node in VMM. And i have an error: Error (20413) VMM encountered a critical exception and created an exception report at C:\ProgramData\VMMLogs\SCVMM.74251b88-e0b8-43d0-986f-0f47295dc772

  • PF for an employee

    Hi all, We hired an employee on 31.03.2008 and now we are trying to update PF Infotype and it is showing an error ''Change too far in payroll past". (Control record in July now). Please advise us in this. points will be credited for answers. Regards

  • No llegan notificaciones de line wassap facebok

    desde la ultima actualizacion no llega las notificaciones de wassap line facebook etc

  • What type of microsoft office and home do i buy for my imac g4 v10.4.11

    which type of microsoft office and home can i buy for my imac os x g4 v10.4.11 also what type of antivirus do i buy.