Jython to read and replace a column null of concatenated in FDMEE 11.1.2.3 Import Format

Hi all

I'm working on an upgrade 11.1.1.3 11.1.2.3 FDMEE. Please advise on the underside.

I have a data file that is long of 14 columns and format import concatenate columns 4 + 6 + 14. FDM 11.1.1.3 it was an import script that uses the following logic:

Dim strICP

If strField = "" then

BlankICP = "1500".

On the other

BlankICP = strField

End If

When I try to use the same logic of Jython, instead of vb script below Jython interpreter not the last empty column as a null and does not replace the null value with the correct value that interferes with my similar cards. This logic works with other scripts to import as long as it is added to a column of the concatenated string that isn't the end of the file. Note: there is no space in column 14, when it is empty.

Sample file:

2014 | 1. 1500_01 | 027 | 51510 | Trading | 5000 | USD | Segments | Trading |

2014 | 1. 1505_02 | 037. 51510 | Trading | 750. GBP | Segments | Trading | Full

def BlankICP (strfield, strrec):

If strfield == "":

Returns "null".

Another thing:

return "Not null".

Valid in FDMEE to:

02751510

03751510NotNull

Ok

I noticed that it checks the null value when parsing the value of the field:

So basically he does not apply the import script when the source field is null

If you change the value empty by white space, then it works fine:

Solution: create only a single line of PKI and place the script to concatenate all areas:

I suggest you raise an SR to ask for the handling of empty values in the import scripts. At least for script evaluation process.

Let's see if there is another workaround solution.

Concerning

Tags: Business Intelligence

