Automating FDM Integration Script in Task Manager
Hi everyone
I have created an Integration Script that copies data from a SQL table to FDM, and is now attempting to automate a daily run in Task Manager.
To do this it seems I need to create a Custom Script to run the following Integration Script:
Function LedgerTrans(strLoc, lngCatKey, dblPerKey, strWorkTableName) I am unable to figure out what to write in the Custom Script to trigger the Integration Script. Can anyone explain or give a sample?
Best regards
Frederik
You don't need a custom script, you can just use the batch process to trigger the import for the POV. You would create a standard batch script using the Batch GUI in the workbench (Tools > Batch processing) and then put empty source files in the OpenBatch folder with the POV for the file name to trigger the import script for the POV.
Similar Messages
-
Need limit data selection to GL_Period in FDM integration script
Greetings!
I am trying to modify an FDM Integration script to limit the data selection to a specific GL period name. The FDM function passes 4 parameters of which one is dblPerKey. My understanding is that this parameter contains the end-date of the requested GL Period and thatthe element is a datetime data type. I have tried several incantations of VB Script to create a period name in MON-YY format and all seem to fail with no data returned. What I am not understanding is what is the content of dblPerKey and can I use it to derive a GL period name? If not, I am open to any and all suggestions.
My deepest appreciation and thanks for any and all suggestions you may send my way.
TomHi Tom
If you haven't already I'd try posting this in the FDM forum as I think you are more likely to get an answer there.
Performance Management Applications > Financial Data Management
Regards
Stuart -
FDM integration script for multiple locations
Hi,
I have a slight problem with FDM integration script (SQL integration).
From what I've understood and tested within one FDM-application (tablespace) I'm not able to have multiple integration scripts. This because the integration script needs to be named SQLIntegration.uss, otherwise there will be an error.
I have multiple locations within one FDM-application where I would like to use an integration script. Due to the above mentioned naming "bug", I need to include all my locations' integration information in one script. As imagined this is not a solution that easy to maintain or easy to read.
- Is there a workaround for the name-bug?
- Can I call a function within the main function? I tried without any success, but maybe you would have a solution.
Any input would be beneficialuser10757003 wrote:
Not sure what you mean when you say you rename the file and you get the error.
Is this a new integration script you have created and cut / pasted the existing integration script contents? If so, did you remember to change the SQLINTEGRATION = TRUE statement at the end of the script to the new integration script name? this might be the reason why you get the 'Import Successful' popup and the Import error dropdown.What I mean is that scripts are name xxx.uss abc.uss. This should be fairly clear.
Now I have the SQLIntegration.uss, if I change the name of the script to SQLIntegration1.uss or any name. The script will not work. And I receive one error and one success message as stated above.
Note: I'm not changing the content or anything else inside the script. -
What is CalcAcctType in FDM Integration Script
Hi All
What is CalcAcctType in FDM Integration Script
Why we need to set number 9 ?
Example:
rsAppend.Fields("CalcAcctType") = 9
regards
SarillaThe value "9" indicates it is input data. the folllowing is taken form the API guide, which i think it (from memory) relates to:
enmAcctType
upLogicNoExport = -1
upLogicNoExport = -1
upLogicExport = 5
upLogicExport = 5
upbase = 9
upbase = 9
Edited by: user10757003 on 16-Nov-2012 02:57 -
Hi Guru's
When i want to pull the data from SQL table using below integration Script from admin guide, its showing <font color="red">-2147217865 Data access Error at line15 (Line 15:Set rsAppend = DW.DataAccess.farsTable(strWorkTableName) </font>
I tried with both web client and workbench. i got same error message.
(FYI: UDL test connection is succeeded)
Please help me.
SQL server name: DEV
Database name: FDM
Sql Table name: SDR
SDR Table contains Below Data Example:
Entity Account ICP Custom1 Custom2 Custom3 Custom4 Amount
India, Extsales, [Icp None], Nocc, No Cust, None, None, 50000
India, rent, [Icp None], Nocc, No Cust, None, None, 20000
Intigration Script:
Function SQLIntegration(strLoc, lngCatKey, dblPerKey, strWorkTableName)
'Hyperion FDM Integration Import Script:
'Created By: admin
'Date Created: 04/19/2012 2:18:39 PM
'Purpose: Pull data directly from SQL DB
Dim objSS 'ADODB.Connection
Dim strSQL 'SQL String
Dim rs 'Recordset
Dim rsAppend 'tTB table append rs Object
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
'Connect To SQL Server database
cnss.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=FDM;Data Source=DEV;"
'Create query String
strSQL = "Select * "
strSQL = strSQL & "FROM SDR "
'Get data
rs.Open strSQL, cnSS
'Check For data
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records To load!"
Exit Function
End If
'Loop through records And append To tTB table In location’s DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey
rsAppend.Fields("CatKey") = RES.PlngCatKey
rsAppend.Fields("PeriodKey") = RES.PdtePerKey
rsAppend.Fields("DataView") = "YTD"
rsAppend.Fields("CalcAcctType") = 9
rsAppend.Fields("Amount") = rs.fields("dblAmt").Value
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
rsAppend.Fields("Account") = rs.fields("txtAcct").Value
rsAppend.Fields("Entity") = rs.fields("txtCenter").Value
rsAppend.Update
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 6
RES.PstrActionValue = "SQL Import successful!"
'Assign Return value
SQLIntegration = True
End Function
<font color="red"> BELOW IS THE ERROR LOG </font>
Error Log:
** Begin FDM Runtime Error Log Entry [2012-07-16-01:57:58] **
ERROR:
Code............................................. -2147217865
Description...................................... Table does not exist.
Procedure........................................ clsDataAccess.farsTable
Component........................................ upsWDataWindowDM
Version.......................................... 1111
Thread........................................... 8252
IDENTIFICATION:
User............................................. admin
Computer Name....................................xxxx
App Name......................................... xxxxx
Client App....................................... WorkBench
CONNECTION:
Provider......................................... SQLOLEDB
Data Server...................................... xxxxx
Database Name.................................... xxxxx
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... India
Location ID...................................... 751
Location Seg..................................... 4
Category......................................... actual
Category ID...................................... 13
Period........................................... Jan - 2012
Period ID........................................ 1/31/2012
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
regards
SarillaHi Sarilla
I assume you ran the script from the editor.
You HAVE TO run it from the normal FDM workflow "Import".
Otherwise "Data access error"
Hope this helps
BR -
Minimum How many dimension required for FDM integration Script
Hi Gurus
I have only 2 dimensions in my SQL Table name dbo.ABC (Example: 1.Entity 2.Account and amount(data value)
Example:
USA, SALES, 50000
(Including value its total 3 dimensions)
How to export this data to Target HFM Application.
Integration Script got success when i click on validation it is shows only 2 dimension 1.Account 2.Entity. i have mapped correctly. but validation screen not showing anything. i got gold fish for validation button and Export is also showing success and got goldfish. but no data is exported to HFM application.
in FDM outbox its created a file which is containing only *!data* text. There is no record in this file.
I want to load the data with rest of the dimensions with [None] member combination as i don't have the additional dimensions in my source file.
Minimum how many dimension required to export the data from FDM to HFM?
regards
TaruniHi,
I came to know, at least one member from the source file should be there in the integration script then only we can assign at least [None] member or any member for the target dimensions.
My source file having only 3 dimensions ( USA,Sales,Amount)
1.USA,2.Sales,3.$50000
Import Screen Dimensions:
1.Source-FM-Entity
2.Source-FDM-Account
3.Account Description
4.SourceICP
5.SourceCustom1
6.SourceCustom2
7.SourceCustom3
8.SourceCustom4
9.Amount
In the integration script its taking the values as
Source-FM-Entity(0)
Source-FDM-Account(1)
Account Description
SourceICP
SourceCustom1
SourceCustom2
SourceCustom3
SourceCustom4
Amount(2)
above it shows only 0,1,2 numbers are assigned to source dimensions.
As my source file having only 3 Dimension so it is taking only 3 dimensions shown below. rest of the dimensions it is not showing in the import screen.
*0.Source-FM-Entity,1.Source-FDM-Account,2.Amount*
If i assign any values(3-9) to next dimensions or if I left blank rs.fields("txtAcctDes") with its showing below error messages:
Error: An error occurred importing the file.
Detail: Item cannot be found in the collection corresponding to the requested name or ordinal.
At line: (39 and 42-46)
So i have assigned Source-FDM-Account Number<font color="Blue">(rs.fields(1) </font>Value to rest of the dimensions in my integration script.
<font color="Blue">rsAppend.Fields("Account") = rs.fields(1).Value</font>
rsAppend.Fields("Desc1") = rs.fields(1).Value
rsAppend.Fields("ICP") = rs.fields(1).Value
rsAppend.Fields("UD1") = rs.fields(1).Value
rsAppend.Fields("UD2") = rs.fields(1).Value
rsAppend.Fields("UD3") = rs.fields(1).Value
rsAppend.Fields("UD4") = rs.fields(1).Value
Now am able to import the data into import screen, And i found all the above member names as Sales as i assigned Account dimension number(1) to these members temporarily to succeed the import process . Then i have mapped to Target dimensions with [None] member combination as these members are not in original source file. Then rest of the process Export and Check is done perfectly.
*<font color="red">1.Am i right?? Please suggest me the correct process?</font>*
*<font color="red">2.Can we use blank values in Integration Script as mentioned below??</font>*
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
rsAppend.Fields("Account") = rs.fields("txtAcct").Value
rsAppend.Fields("Entity") = rs.fields("txtCenter").Value
*1.Added value*
Example: rsAppend.Fields("Desc1") = rs.fields("1").Value
*2.Blank Value*
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
*<font color="red">3.As per my observation system is not accepting blank values in integration script. Please correct me??</font>*
Here is my Integration Script
1 Function Integration(strLoc, lngCatKey, dblPerKey, strWorkTableName)
2 '------------------------------------------------------------------
3 'Oracle Hyperion FDM IMPORT Integration Script:
4 Created By: admin
5 Date Created: 2012-11-20-07:55:20
6 'Purpose:
7 '------------------------------------------------------------------
8 Dim objSS 'ADODB.Connection
9 Dim strSQL 'SQL String
10 Dim rs 'Recordset
11 Dim rsAppend 'tTB table append rs Object
12 'Initialize objects
13 Set cnSS = CreateObject("ADODB.Connection")
14 Set rs = CreateObject("ADODB.Recordset")
15 Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
16 'Connect To SQL Server database
17 cnss.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=TEST;Data Source=localhost;"
18 strSQL = "Select * "
19 strSQL = strSQL & "FROM ABC"
20 'Get data
21 rs.Open strSQL, cnSS
22 'Check For data
23 If rs.bof And rs.eof Then
24 RES.PlngActionType = 2
25 RES.PstrActionValue = "No Records To load!"
26 FirstImportVB = False ' Assign return value of function
27 Exit Function
28 End If
29 'Loop through records And append To tTB table In location’s DB
30 If Not rs.bof And Not rs.eof Then
31 Do While Not rs.eof
32 rsAppend.AddNew
33 rsAppend.Fields("PartitionKey") = RES.PlngLocKey
34 rsAppend.Fields("catKey") = lngCatKey
35 rsAppend.Fields("PeriodKey") =dblPerKey
36 rsAppend.Fields("DataView") = "YTD"
37 rsAppend.Fields("CalcAcctType") = 9
38 rsAppend.Fields("Amount") = rs.fields(2).Value
39 rsAppend.Fields("Desc1") = rs.fields(1).Value
40 rsAppend.Fields("Account") = rs.fields(1).Value
41 rsAppend.Fields("Entity") = rs.fields(0).Value
42 rsAppend.Fields("ICP") = rs.fields(1).Value
43 rsAppend.Fields("UD1") = rs.fields(1).Value
44 rsAppend.Fields("UD2") = rs.fields(1).Value
45 rsAppend.Fields("UD3") = rs.fields(1).Value
46 rsAppend.Fields("UD4") = rs.fields(1).Value
47 rsAppend.Update
48 rs.movenext
49 Loop
50 End If
51 'Records loaded
52 RES.PlngActionType = 2
53 RES.PstrActionValue = "SQL Import successful!"
54 'Assign Return value
55 Integration = True
56 End Function
Regards
Taruni -
FDM Integration script - Selecting the Period from SQL based on FDM PoV
Hi,
I want query SQL Period Column for the month based on the FDM PoV, can or has anyone a sample script of how this is can be achieved?
My script when run comes back with "No records to load" - msg in my script. Let me know if you can spot anything obvious that's causing this in my script.
SQL table
EVENT YEAR Period Entity Ccy Acc ICP Value Product
Actual
FY14
May
HME_AT
EUR
ws_inp
NULL
39
HRX537C2VKEA
Actual
FY14
May
HME_AT
EUR
ws_inp
NULL
3
HS2411Z1E
Dim objSS 'ADODB.Connection
Dim strSQL 'SQL string
Dim strSelectPer 'FDM Period
Dim strCurFDMYear'FDM Year
Dim rs 'SQL Recordset
Dim rsAppend 'FDM tTB table append rs object
Dim recordCount
Dim sWhere
Dim sSelect
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
'Get Current POV Period And Year And determine HFM Select Year
strSelectPer = Left((RES.PstrPer), 3)
strCurFDMYear = Right(RES.PstrPer, 4)
Select Case UCase(strSelectPer)
Case "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"
strSelectYear = strCurFDMYear + 1
Case "JAN", "FEB", "MAR"
strSelectYear = strCurFDMYear
End Select
'Watch with this as it can cause looping
On Error Resume Next
Err.clear
'Connect to SQL database
'cnSS.Open "Driver=SQL Server;Server=EHEINTRADCG\EHEINTRADCG;Database=dw_foundation;UID=hypdb"
cnSS.Open "Driver=SQL Server;Server=EHEINTRADCG\EHEINTRADCG;Database=ODI_WORK_MARS;UID=hypdb"
'Connect to SQL Server database
cnSS.CommandTimeout = 1200
'Keep the error message handling in for testing but will probably need to write
'to a log if running in an overnight batch
'Error Handling
If Err.Number <> 0 Then
' An exception occurred
RES.PlngActionType = 2
RES.PstrActionValue = Err.Description & Chr(10) & "Unable to connect to SQL Data Source"
Err.clear
Set cnSS = Nothing
FinAllLocs_Conv = False
Exit Function
End If
'Create query String
strSQL = strSQL & "From ODI_WORK_MARS.dbo.TMP_HFM_DATA_EXTRACT_TIN1 "
strSQL = sWhere & " And YearID = '" & strSelectYear & "' And PeriodID = '" & strSelectPer & "'"
'Get data
rs.Open strSQL, cnSS
' Check For data
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records to load!"
Exit Function
End If
' RecordCount = 0
'Loop through records and append to FDM tTB table in location's DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
'Create the record
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey ' Location ID
rsAppend.Fields("CatKey") = RES.PlngCatKey 'Current Category ID
rsAppend.Fields("PeriodKey") = RES.PdtePerKey 'Current Period ID
rsAppend.Fields("DataView") = "YTD" 'Data View ID
rsAppend.Fields("CalcAcctType") = 9 'Input data indicator
rsAppend.Fields("Entity") = rs.fields("Entity").Value ' Entity/Genpo ID
rsAppend.Fields("Account")= rs.fields("Account").Value 'Account ID
rsAppend.Fields("ICP") = rs.fields("Inter_Company_Entity_HFM").Value ' Inter-Co/Destination
rsAppend.Fields("Amount") = rs.fields("Value").Value ' Data Value ID
rsAppend.Update
RecordCount = Recordcount + 1
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 2
RES.PstrActionValue = "SQL Import successful! " & RecordCount
'Assign Return value
SAP_HFM = True
End FunctionHi,
the easiest way to check it is to redirect your SQL query to text file and then execute in a SQL tool.
You should write the value of strSQL (which actually seems to have missing the SELECT clause)
In any case, your SQL statement seems to be incomplete:
strSQL = strSQL & "From ODI_WORK_MARS.dbo.TMP_HFM_DATA_EXTRACT_TIN1 "
strSQL = sWhere & " And YearID = '" & strSelectYear & "' And PeriodID = '" & strSelectPer & "'"
- You have not initialized strSQL with SELECT clause (maybe sSelect?)
- You have not initialized sWhere with WHERE clause
In addition to this, your source year is in FYYY format while you are taking year from POV as YYYY.
(...And YearID = 2014 while in your table you have FY14)
After you check this, get the SQL statement, review it, and try to launch against your source DB in a SQL tool.
Regards -
Multiple Columns in Integration Script
Hi All
I am looking at data integration from R12 to HFM, my client has decided not to use ERPi and instead is opting for custom built processes culminating in an FDM integration script to pull data from an ODI staging table / view (please don't comment on that bit I have tried to advise them!)
My issue is that when loading their TB data they want to do so in both entered and functional currency (members on the Custom4 dimension in HFM). What I am not sure about and would like some advice on is whether or not it is possible to have a multi-load style integration script with two data columns as I would be able to for file imports or whether I am limited to only 1 data column?
If limited I assume I can amend my integration script to loop through the recordset twice and pick up different data columns each time to create the second record?
Any help will be greatly appreciated :-)
Regards
Stui know your request is old but you can use the pivot unpivot function to transpose your multiple columns into lines in a temporary table. I do that for debit/credit/balance situations :-)
-
HI All,
Can any one help me ? I need to trigger a Import Script ( for data load) thru FDM Task Manager . Is it possible ?What you need to do first of all is look at the batch reports. you need to go into the web client and select Analysis / Reports and then choose Batch Reports form the pull-down. The first report will identify if the files name was correct and give the batch number generated by FDM. the second and third may aso indicate the error if the file name was ok.
Another thing to do is to go into the location / POV in the web client and see if the data was imported. If not, does the import integration script run ok if you process it via the import funtion on-line?
A further option is to place the empty file in the openbatch folder and then execute the batch via the "Batch Processing" option in workbench. This might indicate how far the batch gets before failing. -
"Import Failed" when trying to run a import (Integration) script from FDM
Backgroud about the Issue : My source system for data is Oracle Orion and the Destination is HFM.Trying to import data fom orion to HFM through FDM via ODBC connectivity.
Modified the "Integration Script Example" in fdm_admin guide and with this i am able to import data from the Orion to the FDM staging table "tDataSegX" however i am not abel to see any data in the FDM (Import Module) and thats when i get this error "Import Failed".
Posisble casue according to my knowledge : My Import script only includes code to 1.Connect to ODBC data source 2. copies all the values from the Source table to the staging table.
I am not sure if i am missing some attributes in the script ??!!
can some one help me in checking if my imoport scritp is correct ??!!!
Here is my script
Function Import_int(strLoc, lngCatKey, dblPerKey, strWorkTableName)
Dim objSS 'ADODB.Connection
Dim strOra 'Ora string
Dim rs ' As New ADODB.Recordset
Dim rsAppend 'tTB table append rs object
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTableAppend("TDATASEG7")
Dim strconn
strconn="Provider=msdaora;Data Source=<<Data Source Name>>;User Id=<<Username>>;Password=<<Password>>;"
cnSS.open strConn
strOra = "Select * "
strOra = strOra & "FROM <<Oracle View>>"
'Get data
rs.Open strOra, cnSS
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records to load!"
Exit Function
End If
'Loop through records and append to tTB table in location's DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey
rsAppend.Fields("CatKey") = RES.PlngCatKey
rsAppend.Fields("PeriodKey") = RES.PdtePerKey
rsAppend.Fields("DataView") = "YTD"
rsAppend.Fields("CalcAcctType") = 9
'write conditions to eliminate null
rsAppend.Fields("Amount") = rs.fields("YTD").Value
rsAppend.Fields("Desc1") = test 'rs.fields("txtAcctDes").Value
rsAppend.Fields("Account") = rs.fields("MAIN_AC_CODE").Value
rsAppend.Fields("Entity") = rs.fields("COMPANY_CODE").Value
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 6
RES.PstrActionValue = "ODBC Import successful!"
'Assign Return value
SQLIntegration = True
rs.close
End FunctionHI,
I first changed the table name to "strWorkTableName" and tried executing only the script from the Workbench client and got error as bellow
Financial Data Management Workbench
-2147467259 - Data access error.
At Line: 20
OK
For some reason i am not ok with running the code in the workbench client (even for checking the syntax) because for the reason that i am not sure if all the parameter required by the funciton will be passed by donig just "Run script."So even with this error in the Work bench client i proceded to the Workflow module in the web interface and run the import and here is what i have now.
Error: An error occurred importing the file.
Detail: Invalid procedure call or argument
here is the error message from the "View Erro Log"
ERROR:
Code............................................. 5
Description...................................... Invalid procedure call or argument
Procedure........................................ clsImpProcessMgr.fExecuteImpScript
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 15676
IDENTIFICATION:
User............................................. admin
Computer Name.................................... <<ComputerName>>
App Name......................................... <<ApplicationName>>
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... HYPTDB
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... ORION
Location ID...................................... 750
Location Seg..................................... 4
Category......................................... WLCAT
Category ID...................................... 12
Period........................................... Feb - 2011
Period ID........................................ 2/28/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2011-03-21 14:43:42] **
ERROR:
Code............................................. 5
Description...................................... Invalid procedure call or argument
Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 15676
IDENTIFICATION:
User............................................. admin
Computer Name.................................... <<ComputerName>>
App Name......................................... <<ApplicationName>>
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... HYPTDB
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... ORION
Location ID...................................... 750
Location Seg..................................... 4
Category......................................... WLCAT
Category ID...................................... 12
Period........................................... Feb - 2011
Period ID........................................ 2/28/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2011-03-21 14:44:05] **
ERROR:
Code............................................. 70
Description...................................... Permission denied
Procedure........................................ clsArchiveMgr.fArchiveSupercededDelete
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 7180
IDENTIFICATION:
User............................................. admin
Computer Name.................................... <<ComputerName>>
App Name......................................... <<ApplicationName>>
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... HYPTDB
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... SAMPLE
Location ID...................................... 748
Location Seg..................................... 2
Category......................................... WLCAT
Category ID...................................... 12
Period........................................... Feb - 2011
Period ID........................................ 2/28/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2011-03-21 14:44:05] **
ERROR:
Code............................................. 70
Description...................................... Permission denied
Procedure........................................ clsArchiveMgr.fArchiveSupercededFlag
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 7180
IDENTIFICATION:
User............................................. admin
Computer Name.................................... <<ComputerName>>
App Name......................................... <<ApplicationName>>
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... HYPTDB
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... SAMPLE
Location ID...................................... 748
Location Seg..................................... 2
Category......................................... WLCAT
Category ID...................................... 12
Period........................................... Feb - 2011
Period ID........................................ 2/28/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2011-03-21 14:44:05] **
ERROR:
Code............................................. 70
Description...................................... Permission denied
Procedure........................................ clsImpProcessMgr.fClearData
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 7180
IDENTIFICATION:
User............................................. admin
Computer Name.................................... <<ComputerName>>
App Name......................................... <<ApplicationName>>
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... HYPTDB
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... SAMPLE
Location ID...................................... 748
Location Seg..................................... 2
Category......................................... WLCAT
Category ID...................................... 12
Period........................................... Feb - 2011
Period ID........................................ 2/28/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2011-03-21 14:44:05] **
ERROR:
Code............................................. 70
Description...................................... Permission denied
Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 7180
IDENTIFICATION:
User............................................. admin
Computer Name.................................... <<ComputerName>>
App Name......................................... <<ApplicationName>>
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... HYPTDB
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... SAMPLE
Location ID...................................... 748
Location Seg..................................... 2
Category......................................... WLCAT
Category ID...................................... 12
Period........................................... Feb - 2011
Period ID........................................ 2/28/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False -
Hi,
I am trying to clear the month data using FDM batch script in HFM application.
Manually I am able to RUN the script. but its failing when I am trying to schedule the script by using the FDM task manager.
Please let me know is there any setting I need to do other than schedule procedure.
Thanks,Is the e-mail send in an event script or a custom script. I had issues where the custom script would work, but the event script would not ( i think it may have been because the custom script runs under the FDM user id whilst the event script runs under the windows service id. (Might be wrong, but i think that was the issue)
-
FDM - Integration IMPORT script failed
Hi,
We are on 11.1.2.1.
I am trying to create a import integration script which i took from the FDM admin guide...and i am trying to pull data from Oracle table...
But i am getting error as "Data access error" and its in the below line when i try to execute the code form the workbench...but when i use the import button in the web its importing....*i beleive its somethign related to the STRWORKTABLENAME and somewhere i read that i need to declare the function FARSTABLE*...but i dont know how as i am pretty novice to that....can you please help me....
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
also when i checked the error log i saw
*** Begin FDM Runtime Error Log Entry [2012-07-03 07:06:27] ***
ERROR:
Code............................................. -2147467259
Description...................................... ORA-00903: invalid table name
Procedure........................................ clsDataAccess.farsTableAppend
Component........................................ upsWDataWindowDM
Version.......................................... 1112
Thread........................................... 20228
Below is the complete code i am using
Function SI_ActualLoad(strLoc, lngCatKey, dblPerKey, strWorkTableNam)*
*+'------------------------------------------------------------------+*
+'Oracle Hyperion FDM IMPORT Integration Script:+
+'+
+'Created By: admin+
+'Date Created: 2012-06-01 01:19:02+
+'strWorkTableName+
+'Purpose:+
+'strWorkTableName+
*+'------------------------------------------------------------------+*
Dim cnSS 'ADO connection Object*
Dim strSQL 'SQL String*
Dim rs 'Source system recordset*
Dim rsAppend 'Hyperion FDM recordset*
Dim monthvar*
+'Initialize ADO objects+
Set cnSS = CreateObject("ADODB.Connection")*
Set rs = CreateObject("ADODB.Recordset")*
monthvar=Month(Date)*
+'Open Hyperion FDM work table recordset For appending+
+'Set rsappend = DW.DataAccess.farsTableAppend(strWorkTableName)+
+'Connect To Oracle database (our data source)+
Dim strConn*
strConn="Provider=ORAOLEDB.ORACLE.1;Data Source=EMDDS392:1521/DEVDBEMD;Database=DEVDBEMD;User id=xxxxxxx;Password=xxxxx"*
cnss.open strConn*
+'Create source query String+
strSQL = "Select * "*
+'strSQL = strSQL & "FROM STG_SAP_ACTUALS WHERE ACCOUNT NOT LIKE 'NA'"+
strSQL = strSQL & "from EGETLDB.STG_SAP_ACTUALS where period =SUBSTR(TO_CHAR(SYSDATE-90,'MONTH'),1,5)"*
+'Open source recordset+
rs.Open strSQL, cnSS*
+'Check For data In source system+
If rs.bof And rs.eof Then*
+'Give Error message+
RES.PlngActionType = 2*
RES.PstrActionValue = "No records To load!"*
+'Assign Return value of Function+
SI_ActualLoad = False ' Assign return value of function*
Exit Function*
End If*
+'Loop through source records In database And append To+
+'Hyperion FDM work table+
If Not rs.bof And Not rs.eof Then*
Do While Not rs.eof*
rsAppend.AddNew*
rsAppend.Fields("PartitionKey") = RES.PlngLocKey*
rsAppend.Fields("CatKey") = RES.lngCatKey*
rsAppend.Fields("PeriodKey") = RES.dblPerKey*
rsAppend.Fields("DataView") = "YTD"*
rsAppend.Fields("CalcAcctType") = 9*
rsAppend.Fields("Amount") = rs.fields("GROUPCURRENCY").Value*
rsAppend.Fields("Account") =UCase(rs.fields("ACCOUNT").Value)*
rsAppend.Fields("Entity") = UCase(rs.fields("ENTITY").Value)*
rsAppend.Fields("UD1") = UCase(rs.fields("SCENARIO").Value)*
rsAppend.Fields("UD2") = rs.fields("VERSION").Value*
rsAppend.Fields("UD3") = rs.fields("CURRENCY").Value*
rsAppend.Fields("UD4") = rs.fields("TRANS_CURRENCY").Value*
rsAppend.Fields("UD5") = rs.fields("ZONE").Value*
rsAppend.Fields("UD6") = rs.fields("CATEGORY").Value*
rsAppend.Fields("UD7") = rs.fields("SCHEDULE").Value*
rsAppend.Fields("UD8") =UCase(rs.fields("DEPT_PRJCTS").Value)*
rsAppend.Fields("UD9") =rs.fields("WBSELEMENT").Value*
rsAppend.Fields("UD10") = rs.fields("DOC_DETAIL").Value*
rsAppend.Fields("UD11") = rs.fields("BUSINESS_TRANSACTION").Value*
rsAppend.Fields("UD12") = rs.fields("VENDOR_NAME").Value*
rsAppend.Fields("UD13") =rs.fields("RECOVERYINDICATOR").Value*
rsAppend.Fields("UD14") = rs.fields("TRANSAMOUNT").Value*
rsAppend.Fields("UD15") = rs.fields("GROUPCURRENCY").Value*
rsAppend.Fields("UD16") = rs.fields("SEGMENTNO").Value*
rsAppend.Fields("UD17") = rs.fields("PARTNEROBJECT").Value*
rsAppend.Fields("UD18") =rs.fields("PO").Value*
rsAppend.Fields("UD19") = rs.fields("QUANTITY_UOM").Value*
rsAppend.Fields("UD20") = rs.fields("DESCRIPTION").Value*
rsAppend.Fields("DESC1") = rs.fields("ACCOUNT_DESCRIPTION").Value*
rsAppend.Update*
rs.movenext*
Loop*
End If*
+'Give success message+
RES.PlngActionType = 6*
RES.PstrActionValue = "SQL Import successful!"*
+'Assign Return value+
SI_ActualLoad = True*
End Function*Per my answer on Network 54 you cannot test the script interactively in FDQM workbench. You must execute the integration script as part of the normal data load process.
Per the FDM Admin guide: "Integration scripts can be run only by selecting Script from the File Type column of the Import Group grid (top grid) of the Import Formats screen".
As I mentioned in my Network 54 post you can test the pure vbscript portions (without the FDQM specifics) to confirm that is working properly then add it to the integration script which will only run as part of a normal file import process.
Regards,
John A. Booth
http://www.metavero.com -
Issue with FDM Import Integration script
Hi,
I need to pull records from Oracle DB and load in FDM. have created Import Integration script for this. But,I reciev 'Data access error' when I execute the script.
The line of error is Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)+ .When I review log, I see 'strWorkTableName' is Invalid table name.
ERROR:
Code............................................. -2147467259
Description...................................... ORA-00903: invalid table name
Procedure........................................ clsDataAccess.farsTable
Component........................................ upsWDataWindowDM
Below is the script:*
Dim cnSS 'ADODB.Connection
Dim strSQL 'SQL string
Dim rs 'Recordset
Dim rsAppend 'tTB table append rs object
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
'Connect to Oracle database
cnss.open "Provider=OraOLEDB.Oracle.1;Data Source= FDMDB;Database= FDMDB;User ID= FDM;Password= xxxx"
'Create query string
strSQL = "Select ACCOUNT,ENTITY,AMOUNT FROM BALANCES"
'Get data
rs.Open strSQL, cnSS
'Check for data
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records to load!"
Exit Function
End If
'Loop through records and append to tTB table in location’s DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey
rsAppend.Fields("CatKey") = RES.PlngCatKey
rsAppend.Fields("PeriodKey") = RES.PdtePerKey
rsAppend.Fields("DataView") = "YTD"
rsAppend.Fields("CalcAcctType") = 9
rsAppend.Fields("Account") = rs.fields("Account").Value
rsAppend.Fields("Entity") = rs.fields("Entity").Value
rsAppend.Fields("Amount") = rs.fields("Amount").Value
rsAppend.Update
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 6
RES.PstrActionValue = "Import successful!"
'Assign Return value
SQLIntegration = True
End Function
===========================
Also, Is the below string correct to connect to Oracle DB:
cnss.open "Provider=OraOLEDB.Oracle.1;Data Source= FDMDB;Database= FDMDB;User ID= FDM;Password= xxxx"+
Thanks in advance
Edited by: 995155 on Mar 20, 2013 12:45 PMI am assuming you originally tried to run the script in workbench. for these type of scripts this is not possible as you get the error you highlighted.
If it ran successfully (albeit without pulling any data,) then it might just be the SQL string that is incorrect.
What i would try is:
1. Add some error handling after the connection to the DB and display the error if it occurs
2. display the SQL string you are using to make the Selection on, to ensure the format is ok.
Edited by: user10757003 on 21-Mar-2013 01:34 -
After I downloaded the Firefox update, when I tried to open Firefox I got the error message: "Warning unresponsive script...etc". This happens every time and the choices in the message ("continue" etc) are unresponsive. Further I can't delete the error window without going to Task Manager to end the program. The problem also disabled Internet Explorer which will now simply not load. Google Chrome is working. I assume it relates to the update since the problems (for both Firefox and IE) occurred immediately after the download.
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
FDM Task Manager 11.1.2.2
Hi,
we are currently in FDM 11.1.1.2.2
In FDM Task Manager we can see Status as Running.
If the status is in Running then if that batch is triggered again.Does it work ?Correct.
I would have a DBA see if they can find any SQL statements running against the source system.
I would bring down FDM and ERPi together, and then do some cleanup of hung processes etc before rebooting.
You would also want to "kill" the process in the Process Details window for ERPi.
Maybe you are looking for
-
BPC 7.5NW Report Issues When Requesting Year To Date Data
Dynamic reports built with 2 row expansions (Cost Ctr, Account) up to 3 columns (not expansions, set to different categories with excel formulas for variance calculations...Act vs. Bud for example) result in error messages (error retrieving data and
-
How do you move the duplicated copy of a photo?
I just upgraded to iPhoto 11. I want to duplicate a photo that is in one event - and move (cut/paste) this duplicate to another event - leaving the original where it was. When I try to do this it moves the original and the duplicate - even though I
-
Graphics are Pixelated During a Rendered Playback
I am editing 720x480 DVCPro-NTSC footage in 720x480. I have an intro that is all graphics. When I play back, the graphics are noticeably pixelated...even after it is rendered. Is there a filter or setting I should apply to correct the problem?
-
Materialized Views/Snapshots not displayed
SQL Devloper: 1.0.0.15.57 on Windows XP Remote Oracle version: Oracle9i Enterprise Edition Release 9.2.0.5.0 on Solaris 2.6 Another department created a combined Snapshot of two tables for another department. Under previous software (TOAD), Snapshot
-
Working with the CSS in JDeveloper 11g
Hi All, I am working on the CSS of the JSF and the ADF Components in JDeveloper11g. When adding the components it is generating the css for those component dynamically . When seeing the CSS file Iam unable to understand for which component this parti