FDMEE issue of Jython
7th, I have entities in columns 5-10.
I have accounts on each line. I want to loop through the array of entities and add a record for each entity for this account on the line.
Need to do this with a dynamic INSERT statement for each entity in the table I loop on, or is the best?
Thank you
PR
You can manipulate this file to get the format FDMEE expects which is basically similar to this:
Account1; Entity1; 100000
Account1; Entite2; 2000
Account1; Entuty3, 10000
With a little creativity, you can treat the script of the event BefImport file and replace the original with one with the same name but different format as shown above.
Your import format would be configured for the new file you generate.
See you soon
Tags: Business Intelligence
Similar Questions
-
FDMEE import Jython Script - field Split function
Hi people,
I have to admit, this Jython gives me a heavy headache!
In fact, it's a simple mistake, but I'm fighting around with it for hours now. Maybe one of you guys can help.
I want to create a Script of Import in FDMEE 11.1.2.3.500.17. The source file (separator: tab) contains a column with the following entries:
What I want to achieve at first is to import the figure after the first point. For example, hours - 00275. 3. 4.1 I want to import 3.
I wrote a script to import, based on an example of written script in FDMEE admin guide (page 273):
I assigned this script to the respective column in the Import Format:
Seems easy. But for some reason, it does not. The problem is: even the log file is not help, because it seems to be growing constantly when I want to open it (after becoming 30 MB I cancelled). By the way: without this script works import.
Any ideas? Help is very appreciated!
See you soon
Carmonte
I wasn't talking about the script file extension, as you say is irrelevant, your file name of the script was eGRCcISPA (without the extension) and your function called eGRCsISPA (in the body of the script). They were different and should be the same. They are the same today? Also when you say that this does not work, what do you mean?
(1) import runs successfully, but represented for that field values are not what you expect the rest of the script is running?
(2) the mistakes of import process when using that 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
-
Hello
I have a custom jython script to convert table data into a text file. This works for a table. But I tried to use lists and tables so that I can have several files of several tables. This script, by creating multiple files, retrieves only the data of the last file. All other files remain as 0 KB files with no data. I see here only data for CH, AC in the file is a 0 KB file. If I have the list with "AC" Member, then I see data for AC. Can someone let me know what I'm missing here in logic.
List = ['AC', 'CH']Conn = sql. DriverManager.getConnection (strJDBCURL, strUserName, strPassword)
for the list item [:]:Represented = fdmContext ["INBOXDIR"] + "/" + item + "export.txt"
SRC = open (represented, "w")
SqlString = conn.createStatement)sqlstmt = 'SΘlectionner the SOURCE, TARGET of TEST_' + point + 'EXPORT '.
result = sqlstring.executeQuery (sqlstmt)While (result. Next()):
SOURCE = result.getString ("SOURCE")
TARGET = result.getString ("TARGET")
Print > > src, SOURCE, TARGETCBC. Close()
Conn.Close)Hi, I skimmed the code last night and missed the second loop. I think that the problem actually comes from your indentention that is the while loop is not currently incorporated in the for loop runs but after the because the loop is complete, the code must be
List = ['AC', 'CH']
Conn = sql. DriverManager.getConnection (strJDBCURL, strUserName, strPassword)
for the list item [:]:Represented = fdmContext ["INBOXDIR"] + "/" + item + "export.txt"
SRC = open (represented, "w")
SqlString = conn.createStatement)sqlstmt = 'SΘlectionner the SOURCE, TARGET of TEST_' + point + 'EXPORT '.
result = sqlstring.executeQuery (sqlstmt)While (result. Next()):
SOURCE = result.getString ("SOURCE")
TARGET = result.getString ("TARGET")
print > src, SOURCE, TARGETCBC. Close()
Conn.Close)
Only try.
-
My load the import data were thrown a curve ball. I used to have a 1 or 2 digits in the card. If it's a digit, I simply added a zero at the beginning (i.e. FillL convert 1 01). But now I have a leader 4 digits and a hyphen. So instead of '1', I have 2500-1, instead of "12", I now 2500-12. I need to remove what is to the right of the dash and then add a zero not significant if it is not already 2 digits. Does anyone know the script that would achieve this?
Your help is very appreciated.
FA
Hello
You can create this jython script and assign import format:
def customFill (strField, strRecord):
return ('0' + strField.split("-") [1]) [-2:]
This function divides your strField using "-" as the delimiter, then him concatenate '0' with the second element ([1] in the table starts in position 0) and finally to take the last two characters [-2:]
If you have 1 number after the hyphen you will get 0 x. On the other hand, if you have already a 2-digit, you will get xx
Hope says.
-
FDMEE mapping <; white >; does not / Jython Script
Hi all
Has anyone got the < white > mapping work? I put it in my SIMILAR mapping and it does nothing. Any help would be appreciated.
As a solution, I tried to add an import script to my base file import format. I want it all empty fields in PKI to convert in [no PIC]. Keep logs process details (see below) gives me an error. He doesn't seem to like dealing with NULL values. Here is my script to import of Jython:
def OracleEBS_ICPNone (strField, strrecord):
If strfield is not nothing and len (strfield) > 0:
return "[ICP None]"
Another thing:
return strfield
Error log:
2014-06-03 14:57:18, 892 [AIF] DEBUG: 105039:EPMERPI - error expression evaluation: OracleEBS_ICPNone (", 725, 100151_C, 000, 16434308.16')
result: null
2014-06-03 14:57:18, ERROR 894 [AIF]: 105039:EPMERPI - 105042:EPMERPI - error evaluating script.
null
THX,
Mike
How are your values of source?
does not refer to NULL. This will work only if the value of your source has a blank space.
So if you have a map as
--> [no PIC] and your source is an empty string... it won't
It won't work if it has a white space (' ')
For you the script:
def OracleEBS_ICPNone (strField, strrecord):
If strfield is not nothing and len (strfield) > 0:
return "[ICP None]"
Another thing:
return strfield
Jython is case-sensitive: strField <> strfield
If you want to capture values empty source in PKI:
def OracleEBS_ICPNone (strField, strRecord):
# You can cut your source, remove the whitespace on the left/right and then check if the length is zero
If len (strField.strip () == 0:
return "[ICP None]"
Another thing:
return strField
-
I use fdmContext ['PERIODKEY'] to pull in the PeriodKey and she returned to 2013-11-18 (AAAA-MM-JJ), and I would like to change the format of 201311 (YYYYMM). Something there suggestions on how this can be accomplished using Jython?
Thanks in advance.
Try
import of java
print java.text.SimpleDateFormat("yyyyMM").format (java.util.Date ())
-
How to use a SELECT QUERY using fdmAPI.executeDML in the Jython Script FDMEE?
Hello
Is just the way we use DELETE and INSERT statement using fdmAPI.executeDML, possible to run a SELECT statement and get the result in the variables?
I want to refrain from using import java.sql and enter the connection information in a script. I would rather use SELECT directly if possible. I want to read the TDATASEG. DATAKEY column and use it for some custom in a custom table process
Thank you!
Try RS.next instead of RS. Next
-
FDMEE (pbcs) - grey pencil icon
Hi gurus FDMEE.
SEEP version: 11.1.2.3.608.54
I'm new to FDMEE and running on a question about the workflow-> load data mapping. I have a .csv file as my source. I'm trying to map the accounts dimension as a number such as 6100. However, I need to preface an 'A' for the target. Goal is do not use explicit and must map every single account. I want a global prefix 'A' added to all accounts.
On the data link load Mapping, I selects the account, and then click the tab "love." I add a line and have the following parameters:
Value of source: *.
Target value: #Script
At this point I should be able to click on the little icon of pencil in the 'Script' field to write my Jython. However, it is gray and allow me to click on it. I tried Mozilla Firefox, etc. of IE9.
Does anyone have any ideas or know if this is a known issue?
Appreciate the help I'm frustrated
Thank you
I don't think that FDMEE (SEEP) supports any form of script as it is very locked down.
-
Hello
Anyone know if FDMEE or previously FDM is able to connect and get data DB400 on AS400?
I did integrations with DB2 FDM and had no problem.
Open a Table Interface is a source for FDMEE. What you need to implement is the process of loading data in this table. The rest will be just as the standard workflow FDMEE.
To feed on the table, you can either fix ODI package (if you have knowledge of ODI) or create an event (BefImport) of Jython/VB script that will load the data from your source DB in Table IO.
I don't ' t think you will to character set issues that cannot be resolved.
Getting data from the db table is more directly forward to create flat files, but it depends on your needs of course.
-
Error: Import module XLRD in a custom script FDMEE
Hello Experts,
I'm trying to import a python "xlrd" module in a custom Script FDMEE. But he doesn't always lift error "No Module name xlrd".
I tried to import the module by changing the path sys:
Here is the code I tried:
===========================================================================================
import sys
"custModlePath = r'fdmContext ["INBOXDIR"] +"\\Excel_Sample\\xlrd""
sys. Path.Append (custModlePath)
import xlrd
path = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\."
pathout = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out."
Book = xlrd.open_workbook (path)
data_sheet = book.sheet_by_name ("Report")
#data_sheet = book.sheet_by_index (3)
start_row_count = 7
end_row_count = data_sheet.nrows
MyFile = open (fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out\\mapping.csv",'w")
#myfile = open('SG\OUT\mapping.txt','w')
all in start_row_count < end_row_count:
#print data_sheet.row_values (i)
lines = data_sheet.row_values (start_row_count)
for the line data_sheet.row_values (start_row_count):
MyFile.Write (STR (Line))
MyFile.Write(",")
MyFile.Write ("\n")
start_row_count = start_row_count + 1
MyFile.Close)
=============================================================================================
ERROR:
2016-01-27 01:18:11, 294 FATAL [AIF]: error in CommProcess.executeCustomScript
Traceback (most recent call changed):
File "< string >", line 191, in executeCustomScript
File '< string >", line 486, in executeCustomScript
Folder "< string >", line 528, in executeJythonScript
File "E:\FDMEE/data/scripts/custom/EXCEL_TO_CSV.py", line 6, < module >
import xlrd
ImportError: No module named xlrd
2016-01-27 01:18:11, 336 DEBUG [AIF]: the connection of fdmAPI was closed.
===========================================================================================
Appreciate your help!
Thank you
Ishti
Hello
I was able to get it working after some changes.
Version compatible with Jython 2.5.1 FDMEE xlrd is xlrd 0.7.4
Xlrd record is required to be placed inside the FDMEE server and the path is required to be updated in the script.
Below the script just in case someone needs it:
===============================================================================================
import sys
custModlePath = fdmContext ["INBOXDIR"] + "\\Excel_Sample" # path in which is placed the folder xlrd
sys. Path.Append (custModlePath)
import xlrd
path = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Mapping.xls" # path to the Source file
pathout = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out\\" # path to the .csv file
Book = xlrd.open_workbook (path)
data_sheet = book.sheet_by_name ("Report")
start_row_count = 7
end_row_count = data_sheet.nrows
MyFile = open (pathout + "mapping.csv", "w" ")
everything start_row_count<>
lines = data_sheet.row_values (start_row_count)
for the line data_sheet.row_values (start_row_count):
MyFile.Write (STR (Line))
MyFile.Write(",")
MyFile.Write ("\n")
start_row_count = start_row_count + 1
MyFile.Close)
=====================================================================================================
Thank you
Ishtique
-
Hi all
I am facing a problem loading the file from FDMEE to HFM (11.1.2.4 version). I am able to complete all the steps in the workbench. However, once the export step towers work bench, if I even get overlaps existing in the HFM's ".dat" file, I can see nothing. FDMEE journal indicates that the records were assigned the HFM. I copied the log file for the load less than. I checked the load adjustment allow, it is set to Yes. I have an Access administrator for FDMEE and administrator of access applications in HFM. Is there anything else I should check in order to load data. Appreciate any thoughts on this issue.
2016-01-11 11:29, 783 INFO [AIF]: process FDMEE: 77, log level: 4, log file: \\75612-AWA\fdmee1\Data\outbox\logs\SPDEV_77.log
2016-01-11 11:29, 783 INFO [AIF]: place: NtzGL (Partitionkey:3)
2016-01-11 11:29, 784 INFO [AIF]: name of the time: Jul-2015 (period key: 7/31/15 12:00 AM)
2016-01-11 11:29, 784 INFO [AIF]: name of the category: real (category key: 1)
2016-01-11 11:29, 785 [AIF] INFO: name of rule: NtzGL (rule ID:7)
2016-01-11 11:29:02, 097 [AIF] INFO: Version FDM: 11.1.2.4.100
2016-01-11 11:29:02, 097 [AIF] INFO: log the file encoding: UTF-8
2016-01-11 11:29:04, INFO 009 [AIF]: - START IMPORT STEP -
2016-01-11 11:29:04, 063 [AIF] INFO: - END IMPORT STEP -
2016-01-11 11:29:04, 117 [AIF] INFO: - EXPORT STEP START.
2016-01-11 11:29:04, 318 INFO [AIF]: file name: dummy.txt
2016-01-11 11:29:04, 336 [AIF] INFO:
Move the data for the period "Jul-2015".
2016-01-11 11:29:04, INFO 365 [AIF]: run the following script: D:\Oracle\Middleware\EPMSystem11R1/products/FinancialDataQuality/bin/HFM_EXPORT.py
2016-01-11 11:29:04, 668 INFO [AIF]: name of the Cluster: DEV3
2016-01-11 11:29:04, 975 INFO [AIF]: run the following script: D:\Oracle\Middleware\EPMSystem11R1/products/FinancialDataQuality/bin/HFM_LOAD.py
2016-01-11 11:29:05,084 INFO [AIF]: ************************************************************************************
2016-01-11 11:29:05, 084 [AIF] INFO: * HFM_LOAD.py started for LoadID: 77
2016-01-11 11:29:05,085 INFO [AIF]: ************************************************************************************
2016-01-11 11:29:05, 294 INFO [AIF]: name of the Cluster: DEV3
2016-01-11 11:29:05, INFO 438 [AIF]: connected to: SPDEV
2016-01-11 11:29:09, 509 INFO [AIF]: load data started: 11/01/2016 11:29:05.
2016-01-11 11:29:09, 509 INFO [AIF]: load data completed: 11/01/2016 11:29:05.
2016-01-11 11:29:09, 522 [AIF] INFO: loaded documents: 2
2016-01-11 11:29:11, 917 INFO [AIF]: load URL started: 11/01/2016 11:29:09.
2016-01-11 11:29:11, 917 INFO [AIF]: loading the URL FDMEE_URL
2016-01-11 11:29:11, 917 INFO [AIF]: URL for loading completed: 11/01/2016 11:29:09.
2016-01-11 11:29:11,941 INFO [AIF]: ************************************************************************************
2016-01-11 11:29:11, INFO 974 [AIF]: - END EXPORT STEP -
2016-01-11 11:29:12, INFO 030 [AIF]: run the following script: D:\Oracle\Middleware\EPMSystem11R1/products/FinancialDataQuality/bin/HFM_CONSOLIDATE.py
2016-01-11 11:29:12, 282 [AIF] INFO: name of the Cluster: DEV3
2016-01-11 11:29:12, 588 [AIF] INFO: end process FDMEE, process ID: 77
Kind regards
Nik
OK, I think you need to open a SR of Oracle.
It could be FDMEE/ODI does not HFM loading operations, may be a communication problem.
Can you confirm that if you had load manually the data up to the intersection through the Smart view and ran the FDMEE process data would be replaced?
Have you ever been able to load properly in this environment?
-
Hello
I use FDMEE 11.1.2.4 in the docs it reads...
page 283
13 step files data source based on files by copying them on inbox\batches\openbatch using a
of the following methods:
l rule data loading preset - use a predefined data rule that loads the data in function
Specific categories, let the data field create an Auto empty rule on the definition of lot
the screen and create loading data (see 'Definition data load rules to Extract Data' on the rule)
(page 161).
Next, create the file name to open in the following format batch:
FileID_RuleName_Period_LoadMethod. The file id is a free-form field that you can
to control the load order. The batch files load in alphabetical order by file name.
I created 2 load files
I've set up the batch
One might expect that the file a ~ TestToBIFHM ~ real ~ Jan 15 ~ RR.txt must run first... right?
Well... No...
2015-12-14 17:40:20, 655 [AIF] INFO: Jython Version: 2.5.1 (Release_2_5_1:6813, September 26 2009, 13:47:54)
[JRockit (R) Oracle (Oracle Corporation)]
2015-12-14 17:40:20, 655 INFO [AIF]: Java platform: java1.6.0_37
2015-12-14 17:40:20, 656 [AIF] INFO: log the file encoding: UTF-8
2015-12-14 17:40:20, 806 INFO [AIF]: a valid token has been recovered.
2015-12-14 17:40:25, 682 INFO [AIF]: beginning of the process, package ID: 88
2015-12-14 17:40:25, 683 INFO [AIF]: package name: BIHFM_OpenBatch
2015-12-14 17:40:25, 685 [AIF] INFO: open lot of execution: BIHFM_OpenBatch
2015-12-14 17:40:25, 687 [AIF] INFO: copy of Src Dir: \\Irc-gold124\fdmee/inbox/batches/openbatch/, Tgt Dir: \\Irc-gold124\fdmee/inbox/batches/openbatch/88
2015-12-14 17:40:25, 716 [AIF] INFO: open lot of performance for file: b ~ BIHFM ~ real ~ Jan 15 ~ RR.txt
2015-12-14 17:40:25, 717 INFO [AIF]: rule BIHFM_Actual of data already exists in the system. In using this.
2015-12-14 17:40:25, 774 INFO [AIF]: data rule name: BIHFM_Actual
2015-12-14 17:40:25, 774 INFO [AIF]: name of the start-up period: Jan-15
2015-12-14 17:40:25, 774 INFO [AIF]: name of the period of the end: Jan-15
2015-12-14 17:40:25, 775 INFO [AIF]: Import Mode: R
2015-12-14 17:40:25, 775 INFO [AIF]: Import Mode: REPLACE
2015-12-14 17:40:25, 778 INFO [AIF]: export Mode: R
2015-12-14 17:40:25, 778 INFO [AIF]: Export Mode: replace
2015-12-14 17:40:45, 828 [AIF] INFO: execution were made for file: b ~ BIHFM ~ real ~ Jan 15 ~ RR.txt
2015-12-14 17:40:45, 829 [AIF] INFO: open lot of performance for file: a ~ TestToBIFHM ~ real ~ Jan 15 ~ RR.txt
2015-12-14 17:40:45, 830 [AIF] INFO: rule TestToBIFHM_Actual of data already exists in the system. In using this.
2015-12-14 17:40:45, 887 NEWS [AIF]: data rule name: TestToBIFHM_Actual
2015-12-14 17:40:45, 888 INFO [AIF]: name of the start-up period: Jan-15
2015-12-14 17:40:45, 888 INFO [AIF]: name of the period of the end: Jan-15
2015-12-14 17:40:45, 889 INFO [AIF]: Import Mode: R
2015-12-14 17:40:45, 889 INFO [AIF]: Import Mode: REPLACE
2015-12-14 17:40:45, 890 INFO [AIF]: export Mode: R
2015-12-14 17:40:45, 891 INFO [AIF]: Export Mode: replace
2015-12-14 17:41:04, 998 [AIF] INFO: performance have been made to file: a ~ TestToBIFHM ~ real ~ Jan 15 ~ RR.txt
2015-12-14 17:41:05, 017 [AIF] INFO: mannequin
2015-12-14 17:41:05, 134 INFO [AIF]: end process FDMEE, process ID: 88
Has anyone else seen elsewhere? Am I missing something?
Thank you
Wayne
In response to the SR, we raised...
-
Custom Panel reversal in FDMEE
Hello
We currently have EBS as our data source when the data comes from the Laibility are positive and negative assets, revenues are negative and charges are positive.
This cause issues with the help of elim standard PKI as active - (-responsibility) is doubling instead of a net.
The company now want to reverse the signs on all except the assets.
It was pretty simple FDM, but I can't see an easy way to map the sign change based on the number of account in FDMEE, is it possible?
Hi Mike,.
You can use the function of sign of change in the loading of the mapping data in FDMEE to get the same behavior. You can see a small check box visible only to the account dimension in the mapping of data loading page.
Thank you
Bala
-
How to write the script in FDMEE below.
How to write the script in FDMEE below.
Script below is the FDM Script.How write in FDMEE.
If (varValues (14) '113101' =) OR (varValues (14) '113201' =) OR (varValues (14) '113301' =) OR (varValues (14) = "252111") OR (varValues (14) '156101' =) then
Result = "21_asd."
Please help me on this issue.
Kind regards
Satheesh, S
If you want to determine the id of the target account your opening assignment statement must be:
Account = fdmRow.getString ("ACCOUNTX")
As if - elif-instructions else keep lowercase stream operators. If you continue a command on multiple lines, then place parentheses is
If (account == "113101") or (account == "113201") or (account == "113301") or (account == "113401") or (account == "113501") or (account == "113601") or (account == "215101") or (account == "215201") or (account == "215301") or (account == "215401") or (account == "215501") or (account == "215601") or (account == "252111") or (account == "156101"):
fdmResult = "21_ADNIP".
should be (also get rid of the unnecessary parentheses)
If (account is "113101" account is "113201" or account is '113301' account is "113401" or account is "113501" or account is "113601" or account is "215101" or account is "215201" or account is "215301" or account is "215401" or account is "215501" or account is "215601" or account is "252111" or account is "156101"):
fdmResult = "21_ADNIP".
Maybe you are looking for
-
I have connected a retina 12 '' Macbook to a Thunderbolt display via two adapters, and no video is coming through. Here is what I use: 1 USB - C for HDMI: (Apple USB - C to HDMI adapter) 2 HDMI to Thunderbolt (Monoprice adapter) Any ideas what's happ
-
Firmware of the phone doesn't have a 7.1 to 10.5
experts, What happens in this scenario below: -When we improve form UCM 7.1 to 10.5, but current UCM 7.1 phone firmware is too old to get the firmware of the phone of 10.5 UCM by default the phone just will record very well to the AAU 10.5 with their
-
How can I make yahoo my default email using windows 7
Does anyone know if this problem has been fixed yet? The last response was dated December 2009 and I wanted to know if Yahoo has resolved this. I still can't get yahoo to be my email by default when I try to send an email through another Web site. Th
-
HOW CAN I GET RID OF THIS STUPID POP-UP?
whenever I open the windows mail, a pop-up window appears asking me to sign in or register with my hotmail / livemail account... I'm sick, I do not want to register my hotmail account in my list of accounts windows mail... How can I permanently get r
-
Date backwards or forward basic restoration after issued resetlogs
Please find my contact details of the environment,OS: Windows xpVERSION: Oracle 11.2.0.1.0Server: TestPlease find my scenario,Date: June 11I created a table named table_level0 and then take 0 backup surveyDate: June 12I created a table named L1_JUNE1