Similar Questions

  • Help with Acrobat 7 Pro (make savable PDF files reader and make the columns to do the math)

    Forgive me, I do not normally an interactive PDF file, but I need to know a few things.

    I am using Acrobat Professional 7 at home, but have access to Pro 8.  7, show do you the PDF save information as well as the PDF file in Adobe Reader?  I've seen how Pro 8, which allows 500 visits to the file, which is good enough to use in forms that I do.  But in 7 Pro, I can't find this feature to let the player save filled in the fields in the form.

    The attachment to my message now is the question of the second (but not as important).

    I need to try to make the fields in this form to add, subtract and multiply.  How do I do that?  I don't have experipence of java programming.  This is how I want to have the columns to work:

    Texts, 29, 34, 39 and 44 should match the text 46.  Texts, 30, 35, 40 and 45 should match the text 47.

    Text 48 should subtract text 46 and 49 text should subtract text 47 if used.  The results should then indicate in texts 52 and 53 respectively.

    Now here's the tricky.  Texts, 50 and 51 are optional.  If the main discount is applied, then texts 52 & 53 should have a discount of 5% applied to the totals.

    Is it feasible by a non-programmer?  Any help is greatly appreciated.

    Bill Rudloff

    The rights of the reader extended registration form fields not available in 7 Pro. To use javascript, learn javascript programming. It's not rocket science, but it's the programming.

  • How to search and replace only tag values XML and tag not the columns?

    Hello

    I'm new to xml db, and I have a scenario where I need to find and replace the xml content. The search is based on a clear text and not on any column.

    I have a table as follows:

    ID VARCHAR2 (32 BYTE),
    MESSAGE_TYPE, VARCHAR2 (64 BYTE),
    XMLTYPE OF the MESSAGE_CONTENT,
    REJECTED_REASON VARCHAR2 (256 BYTE)

    And XML in the form of the sample:

    <? XML version = "1.0" encoding = "US-ASCII"? >
    < MessageEnvelope >
    < header >
    Renault < partner > < / partners >
    < MessageType > release < / MessageType >
    S74 < PartnerMessageType > < / PartnerMessageType >
    < MessageTime > 2001-12-17T 09: 30:47.0Z < / MessageTime >
    String of < LinkToRawMessage > < / LinkToRawMessage >
    < / header >
    < body >
    < version >
    < address >
    < DealerDestAddr > ABCD < / DealerDestAddr >
    < DestAddr > ABCD < / DestAddr >
    < NextDestAddr / >
    < StartAddr / >
    < / book >
    < assignment / >
    < ClientStatus / >
    < dates / >
    < HoldInfo >
    < HoldCode > HoldTest < / HoldCode >
    < / HoldInfo >
    < message / >
    < partner >
    < OrderGiverCode > CMR00BCV < / OrderGiverCode >
    < / partners >
    < ToDo / >
    < transport / >
    < vehicle >
    W0LGDM9A_Ran11115 < WINE > < / WINE >
    < / vehicle >
    < / Statement >
    < / body >
    < / MessageEnvelope >


    I'm running the query of foll:

    UPDATE t_xml D SET D.MESSAGE_CONTENT = replace (D.MESSAGE_CONTENT, "ABCD", "Chennai")
    (WHERE d.MESSAGE_CONTENT.existsNode('//*[*="ABCD"]') = 1;

    This works very well and replaces the two ABCD < DealerDestAddr > < / DealerDestAddr > and < DestAddr > ABCD < / DestAddr > tag values in Chennai. But the problem I encounter is if there is that a node with the name of the < ABCD > tag is also changed to < Chennai >. Please help me to fix this problem.

    Kind regards
    Sprightee

    What happens if I need to select and update a node that has the value null. Who doesn't have any value to it.

    You can test if the partner has a child text() node:

    existsNode(
      d.message_content
    , '/MessageEnvelope/Header[not(Partner/text())]'
    , 'xmlns="http://www.groupecat.com/CLV2/MessageEnvelope/20120501"'
    ) = 1
    
  • Replacement of the NULL values to zero to perform an arithmetic operation on column

    Hello

    Please enlighten me how to achieve this.

    I want to add on the Salary column operation in the EMP table.
    Some values are null in the salary column. I want to replace the value null by zero and we'll do the addition.


    As: I want to add 15 where for emp 1 and his sal is null.
    It should be 0 + 15 = 15


    Thank you
    Madam.

    Or maybe you wanted to say:

    NVL(sal,0)+15
    

    depends on if your summation by rows or simply want to add to the value of the current row.

  • Search and replace text in multiple columns

    I have a document with 4 columns that repeat throughout the document in different lines. I would like to find and replace text for all 4 columns at the same time.  I tried a number of special characters between my column information but still can't seem to find the line.  I've included an example below of the appearance of my lines.  I would like to find and replace the first line and the third row.

    Header 1 Header 2 Header 3 Header 4
    onebcd
    efgh
    onebcd
    efgh

    Here is the special character combos, I tried:

    a ^ Mb ^ Mc ^ Md

    a ^? b ^ > c ^? d

    Thoughts?

    You can only select entire flood, copy it and select each time the raw and paste. There is no simple method to detect the sequence of the fields in a table.

  • Find and replace (CS6) results: column too narrow location

    When I use search in the find and Replace window, the location of the results column is too narrow to be useful, and I can't make it any wider, despite plenty of room in the window.  See screenshot:

    FlashCS6_FindandReplace.jpg

    I use Flash Pro CS6 v12.0.2.529 on Mac OS X 10.7.4.

    It is a frustrating problem.  Is there a solution?  If this isn't the case, should I file a bug report?

    Thanks, ~ jason

    I thought about it.  The 'Type' column width was maximized in some way.  I need click and drag on the right border of the column to make it smaller.  Then there was room to make the 'Place' and 'Put in correspondence of the elements' more wide.

    Just weird.

  • Problem with digital I/o read and write in CVI

    I have a PXI with PXI 6225 Renault installed box. For some uses, I wired 4 lines of digital port 0

    for its 4 top lines so that the output digital on bottom lines can be read as a digital input on the top lines.

    In the CVI program I have set up two input and output of tasks as follows:

    Enter task:

    DAQmxCreateDIChan (digitalInputTask, "PXI1Slot5/port0 / line4:7","InputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming (digitalInputTask, ' AI/SampleClock ", 4000, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 2000" ");

    Output task:

    DAQmxCreateDOChan (digitalOutputTask, "PXI1Slot5/port0 / line0:3","OutputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming(digitalOutputTask,"ai/SampleClock", 4000, DAQmx_Val_Rising,DAQmx_Val_ContSamps, 2000));

    DAQmxCfgOutputBuffer (digitalOutputTask, 2000);

    I also started a task of analog input to ensure that the analog "IA/SampleClock" sample clock is running, and I check

    as I interpret the correct analog data of my analog lines.

    Here's the problem:

    I write 2000 identical samples of zero for the 4 lines (port0/$line0... (3) with the following command:

    DAQmxWriteDigitalU32 (digitalOutputTask, 2000, 1, 10, DAQmx_Val_GroupByChannel, sampleArray, & writing, NULL);

    After a while, I try to read the 4 lines (port0/4... (7) using the:

    DAQmxReadDigitalU32 (digitalInputTask, 2000, 10, DAQmx_Val_GroupByChannel, scanArray, 2000, & read_num, NULL);

    but the values returned in scanArray are nil!

    If I replace the digitalInputTask by digitalOutputTask in the above function call, I get the good samples rewritten

    (do not know how the 4 lines below that are configured in output mode can be read back! could it be just read buffer?)

    I don't know that the hardware configuration is correct, because when I try to emulate this feature in Labview, it works.

    (I use an output data acquisition assistant to write down the 4 lines of port 0, using a digital wave of entry, then)

    top reading 4 lines with the help of one Assistant DAQ to enter a digital waveform VI.

    In another test, I have 4 lines below in CVI, put on stop my CVI program, start a simple Labview VI to read from

    upper 4 lines and I can see the values I just write in CVI).

    Any idea what could be causing DAQmxReadDigitalU32 to read only zeros in CVI?

    I compared my settings in CVI with parameters DAQ assistant in Labview and tried to make them identical, but nothing helped.

    Thank you

    Try to use these examples to see if you can read and write in CVI

  • Find and replace the delimited string value by the

    Hi all

    I have a requirement where I need to find and replace the delimited string values.

    For example, the string is "GL ~ 1001 ~ 157747 ~FEB-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". The 4th column gives the month and year. I need to replace it with the name of the previous month. For example: "GL ~ 1001 ~ 157747 ~JAN-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". I need to do the same thing for the past 12 months.

    I thought initially divide the values and store it in a variable and then after him substituting the value required, join the return.

    I just wanted to know if there is a better way to do it?

    Like this:

    with a model like

    (select "GL ~ 1001 ~ 157747 ~ FEB-13 ~ CREDIT ~ A ~ N ~ $ ~ NULL ~' double UNION ALL data")

    Select ' GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDIT ~ A ~ N ~ US ~ NULL ~' double data)

    Select

    REPLACE (DATA, TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR"), 'MON - RR'), TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR")-1, 'MON - RR'))

    modeling;

    GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~

    GL ~ 1001 ~ 157747 ~ DEC-12 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~

    Ishan

  • A Script to find and replace the layer names

    Is there scripts to find and replace the names of layers?

    There is an excellent script available for Photoshop that allows you not only to replace words in layer names, but also insert words as prefixes, Suffixes and sequential numbers.

    The version of the illustrator of this script allows only sequential numbering: it does not offer search and replace words.

    Ideally, it would be great if there were something that could find multiple and replaces in a go:

    (for example

    You have layers like this car, the dog, the bat

    You enter: because (Option1), dog (Option2), Bat (Option3)

    Your layers become then: option 1, option 2, Option3).

    )

    Big_SmiLe, which is a very good start! Step 1 of learning how to Script is indeed, by adjusting an existing simple script to make things more complicated. (And usually then "break something", which is also a necessary part of the process.)

    You are right your comment, it comes to repetitive things. For one or two different articles that wouldn't be a problem, but in the longer lists you are soon lost.

    As usual to work with lists of search - replace is to build a table:

    var layernames = [
    [ 'FHairBowlBoy *Hair', 'Hairboy1' ],
    [ 'FHairCurlyafroBoy *Hair', 'Hairboy2' ],
    [ 'FHairSpikyBoy *Hair', 'Hairboy3' ],
    ];
    

    The general idea is to loop through all the names, check if the current layer name is "layernames [i] [0]" (the left column) and if so, rename it "layernames [i] [1]" (the right column). If you know how to write a loop in Javascript, then you can implement this immediately.

    However...

    A more advanced method to do this didn't need even loop on all layernames - instead you can immediately 'get' the correct name by layer! It's magic! Almost!

    The trick is to use a Javascript object rather than a table. JavaScript objects are nothing special; "Layers" of Illustrator are an array of objects, and each object 'sex' has a 'name' property, which you can read and set the value. What I do here, is to create a new object, where the part 'name' is the name of the original layer and its value is the name of the new layer. All you need to check each layer is if there is a "object.originalLayerName" property and if so, assign its value to this layer name.

    It looks a bit like the table above, except that (1) you use {.} instead of [..] to create an object and (2) you add pairs "name: value" instead of 'value' only (in fact, the 'name' of a value in a table is simply her number).

    So here's what it looks like:

    // JavaScript Document
    var doc = app.activeDocument;
    // name indexed object
    var layernames = {
     'FHairBowlBoy *Hair':'Hairboy1',
     'FHairCurlyafroBoy *Hair':'Hairboy2',
     'FHairSpikyBoy *Hair':'Hairboy3'
    };
    // loop through all layers
    for (var i = 0; i < doc.layers.length; i++)
    {
     //Set up Variable to access layer name
     var currentLayer = app.activeDocument.layers[i];
     if (layernames[currentLayer.name])
     {
      currentLayer.name = layernames[currentLayer.name];
     }
    }
    

    Enjoy!

  • Search and replace the contents of the excel file

    Hello

    I have the list in the excel file that needs to replace. The script should read the excel then replace to open InDesign documents.

    The excel (*.xls) file has two columns, the first column has our old. and the second column has the new numbers to replace.

    Ex:

    Column 1 column 2

    (Research)               (Replace)

    -----------------------------------

    4257/2 = > 1/2

    4257/3 = > 1/3

    4257/4 = > 1/4

    ....

    3257/2 = > 1/5

    3257/3 = > 1/6

    3257/4 = > 1/7

    ....

    4457/4 = > 2/2

    4457/5 = > 2/3

    4457/6 = > 2/4

    4457/7 = > 2/5

    ......

    Thanks in advance,

    Thiru

    Hi Poirier,

    I modified your request for entry of csv file.

    Please save it as the xls to text delimetted tab. See the snapshot below.

    Then, run the provided scripts it will change the values.

    var myFile = File.openDialog("Choose a tab delimitted txt file:");
    if (!myFile){
    exit();
    }     
    
    myFile.open('r');
    while (myFile.eof==false){
         line=myFile.readln();
         line = line.split("\t");
         myFind = line[0];
         myChange = line[1];
         app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
         app.findGrepPreferences.findWhat = myFind;
         app.changeGrepPreferences.changeTo=myChange;
         app.documents.item(0).changeGrep();
         app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
         }
    myFile.close();
    

    THX

    csm_phil

  • Find and replace reference an Excel file

    Hi all

    I apologize if this has been posted before.

    I recently finished to create a large catalog. I need to replace all the product codes of my business with codes of different product for one of our customers (our client sells our products, but uses its own product codes) in the InDesign files.

    I have an excel document that lists all our product in column a. codes and codes produced customers in column (B) is a script that would be able to tell InDesign to watch this excel file, find all the codes of column A product and replace them with product codes that are listed in column B?

    I have no knowledge on writing scripts, but if someone could tell me that it is still possible and he could direct me in the right direction, it would help a lot!

    Thank you!

    Well well, how about this. See if you can follow how it works (it's pretty simple)

    the_table = app.selection[0].tables[0];
    app.findChangeTextOptions = null;
    with (app.findChangeTextOptions)
    {
     caseSensitive = true;
     wholeWord = true;
    }
    app.findTextPreferences = null;
    app.changeTextPreferences = null;
    for (row=0; row
    

    Copy, paste in the ExtendScript Toolkit editor that came with InDesign. Save it as "ChangeByTable.jsx" in your scripts folder. When recording in the right place, it will become immediately available in the actions panel.

    To use: Insert your table with from-to spare somewhere in your document. The first column should hold the texts of the find, the 2nd replacement - one set per line. You have not to worry if the part of the table is in excess (not quite visible) - the script doesn't care about that.

    Select the text frame that contains the table, and then run the script. If it worked, you'll see that the 1st column contains the same text as the 2nd.

  • When I updated my Adobe Acrobat plug-ins it uninstalled Adobe Reader and installed Adobe Acrobat Reader DC. Can I use Adobe Reader instead?

    I am running Windows 7 Home Premium 64-bit. Firefox said that my plugin Adobe Acrobat was outdated, so I've updated. It uninstalled my Adobe Reader Version 11.0.12.18 and replaced it with Adobe Acrobat Reader Version 2015.008.20082 DC. I did not like this program, and more I read there are still bugs in there. I uninstalled the program and reinstalled Adobe Reader Version 11.0.12.18. I went into the menu of options of Firefox under applications and changed the options Adobe to use Adobe Reader as the default application for PDF files. It is a safe choice, or should I leave Firefox dictate what PDF program I use? I am concerned about safety issues. Any opinions?

    I think that your question has been answered mainly in this thread: https://support.mozilla.org/questions/1079182

    In my opinion, you can trust Adobe to keep the series XI Reader updated for awhile. It is completely safe is impossible to know, given that vulnerabilities are often discovered and kept secret.

  • Look of cells upward and replace function in numbers

    Hi here's a video explaining what Im trying to do. http://www.screencast.com/t/zrR5wDKEm4j7

    or here https://s3.amazonaws.com/edferrigancoaching/Video/Eds+Numbers+Request.mp4

    What I have is 2 tables. A collection of data. The other is summarizing the data. I want to finish with only 4-5 "buckets" in table two. I need a formula to take the content in a cell in the table 2 back to the one table and find all occurrences in this column and replace them with content I enter in a cell in front of the cell I want changed. The video will illustrate this.

    I searched on Fiverr experts of numbers, but only two people announced the knowledge of numbers and no one knew how to this number. Thank you this will help a lot on a long term project, I want to use it with over and over again. Ed

    < email published by host >

    Why not use the search and replace in the menu "Edit > find > find...» »

    This brings a dialog box where you can enter the search text and what to replace this text with:

  • Satellite M30X-165: Mat * a UJ - 831 S is not read and write any DVD

    Hello

    the next problem is sticky on the laptop Satellite M30X 165 with the burner Mat * a UJ - 831 S: it can read and write CDs, but is not able to write them to DVD or even read some of the ones I've burned and also read in the same drive. Even at the start of the DVD, it does not start from the recovery DVD, the player starts and slows down very quickly.
    Without doubt, it must be put at the service of repair or someone has other suggestions?

    Could you please tell me how long the repair takes (I know what it takes to install the desktop temporarily used).

    Thank you

    Post edited by: DerSeher
    Using burning software, it detects the DVD, but invite you to an "error of calibration power (037303).

    Hello

    If you cannot use recovery media, I guess that the drive is defective and must be replaced.

  • How can I remove my OS and replace it with windows on my macbook pro 10

    How can I remove my OS and replace it with windows 10 on my macbook pro?

    Primarily, I use my ipad pro for all my work and I want a windows dedicated for other work machine.

    What os? you want to replace the OS X 100% with windows with no return back?

    or you want to replace a version of windows in bootcamp with windows 10?

    your macbook must support windows 10 in any case, you can read here more use 10 Windows on your Mac with Boot Camp - Apple Support

Maybe you are looking for