Invert sign to import with script

Dear Lion,

11.1.2.3 FDMEE and the new Jython scripting language are beautiful.

Now please help me please with the following:

This script works very well:

def separation(strfield,strrec):
    if strfield == 0:
        return strrec.split(";")[8]
    else:
        x = strfield
        return x

This script, where I want to reverse x value, does not work very well! Why and how to manage this problem?

def separation(strfield,strrec):
    if strfield == 0:
        return strrec.split(";")[8]
    else:
        x = strfield * -1
        return x

Thank you very much.

Hello

Let me try to show you some examples.

First of all, think that FDMEE password string for the import script parameters

In this example, you can see that there basically is convert to float your strfield and 9th field in the record.

In this way, you would be able to reverse the sign.

Note that x = x *-1 is also valid but the jythonic also would be x * = - 1

But what will happen if strfield or field 9 cannot be converted to a float?

As you can see, it would fail because of the ValueError exception.

In Jython where the type of conversion is necessary as float() using try / except is recommended.

In the following example, if one of the two fields is not the record number is ignored during import:

I hope this helps.

Concerning

Tags: Business Intelligence

Similar Questions

  • I can't import my script (film) into Adobe Story. The error message says that I am unable to connect to the Adobe servers. Is this a problem with the Adobe?

    I can't import my script (film) into Adobe Story. The error message says: I am unable to connect to the Adobe servers. Is this a problem with the Adobe?

    Yes and no it seems that if the file is a .doc or .pdf, that it does not load properly. But if I bring him in a Final Draft format, it works perfectly.

    Adam

    Sent from my iPhone

  • working with scripts

    Hello

    I work with scripts of these days, I wonder if anyone can guide me through a document that explains each step and gives an example of this work.

    I already read the explicit book of the IPCC, but it gives no examples of its use.

    Thanks for your help

    IPCC express 4.0

    I also wonder if, using the scipt even editor would work for CUE.

    Nice day

    Hello

    Take a look at this link.

    It's a zip file with examples of "aef" from Cisco:

    http://www.Cisco.com/application/x-zip-compressed/en/us/guest/products/ps1846/C1028/cdccont_0900aecd80179234.zip

    Hope this helps,

    Juan Luis

  • Import with datapump when exporting datapump was executed as user SYS

    Hi all

    all I have is a dumpfile and an export a datapump log file. Export has been executed as user sys:

    Export: Release 11.2.0.1.0 - Production on mid Dec 3 12:02:22 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    ;;;
    Join EIB: Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
    "SYS". "' SYS_EXPORT_FULL_01 ':"sys/***@database AS SYSDBA"directory = data_pump_dir dumpfile = db_full.dmp db_full.log = complete logfile = gestartet wird y
    Mobiltelefondienste participations mit method BLOCKS...
    Objekttyp DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA wird thanks
    Approximately Schatzung mit BLOCKS method: 52.84 GB

    Now I have to import (with datapump) user USER01 and export USER02. But I don't know the name of the source database tablespaces.

    I want to keep the name of the user (USER01/USER02). That's why I created these users in the target database.

    The questions I have are:

    -should I start the import by datapump as user SYS?

    -Should what settings I use to import users USER01, USER02 and data in the target database? Since I do not know the names of tablespaces

    in the source database parameter REMAP_TABLESPACE will not help

    Any help will be appreciated

    J.

    Hi J.

    The questions I have are:

    -should I start the import by datapump as user SYS?

    No, you need to import with a user in the role of "imp_full_database".

    -Should what settings I use to import users USER01, USER02 and data in the target database? Since I don't know the names of the storage spaces in the source database parameter REMAP_TABLESPACE will not help

    Well, an idea is to generate you a schema import sqlfile and see in the ddl in what tablespace, it will try to create objects.

    Impdp------' / as sysdba------' directory = dumpfile = = = USER01, USER02 patterns sqlfile

    For more information, take a look at the import documentation

    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_import.htm

    Hope this helps,

    Kind regards

    Anatoli has.

  • How to import with datapump tablespaces and another schema?

    Hi, I need to import with datapump to another schema, data in 'x' tablespace and indexes in the tablespace 'y'

    example:

    My schema: prueba

    I need to import the schema "prueba" but the data must be in the tablespace called "Tb1" and its index should be in the tablespace called "Tb2".

    So, how can I do?

    Any help will be appreciated.

    As the noted the ground, do two imports, exclude to limit import and map objects to the appropriate storage space (to know what tablespace they were however)

    import 1 - exclude = index remap_tablespace = source: tb1

    import 2 - exclude = remap_tablespace = source table: tb2

  • Import with presets developed vs developing vs Export

    Setting: Scientific Specimen imaging, using Lightroom to convert and normalize the types of images. All images are produced in a photobox, so are virtually the same as the actual sample.  The final products are jpeg and DNG images uploaded to a database.

    The camera raw image files we 'Import' means the images to Lightroom with "metadata" and "Develop" presets activated, which gives DNG files for each image.  There is white balance, sharpness and the color correction preset hysteresis in the "develop" used for import, we do no further manipulation of the image in LR.

    The fundamental Question is: are the DNG files from the 'import' final, usable, DNG of generated images, or these can be 'developed' or 'exported' to get the latest DNG?  Experimentally, we tried to do the 'export' and exported DNG files are exactly (byte) of the same size as the ones we have generated when they were imported.

    The question is we do something else that wasting time when we do the 'export' to give a second series of DNG files?

    Thank you, Carl

    Update: we did some tests and we found out, is that if you use the function "import with copy DNG with presets to develop" the generated DNG file has modifications in the develop preset applied to the image in the DNG file.

    Our experience: starting with 2 identical copies of the same RAW image, we did import with copy DNG twice - once with our development presets applied and the other without the develop presets.  We then exported the each image as a DNG, which gives an "only import" and a version "exported" of each image.  We then compared the 4 images (on another computer without LR), it is clear that there is no difference between the DNG format generated via "Import with copy DNG with presets to the point" and the images after export.

    Thus, it is our conclusion that there is nothing to gain from the export to DNG that were generated images by using the function "import with copy DNG with presets to develop."

    Note: We use LightRoom CC 2015.3 Release, Camera Raw 9.3

    We hope this is helpful to other users!

  • Worst ever customer service! Took a month to solve my request for an account that was signed for fraud with my bank details, and would not deliver even a refund of $1 for fraudulent use of the account. If they treat their employees the way cu

    Worst ever customer service! Took a month to solve my request for an account that was signed for fraud with my bank details, and would not deliver even a refund of $1 for fraudulent use of the account. If they treat their employees the way of customer service treats its customers, not surprising that the service is the worst I've ever met.  Bad form Adobe.  What a month subscription pay you? Adobe Community

    If your card has been used fraudulently to subscribe, you should be able to get the charges reversed with your credit card company. Not to defend the whole Adobe Customer Service, but in this case Adobe has no way to tell if it is a fraudulent use.

  • Several problems of importation with the iPhone

    Several problems:

    1. not able to import with an iPhone 6; the phone is recognized but the hands right after pressing import

    2. many of the previews are not displayed

    3. do not select those images that have already been imported

    LR 6.2.1 on an iMac using 5 k late 2014, 4 GHz i7; 32 GB OF RAM; AMD Radeon R9; OS X EL Capitan 10.11.1

    This morning, I installed the update OS X El Capitan 10.11.2. This seems to have solved the problem: I'm able to import photos from my iPhone 6; He has been able to identify those that I had just imported as already imported when I tried again.  Just a note, the photos that were previously imported (several weeks) were not recognized as having been imported.

  • I'm in photoshop and I'm trying to adjust the pressure of my pen. However, I get this sign of error with the sign of exclamation on the side and the pressure is not resolved.

    I'm in photoshop and I'm trying to adjust the pressure of my pen. However, I get this sign of error with the sign of exclamation on the side and the pressure is not resolved.


    I'm running on Windows 8, I'm using the latest version of Photoshop (2015) and I have a Wacom Intuos tablet. What should I do?

    Thanks, I forgot actually download wacom itself. It works now. Thank you!

  • Can I sign a document with my digital signature using professionals DC smart card?

    Can I sign a document with my digital signature using professionals DC smart card?

    You mean certificate on your smart card, right of signature? If the certificate on your smart card is designed to sign then the answer is "Yes, you can. CA that issued a certificate place some fields that can restrict its use, say, as well as encryption, only signature or authentication of the server only, etc. The certificate on your smart card doesn't have to be no restrictions to use incompatible with signature for you to be able to sign with her. You can simply try to connect your smart card and watch if Acrobat accepts the certificate for the signature.

  • Symbol of movement with script

    Hello

    How can I animate a symbol with script on mouse over.

    I tried...


    sym. $("zone") .animate ({top: '-8px'}, 250);

    ... but it does not work.

    Thanks in advance.

    Sorry for my late reply. You must load the jquery library by using the upload Panel script. Jquery loading your code will work.

  • Audition CS5.5 - the file is opened, but I can't see the signs to interact with them.

    Audition CS5.5 was working normally yesterday. Now, for some reason any I can open files, but my workspace panels are not displayed. The file is open, but I can't see the signs to interact with them.

    try running everything in [Shift]

  • I don't know if I did something to cause this; If I did, I don't know how to cancel it.  The format of my screen of the library has changed.  Across the entire screen is a group of 3 photos of my last import, with that that I chose was highlighted.  I can

    I don't know if I did something to cause this; If I did, I don't know how to cancel it.  The format of my screen of the library has changed.  Across the entire screen is a group of 3 photos of my last import, with that that I chose was highlighted.  I can still see the pictures on the bottom Strip.  If I scroll up and down, I see that all is there.  But no browser, list of files, import and export buttons, etc.  How do I return my screen normal library?

    Post a screenshot of what you see.

    Type the tab key.

  • JDeveloper replaces imports with joker

    Hello

    We work closely with JDev 11.1.2.3.0 and SVN.

    In this configuration the JDeveloper is to replace imports as import with oracle.bindings. oracle.bindings.BindingContainer * import.

    But we do not want the JDev to replace imports with these wildcard character imports.

    Is there a property or conifguration to change the behavior of a normal way?

    Thanks in advance.

    I found it by myself. In the Actions to save imports to expand entry was doing this.

  • Could not copy a file at the location requested. Mac OS 10, Version 10.10 [1].  I JUST bought this new macbook pro and Lightroom installed, imported 2 lots of pictures, but all of a sudden he kept denying my imports with "could not read the file" or "coul

    Could not copy a file at the location requested. Mac OS 10, Version 10.10 [1].

    I JUST bought this new macbook pro and Lightroom installed, imported 2 lots of pictures, but all of a sudden he kept denying my imports with "could not read the file" or "couldn't copy file at the location requested.  Help, please!

    Your use of the word "files" (in the plural) still makes me believe that you have not checked the permissions on the folder that is appropriate (in the singular).

    You must determine the Destination of the Lightroom Import dialog window Panel and see which folder Lightroom is really tr6ing to copy photos in (which may have been accidentally changed and is not what you may have used in the past) and change the permissions to write to this folder.

Maybe you are looking for

  • How to get the drivers on my Satellite U305?

    Hello I have trouble with my Toshiba Satellite U305. My laptop using vista OS but after formatting hard drive, I can't find the driver as web cam etc. So what do I do with my laptop driver on the HARD disk, I see a hidden partition which is like the

  • Photosmart 7520 Duplex printing with A5?

    Hey well informed friends HP! I have been working on a book-type project and am ready to print. Unfortunately, now that everything is set-out (in Mellel) and I bought the paper (from England!), my Mac (OS 10.6.8) does not want me to print my book on

  • Admin tools folder is empty.

    A few months ago, I managed to get a rogue virus on my computer hard drive. Ive tried a few things so far but without success. Ive connected the antivirus avg, including a spyware remover, this had detected a little, but after this all my folders and

  • What is BitGuard?

    I found a program on my computer called: BitGuard.  I searched on the internet for more information and found nothing.  Anyone know what is this software? Thanks a lot for your help!

  • Keyboard Bluetooth for blackBerry Smartphones

    I am looking to buy freedom for the BlackBerry Storm (www.freedominput.com) universal Bluetooth keyboard. Looks like you must have the administration rights of the BES for the keyboard works.  This could be due to the integration of keyboard option (