Adding an element with an attribute to destination schema that doesn't exist on source schema

I have source schema which looks something like below:
source schema
 name                    //attribute
 address1                //attribute
 address2                //attribute
 city                       //attribute
I need to map it to a destination schema which looks like below:
destination schema
employee                  //record (repeating element)
  fieldname                //attribute
  type                       //attribute
After mapping, the xml would look like below: 
<employee fieldname= 'name' type='string'>
<employee fieldname= 'address1' type ='string'>
<employee fieldname= 'address2' type ='string'>
<employee fieldname= 'city' type ='string'>
(fieldname exists in source schema, but 'type'  doesn't. basing on the fieldname, I add it on the destination schema using ValueMapping functoid )And I am able to do it successfully, but my question is, I need to add a field called 'salary'
of type 'double' to the destination schema similar to the other values
<employee fieldname= 'salary' type ='double'>
But salary doesn't exist in 'source' schema,  and it needs to be there in destination schema associated with the attribute 'type='dcouble''   How can I accomplish this? Appreciate any help. thanks!!

Hi Anne,
For your requirement, all you need is Table Looping functiod and Table Extractor functiod.
In this example, I am not using the value mapping functiod (you can also use it, but I prefer to make this sample easier for you to understand) so using a “string” as constant.
When you mean by you want
<employee fieldname= 'name' type='string'>
<employee fieldname= 'address1' type ='string'>
<employee fieldname= 'address2' type ='string'> <employee fieldname= 'city' type ='string'>
I assume you’re looking for something like this
<employee fieldname= 'ValueOfName' type='string'>
<employee fieldname= 'ValueOfAddress1' type ='string'>
<employee fieldname= 'ValueOfAddress2' type ='string'>
<employee fieldname= 'ValueOfCity' type ='string'>
Or if you just need field names not the value of the fields, you can still do what you want with the way you do now but using Table Looping functiod and Table Extractor
functiod.
Let me explain this.
Use Table Looping functiod with following parameters:
5 = You need 5 records in output i.e. name, address1,address2,city and salary.
2 = you need 2 columns. i.e. fieldname and type.
Link from 'name' in source schema. Here I have just linked the 'name' from source schema, so this will have VALUE-of-Name element/attribute. Or if you can want just the
field name, you can use the way you’re using to get the field name.
Repeat the above step for all the rest of the fields. I have linked address1, address2 and city.
7<sup>th</sup> parameter is “string” as constant, which I will be passing to “type” attribute in destination. Again you can use value mapping functiod as you
do. If you use value mapping functiod, then rest of the parameter shall be value mapping functiod.
Then I add last two paraters “salary” and “double” as constants, which I will be using to add the new record. Below image show the parameters for Table looping functiond:
Now select the “Configure Table Looping grid” property and map as shown. Give a closer look to the way how this grid has been mapped. Last record in the grid shows the
additional record which you want to add with “salary” and “double”
Now add “Table Extractor functiod”, set its first parameter to “Table looping” and second parameter as “1”
Now another “Table Extractor functiod”, set its first parameter to “Table looping” and second parameter as “2”. Below image show the Table Txtrator functiods parameters:
Now link the Table Looping functiod to “employee” record in destination schema.
Use the above you will get the output as you wanted. Following is the output, note: as mentioned in the fieldName attribute I have the value of the source fields/attributes
since I have used the direct link from soruce in Table Looping functiod parameters, you can use the link which is producing the value for you now for fieldname:
<employee fieldName="name_0" type="string"></employee>
<employee fieldName="address1_1" type="string"></employee>
<employee fieldName="address2_2" type="string"></employee>
<employee fieldName="city_3" type="string"></employee>
<employee fieldName="salary" type="double"></employee>
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

  • After upgrading to iOS 5, my iPhone 4 takes a very long time to open digitally signed emails. I've tried with the SMIME settings enabled, but that doesn't help either. Any ideas on how to resolve this?  Thanks in advance.

    After upgrading to iOS 5, my iPhone 4 takes a very long time to open digitally signed emails. I've tried with the SMIME settings enabled, but that doesn't help either. Any ideas on how to resolve this?  Thanks in advance.

    I suspect you may have a corrupt photo or image that is causing the sync to fail or quit. You might want to try removing all of your photos by deselecting them in iTunes then sync - and try adding them by each sub-folders until you are able to nail down which sub-folder of photos, that causes the sync to stop or gives you errors.

  • How to I get rid of an "Open With..." option that doesn't exist?

    I've tried to find out how to remove an element of the "Open With..." options but don't seem to be getting much traction. I have an old application listed in the "Open With..." pull down menu that doesn't exist anymore, but when I select the file, using command-i, to change which application opens the file, it works for that file. I want to change association using the "Change All" button, but when I do that, the "dead" application becomes the default application again and I'm back to square one. Is this fixable? How do I get rid of the useless option? Will I have do do this for each file?

    your link gave me a good starting place...
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -R -all -domain local -domain system -domain user
    this seemed to do the trick... I would have never have solved this without your suggestion.
    thanks.

  • Hello, I got a new computer with the old harddisk. Can't play my itunes music because not authorised. Apple ID is very old e-mail adress that doesn't exist anymore. When chose for secret question brth date seems wrong. Can't reach anyone!!!

    Hello, I got a new computer with the old harddisk. Can't play my itunes music because not authorised. Apple ID is very old e-mail adress that doesn't exist anymore and I forgot the password (5 years old??). When chose for secret question birth date seems wrong. Tried everything. I need to make a new apple-id but cannot connect the music that I bought under my old name to my new name. Can't reach anyone!!! Automatic FAQ system is of no help. What to do?

    That doesn't help me. For itunes it brings me to the express lane which doesn't help because my case is not in it. It's all standard procedure things. I understand those but my situation is different. The combination of a passport forgotten and an non-existing email adress (and birth dates that are not correct or not accepted). What I need is my password emailed to another email adress than the original one because that no longer exists.

  • Paid with a credit card that doesn't exist :S

    Hello,
    I think I have a problem.
    When I first started with Itunes I didn't liked the idea of filling in my creditcard nummer.
    I just answerd a number like 12345678 now I thought I already had changed the number into my own credit card so I bought a song.
    Later I saw that I bought it with the credit card that doesn't exist...
    How can I pay my song now?
    Melissa

    Romania
    0800 894847
    Contact Apple for support and service
    http://www.apple.com/ro/support/
    Or try by a chat
    https://getsupport.apple.com/Issues.action

  • Compare newly added Vector Element with all previous

    Hi all
    I am adding Point2D elements to a vector "Numbers" in such a way that every newly randomly created element that is at a distance of 0.3 from all the previous points is added else not.
    I have written a code that only checks from the last element but not all the previous elements.
    Can someone check what wrong am I doing.
    The code is runnable.
    import java.awt.geom.Point2D;
    import java.util.*;
    public class Distance
         Vector<Point2D> numbers = new Vector<Point2D>();
         Random rnd = new Random();
         void getList()
         double xCoord,yCoord;
         for(int i=0;i<5;i++)// is is the no. of coordinates stored later only "b" to be used
         xCoord = rnd.nextDouble();          // X-coord of AP
         yCoord = rnd.nextDouble();          // Y coord of AP
         if(i<2)
              numbers.addElement(new Point2D.Double(xCoord,yCoord));
              System.out.println("0th n 1st element added : "+i+ "   "+numbers.get(i));
         else
         for(int j=i-1;j>i-2;j--)
              if((numbers.get(j).distance(xCoord,yCoord))>0.3)
                   numbers.addElement(new Point2D.Double(xCoord,yCoord));
                   System.out.println("next element added : "+i+ "   "+numbers.get(j)+"  with distance: "
                             +(numbers.get(j).distance(xCoord,yCoord))+"from "+ xCoord + " "+ yCoord);
         Iterator it = numbers.iterator ();
           while (it.hasNext ())
            System.out.println(it.next());
         public static void main(String[] argv)
              Distance d = new Distance();
              d.getList();
    }Thanks a lot

    Hi all
    I am adding Point2D elements to a vector "Numbers" in such a way that every newly randomly created element that is at a distance of 0.3 from all the previous points is added else not.
    I have written a code that only checks from the last element but not all the previous elements.
    Can someone check what wrong am I doing.
    The code is runnable.
    import java.awt.geom.Point2D;
    import java.util.*;
    public class Distance
         Vector<Point2D> numbers = new Vector<Point2D>();
         Random rnd = new Random();
         void getList()
         double xCoord,yCoord;
         for(int i=0;i<5;i++)// is is the no. of coordinates stored later only "b" to be used
         xCoord = rnd.nextDouble();          // X-coord of AP
         yCoord = rnd.nextDouble();          // Y coord of AP
         if(i<2)
              numbers.addElement(new Point2D.Double(xCoord,yCoord));
              System.out.println("0th n 1st element added : "+i+ "   "+numbers.get(i));
         else
         for(int j=i-1;j>i-2;j--)
              if((numbers.get(j).distance(xCoord,yCoord))>0.3)
                   numbers.addElement(new Point2D.Double(xCoord,yCoord));
                   System.out.println("next element added : "+i+ "   "+numbers.get(j)+"  with distance: "
                             +(numbers.get(j).distance(xCoord,yCoord))+"from "+ xCoord + " "+ yCoord);
         Iterator it = numbers.iterator ();
           while (it.hasNext ())
            System.out.println(it.next());
         public static void main(String[] argv)
              Distance d = new Distance();
              d.getList();
    }Thanks a lot

  • GetBlobReferenceFromServerAsync (and non-async) throw an exception with 404 (not found) if the blob doesn't exist.

    I'm trying to determine if a particular file exists in a blob store. I'm using container.GetBlobReferenceFromServerAsync and if the named blob does't exist I get an exception with a 404. ICloudBlob (which is returned by the method) defines an Exists method
    but it's functionally useless because the GetBlobReferenceFromServerAsync method call itself throws the exception. I do get the behavior I'm looking for if I call container.GetBlockBlobReference instead but there's no async version of that method.

    As I said I'd found that GetBlockBlobReference works but there's no async version of that method. I'm trying to determine IF a blob exists not create one. Since the GetBlobReferenceFromServer returns an ICloudBlob and ICloudBlob defines and Exists method
    you'd assume that it could be used to determine if a blob exists. I'd argue that the fact that it throws and exception when the blob does not exist is a bug in the implementation because it makes the Exist method on the ICloudBlob object functionally useless.
    Also, it seems like a fairly significant miss that there's no async version of GetBlockBlobReference. A query to a cloud resource is exactly the perfect use case for the async/await pattern.
    Does anyone know of an async way to check for the existence of a blob that doesn't involve catching a 404 exception?

  • Problems with outlook 2010 IMAP it says : Mailbox doesn't exist

    I have a problem with my outlook at work.
    I am currently using Outlook 2010 as IMAP (excuse me for my bad English)
    There is 1 Category "Harderwijk" where I can't take any mail in or out.
    Whenever i try to put a new mail in the map I get this error: Cannot move items Response from server was: Mailbox doesn't exist. Whenever I try to put a mail out of the Harderwijk map I get this error: Cannot move item, Cannot select map this could be a cause
    of the IMAP-Server or the map is possibly deleted or changed.
    Can someone help me with this?
    I tried to google the answer, but the only responses I saw is that people are going to other mail servers or had to make a new mail. Since this is a bussiness mail we can't afford to lose our e-mails.
    So I need a solution without losing all the mails. Thanks in advance.

    hi, you can check these two links:
    http://www.emaildiscussions.com/showthread.php?p=492312
    http://forums.mozillazine.org/viewtopic.php?f=28&t=65807
    Regards,
    Flynn

  • JSP 2.0 Tag files outputting elements with conditional attributes

    It appears to be impossible to conditionally output element-attributes in JSP 2.0 XML Tag files. Here's an example:
    Tagfile text.tagx:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
      <jsp:directive.attribute name="name" required="true" type="java.lang.String"/>
      <jsp:directive.attribute name="id" required="false" type="java.lang.String"/>
      <jsp:text>
        <input type="text" name="${name}" id="${id}" />
      </jsp:text>
    </jsp:root>Seems simple enough. This tag has a name-attribute and an optional id-attribute. But what if I want the id-attribute of the 'input' element not to be outputted when the id-parameter is empty!
    It appears there's no elegant way to do this but to revert to CDATA blocks and/or output-escaping. Is this an oversight in the API or am I missing something?
    I've also tried the following but it didn't work (in Tomcat anyway):
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2" xmlns:c="http://java.sun.com/jsp/jstl/core">
      <jsp:directive.attribute name="name" required="true" type="java.lang.String"/>
      <jsp:directive.attribute name="id" required="false" type="java.lang.String"/>
      <jsp:text>
        <jsp:element name="input">
          <jsp:attribute name="type" value="text"/>
          <jsp:attribute name="name" value="${name}"/>
          <c:if test="${!empty id}">
            <jsp:body>
              <jsp:attribute name="id" value="${id}"/>
            </jsp:body>
          </c:if>
        </jsp:element>
      </jsp:text>
    </jsp:root>Any ideas on how to do this?

    I wonder why no one has responded to this post!!!! I am trying to do the same thing, to no avial. In XSLT this is how it works, I would have thought JSTL would do the same thing. D'oh!

  • How do I get rid of a computer that doesn't exist anymore from my iTunes account? The old computer has been recycled with my iTunes acoount on my current desktop. I neglected to remove iTunes prior to being recycled.

    I'm continuing to have major issues getting iTunes to recognized my son's iPod Touch. It was last sync'd to the old computer more than a year ago. I've backed up and updated all iTunes material; Uninstalled iTunes and reinstalled; confirmed other iPods will connect. The only issue I'm having is with my son's Touch.

    If you're referring to authorization, you cannot deauthorize a computer to which you no longer have access. Unless you've reached the limit of five authorizations, that shouldn't be a problem. If you have  reached five authorizations for that account, there will be a button in your iTunes Store account information that will allow you to deauthorize all systems associated with that account. Log into your Store account and you should see it. You can then reauthorize the computers you're using now.
    I'm not sure what this would have to do with an issue with an iPod touch, though. Can you please explain that issue in more detail?
    Regards.

  • Issue of importing MS WORD file with inline images in 5.5 that did not exist in 5

    Briefly, all of the files I created from dropping in MS WORD files with images look exactly the same in ID 5 as they do in WORD.
    When I tried importing the same WORD files in ID 5.5, they look screwed up. For example, in WORD and CS5, the images were perfectly sized and aligned to fit the margins  Then, on exporting to various formats (eg., PDF, EPUB), the program hangs around the 85% completion mark, and I have to manually end the program. I have mixed graphic formats on the images, JPG, GIF, and PNG, if that makes any difference.
    Thanks.
    PS: This input box will not accept hard returns - only manual line breaks. Is that normal?

    I forgot to say that all of the same images in 5.5 are shown in various sizes. Resizing the frames manually, and then clicking on "Fit contents to frame," will of course, correct the problem, but it is frustrating to do.

  • During sync, msg about a conflict with an iCal event that doesn't exist

    When syncing the iPhone to the MBP, I sometimes get a message that says there are conflicts with three iCal events. Two weird things about these events:
    1. There's no difference between the events being shown on the iPhone and the MBP. The details of the two so-called versions are identical.
    2. None of these events actually exist on my iPhone or MBP's iCal!
    They look like events that I created and subsequently deleted... but somehow their ghosts are still haunting iCal somewhere -- though they don't show up in searches.
    One thing they all have in common: these non-existent events are/were all recurring events.
    Anyone have any ideas how I could delete these events? The only option I currently have is to choose the iPhone version or the MBP version (neither of which actually exists!).

    I think the answer you need is this:
    You need to tell the "Synch" which 'direction' to copy from - i.e. from .Mac to that computer or from that computer to .Mac.
    If, on either computer, you click 'system preferences' ( in the dock) and then .Mac and then Advanced you will see a button to 'reset synch options' and tell the machine to send what it has to .Mac or recall what .Mac has back to the machine.
    I have a simpler problem - I want to start a new topic in this forum and can't find a button to do that!
    Mac Pro   Mac OS X (10.4.10)   Powerbook G4 12"

  • My iPhone needs to be unlocked with a passcode that doesn't exist after updating to iOS 7.

    I updated my iPhone to iOS 7 today and now it want me to unlock the phone with a passcode. The thing is that I never had a passcode on my iPhone so there isn't any code to unlock the phone with. What should I do? Any help are very much appreciated. Thanks.

    Help for forgotten passcode >   iOS: Forgotten passcode or device disabled after entering wrong passcode
    When you have access to your iPhone again, FaceTime is a pre installed app that cannot be removed.
    Try a search >  iOS: Understanding Spotlight Search

  • Workflow created with Authoring tool produces a workflow that doesn't work

    Hi,
    I'm getting fed-up with the Authoring Tool. It has such inconsistently bad results.
    Anyway, here's my current problem:
    1. Create a new MP
    2. Create a new Workflow that triggers when an incident is created with no additional criteria
    3. Add a command script to the workflow that runs an exe based on the workflow server
    4. Add two parameters, one of /commit the other of the Id of the incident
    5. Import the MP, copy the resultant assembly DLL to the workflow server
    6. Trigger the workflow, it fails with:
    Microsoft.EnterpriseManagement.Common.InconsistentDataException: The requested objects had an unknown management pack. ---> Microsoft.EnterpriseManagement.Common.InconsistentDataException: The call produced inconsistent results. The data on the client
    does not match the data returned from the server. The most likely cause is that client-side cache is out of sync with server data. ---> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of class ManagementPack with ID ab2e712a-8963-028c-50bb-8d2fbecf380a
    was not found.
       at Microsoft.EnterpriseManagement.Configuration.TypeSpaceCacheBaseWithManagementPacks.GetManagementPack(Guid id)
       at Microsoft.EnterpriseManagement.ManagementPackManagement.GetManagementPack(Guid id)
       at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId)
       --- End of inner exception stack trace ---
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Configuration.CreatableManagementPackElement`1.GetManagementPack(Guid managementPackId)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPackTask.Constructor.CreateSingle(Result row)
       at Microsoft.EnterpriseManagement.Configuration.ManagementPackElementConstructor.CreateMultiple[T,H](IList`1 dataAccessResult, EnterpriseManagementGroup managementGroup, ManagementPack managementPack)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria, IList`1 targetTypeIds, BaseClassTraversalDepth baseClassTraversalDepth, Nullable`1 managedEntityId)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria, IList`1 targetTypeIds, BaseClassTraversalDepth baseClassTraversalDepth)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasksInternal(ManagementPackTaskCriteria criteria)
       at Microsoft.EnterpriseManagement.TaskConfigurationManagement.GetTasks(ManagementPackTaskCriteria criteria)
       at Microsoft.ServiceManager.WorkflowAuthoring.Common.ManagementGroupHelper.GetTaskGuid(String taskName, String mgmtGroupName)
       at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.CommandScript.InitializeRunTaskActivity()
       at Microsoft.ServiceManager.WorkflowAuthoring.ActivityLibrary.CommandScript.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    Does anyone know why this is or how to fix it?
    I've tried twice now with the same results.
    Cheers,
    Rob

    I gave up with this approach and created a custom activity for this workflow which is passed the same parameters and performs the same actions but works perfectly.
    Did you ever find a reason for this error?

  • I am trying to change the Apple ID on my old iPhone 5c but it wants a password for an old Apple ID with and email that doesn't exist anymore

    MMy old iPhone 5c is wanting a password for logging into my apple account. The problem is that the email address its tied to doesn't exist anymore. I changed the email to a different one. But can't figure out how to change the email address on the phone to the new email address.

    The fact that the email address doesn't exist anymore doesn't matter. As far as the Apple ID is concerned, the email address is just a user name. As long as you know the password you used, it should be fine.
    If you don't remember the password, start here:
    https://iforgot.apple.com

Maybe you are looking for

  • Error in viewing logon page,inspite of restoring original par file

    Hi, I was trying to modify,the logon par file,because it was not getting deployed,it was becoming .err, I reverted back to the original logon par,and still even that gets deployed to .err. I renamed the original par,changed the reference in authschem

  • How is this even possible? Folders out of sync. Backlog command says in sync.

    Two 2008 R2 servers.  Been running DFS-R for about a year now.  Generally no problems. If I run the DFSRdiag backlog command on either server, for one particular folder, it says there is no backlog.  The only problem with that is;  on one server ther

  • Flash Player needs to be reinstalled every day

    Without any specific cause, I have found that to view most videos I must reinstall Flash Player every time I start my computer whether I use Firefox or IE. Of course Chrome works always no problems, but it is not my desired browser- that's firefox. O

  • Art brush question

    When I use an art brush on a rectangle the corners all have a flat, angled outside edge. It doesn't matter what art brush I use, it happens with all of them. I've tried changing the miter type but that doesn't do anything with art brushes. Is there a

  • HA and Load Balancing in Exchange Server 2010

    Hi My office just have 2 servers Exchange Standard 2010 (Licensed). I installed 3 roles on 2 servers (called Ex1 & Ex2). I configured Windows NLB for Hub Transport and Client Access. That 's fine. But the maibox is seperated each server. Ex1 is main