Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Satyajit Singh
    @satyajitg2
    My atlapmap mapping complains about "Ignoring missing source document"? What does it mean? I have mapped the right ones and I can see them in the mapping section, downloaded and injected in the camel route. But the route logs message with "Ignoring missing source document". Can anyone help? Thank you in advance.
    Tomohisa Igarashi
    @igarashitm
    Do you have multiple source documents? Usually with that error, the Document ID doesn't match at runtime. There's "Capture extended file name to clipboard" icon next to the Document name in UI
    Sudheer Kumar
    @sudheer_cv_twitter

    Hello all, I have a target JSON like this...

    {
    "groups": [
    {
    "items": [
    {
    "data": "2323",
    "mandatory": true,
    "name": "postcode",
    "prompt": "Enter your postcode",
    "validateAs": "/validate/Postcode"
    }
    ],
    "mandatory": true,
    "name": "supplyPostcode"
    }
    I need to set the value of the : data node, though an xapth kind of syntax, since I might have multiple items.

    Eg : groups/items[name="supplyPostcode"]/data to 2323
    In the AtlasMap, is there anyway to select target node like this?
    I was not able to find any.

    Tomohisa Igarashi
    @igarashitm
    you'd have to calculate from source document, maybe with using expression, if <source of /groups/items[]/name == supplyPostcode> then <put 2323 to /groups/items[]/data>
    Sudheer Kumar
    @sudheer_cv_twitter
    Actually, I am mapping from a non-collection to a Collection. I see from the documentation that the maximum customization allowed is to change the index : https://docs.atlasmap.io/#mapping-between-collections-and-non-collections. But that is very limiting.. I guess..
    Tomohisa Igarashi
    @igarashitm
    did you check conditional mapping with expression? https://docs.atlasmap.io/#applying-conditions-to-mappings
    Sudheer Kumar
    @sudheer_cv_twitter
    I feel it is used to customize an existing map. But I want to choose a target node based on a custom condition. please correct me, if I am wrong.
    • I mean to customize an existing field mapping...
    Tomohisa Igarashi
    @igarashitm
    I don't know what you mean by "existing mapping", but you can't refer to target field. You always need to calculate from source, and then write to target
    Sudheer Kumar
    @sudheer_cv_twitter
    When I map my non-collection to a Collection, I get a warning : The 0 index will be used for any extra parent collections in target [/groups<>/items<>/data], since target has 2 collections on the path, whereas source has 1. This documentation says : https://docs.atlasmap.io/#mapping-between-collections-and-non-collections, I can change the default target node selection. But even if it allows, it wont work for me. I need xpath based target selection, which is not provided in GUI now..
    Tomohisa Igarashi
    @igarashitm
    again, it should be determined from source, like if <source of /groups/items[]/name == supplyPostcode> then <put 2323 to /groups/items[]/data>
    Sudheer Kumar
    @sudheer_cv_twitter
    ok.. you mean to configure the expression.. .let me try that a see.. Thanks Tomohisa!
    GerryOnGithub
    @GerryOnGithub
    I keep getting this weird error in my camel-atlasmap program. I created the simplest possible adm file, the incoming json has only one field and the target has only one field. When camel context starts, it throws an exception
    java.lang.NoSuchFieldError: BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES
    at io.atlasmap.v2.ActionDetail.setActionSchema(ActionDetail.java:246)
    GerryOnGithub
    @GerryOnGithub
    I see in ActionDetail it is something Jackson related; thanks I will look into version stuff
    Sudheer Kumar
    @sudheer_cv_twitter
    Screenshot 2021-10-02 at 5.23.48 AM.png
    Hi Tomohisa, Regarding the non-collection to collection mapping issue that we have been disucssing, I tried the following, as shown above.
    As in the attachment, you can see that, I can connect to the target collection through an index only. That will not work for me, as there might be multiple items in collection.
    Secondly, when I choose the non-collection to collection mapping (which I made above using an idex), I don't even see the f(x) input being enabled.
    Screenshot 2021-10-02 at 5.25.58 AM.png
    See below attachment, here for a non-collection to non-collection field, I see the f(x) input is enabled.
    Screenshot 2021-10-02 at 5.27.07 AM.png
    Please let me know your thoughts...
    5 replies
    koskom-alt
    @koskom-alt
    Hi guys.
    We are using the atlasmap-standalone-2.2.3 application.
    Can you please tell me how you act in the situation when the template changes, for example, several fields are added?
    Is there a solution that would allow to update the target template, but keep the current mapping?
    3 replies
    Tomohisa Igarashi
    @igarashitm
    former for camel2, latter for camel3
    GerryOnGithub
    @GerryOnGithub
    awesome, thanks
    shrishti
    @shrishti:matrix.org
    [m]
    Hi @igarashitm ,
    I am facing two issues with Atlasmap 2.2.3 version. First is not able to create custom transformation successfully and I have one use case for which I need to transform JSON to SOAP XML which I tried but .xsd when I imported not showing correct data. Can u plz tell me how to resolve it. I have attached .xsd file for soap wsdl.
    Tomohisa Igarashi
    @igarashitm
    what's the problem specifically?
    9 replies
    shrishti
    @shrishti:matrix.org
    [m]
    shrishti
    @shrishti:matrix.org
    [m]
    :point_up: Edit: I am facing two issues with Atlasmap 2.3.0-M.5 version. First is not able to create custom transformation successfully and I have one use case for which I need to transform JSON to SOAP XML which I tried but .xsd when I imported not showing correct data. Can u plz tell me how to resolve it. I have attached .xsd file for soap wsdl.
    shrishti
    @shrishti:matrix.org
    [m]
    But mapping in session variable is null when I am using custom transformation. I also check it definition file but I didn't find something wrong
    3 replies
    GerryOnGithub
    @GerryOnGithub
    I found a bug in my json schema - how can I re-import my schema without having to remap all my fields?
    GerryOnGithub
    @GerryOnGithub
    if I try to re-import the same schema file it gets added rather than replace the existing schema
    sorry, when I say reimport I am referring to the AtlasMap GUI tool
    4 replies
    shrishti
    @shrishti:matrix.org
    [m]
    @igarashitm: I have another query related to json to soapxml .

    I have tried this conversion by importing soap xml instance and json instance and create mapping file. Conversion is doing fine but there are two tags for every element opening and closing as well.
    This response I am getting:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <ReadBalanceRequest>
    <EventTime>1234134321</EventTime>
    </ReadBalanceRequest>
    <ReadBalanceRequest>
    <MSN>100020002</MSN>
    </ReadBalanceRequest>
    </soapenv:Body>
    <soapenv:Header>
    <SoapHeaderMsg>
    <ContextId>Read Balance</ContextId>
    </SoapHeaderMsg>
    <SoapHeaderMsg>
    <DealerSubId>2202234</DealerSubId>
    </SoapHeaderMsg>
    </soapenv:Header>
    </soapenv:Envelope>

    Expected response :
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ec="http://www.optus.com.au/WSG/ec/">
    <soapenv:Header>
    <ec:SoapHeaderMsg>
    <ec:ContextId>636</ec:ContextId>
    <ec:DealerId>2202</ec:DealerId>
    <!--Optional:-->
    <ec:DealerSubId>7867</ec:DealerSubId>
    <ec:BillingOption>11</ec:BillingOption>
    </ec:SoapHeaderMsg>
    </soapenv:Header>
    <soapenv:Body>
    <ec:ReadBalanceRequest>
    <ec:MSN>100000002</ec:MSN>
    <!--Optional:-->
    <ec:EventTime>20210612121212</ec:EventTime>
    </ec:ReadBalanceRequest>
    </soapenv:Body>
    </soapenv:Envelope>

    I also have tried with soap wsdl schema file but atlasmap not able to read soap xml xsd file.

    4 replies
    shrishti
    @shrishti:matrix.org
    [m]
    Hi @igarashitm I tried with .xsd file but xml generated is not correct. To cross check I have done JSON to XML transformation with .xsd file which also gives same issue but with xsml instance it is working fine. Can u tell me what is the issue. I have attached JSON instance , XML instance and XSD file.
    2 replies
    Anurag Mittal
    @anuragmittal:matrix.org
    [m]

    Hi @igarashitm, I have a use case of converting json to soap xml. I tried this transformation using XSD file of wsdl as atlas map directly notsupporting .wsdl. I have attached XSD file, this file is not correctly read by atlasmap. Can u tell me what's the issue.

    One more thing by using XSD it will give me XML but soap XML structure is different So do we need to do it manually.

    The first file xsd file of wsdl and second file is the wsdl file.
    Anurag Mittal
    @anuragmittal:matrix.org
    [m]
    Thanks @igarashitm, I have already filed a bug report. Can you please answer this? By using XSD it will give me XML but soap XML structure is different So do we need to do it manually.
    The first file xsd file of wsdl and second file is the wsdl file.
    1 reply