Integration script for Mapping
Is it possible to write an integration script which could connect to an excel file and get its source and target mapping values ?
I just use a simple excel formula to create a ledgerlink format file when people give me big excel files they need put into FDM.
P.S. While I"m not going to write up entirely what you need, I'll give you some help. If you look at this thread : https://forums.oracle.com/forums/thread.jspa?threadID=2291710 I posted a script that creates a true Excel file. You can use a lot of that code to work in the opposite direction enabling you to read cells from the excel file. This will solve one of your problems, though you still need to work out how to update the map with this info.
P.S.2 - It should be noted that Microsoft *DOES NOT* officially support Office Automation on production servers due to performance/reliability. I personally haven't had issue in the past; however, keep this in mind.
Charles
Edited by: beyerch2 on Jan 30, 2013 6:59 PM
Similar Messages
-
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. -
Hi,
I have newly implemented the file server in our organization.
Created individual folder for each users with 2GB quota to copy their data. I have created the folder in the name of users domain login ID, is the script is available, for mapping network drive for each user their respective folder.try creating a batch file like this:
assuming, shared folder is on c drive users_folder.
@echo off
net use u /delete /yes
net use u: \\file_server_name\users_folder\%username%
and run it as a logon script
Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
IT Stuff Quick Bytes -
Script for mapping drives?
Is there a script or anything out there that will automatically map a users H: drive on a network. We do not have any apple servers and I was wondering if it would be possible to do. Also is there anyway for a local user to add printers without giving them the local admin passwords? I work for a University and we are starting to deploy MACs so any help would be greatly appreciated. Thanks.
This probably isn't the best forum for asking these questions since this forum is specifically for issues with installing Mac OS X Server, but here are a couple of resources to get you started:
Automounting shares:
http://www.bombich.com/mactips/automount.html
Running scripts on login/logout:
http://www.bombich.com/mactips/loginhooks.html
I don't know of any way for a user to be able to add a printer without having administrator rights, but you might check out the video from MacWorld 2008 on creating a Limited Administrator Account on this page:
http://www.macworldencore.com/online/presentation.asp#
and see if that would help. There are a lot of resources available for managing Macs; check out some of the other videos on the MacWorld site, and explore http://www.afp548.com/ as well.
If you have further questions, you'll be most likely to get quick and accurate answers if you post in the appropriate Mac OS X area:
Mac OS X 10.5 Leopard
Mac OS X 10.4 Tiger
Regards. -
Import Integration Script Needed for Oracle DB
Hi All!
Anybody can give me import integration script for Oracle DB if i want to import data directly from DB where i dont need to extract or make Flat file and to keep at specific location location on fdm directory.
A script which integrates if new location is created in set of books of accounts or any entity will be created in Oracle Apps. and stored in specific db. From where i have staging area where relevent DB with req feilds and records.
Thanks in Advance
RegardsHello,
If you review the FDM Workbench Admin Guide there is a sample one already.
There are only a few differences between Oracle and SQL:
1. The provider string (which can be generated by looking at a .UDL file in a text editor)
2. Oracle DB's are case sensitive, and by default everything non-quoted is pushed to uppercase (which is pretty much everything for FDM)
Thank you. -
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 -
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 -
Pls send me PDF'S for Integration Repository and Mapping
Hello All,
I need to make presentation.
Pls send me different PDF'S for Integration Repository and Mapping
RegardsHenry,
I hope this will help you.
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d046c490-0201-0010-84b6-9df523cbca31
raj. -
ODBC Driver for Import Integration Script?
My understanding is that for the Import Integration Script to work with an Oracle database we need to install the Oracle client and an ODBC driver on the FDM server. Since I don't have access to the server, and I'm not the one installing anything, I need to tell the installation group where to find the correct driver. I've seen the DataDirect/Merant driver used in the past. Is that the only odbc driver that works? Does that come with FDM? Where can I find the right driver to install?
Hello,
As you know FDM is VB compliant. With that being said most anything that can be done inside of VBScripting can be done inside of FDM. Unfortunately it is not the responsibility of FDM to package/compile all drivers and information ... it probably would just be too large to accomidate.
If you want to leverage a technology/connection/etc then the respected technology must be installed. So if you are trying to connect to an Oracle DB then the correct software, setup and configuration files must be in place to make that happen.
In your instance, if you are going to connect to the Oracle DB you have two options:
1. Native drivers (OLE DB Provider Drivers)
2. Standard drivers (ODBC Drivers)
In either situation they must be able to actively and validly connect to the database. You can test the connections to your database by leveraging a test .UDL file and stepping through the connection pieces manually. Once you have determined a connection that will suit your needs you can then save the .UDL file and open it a text-editor to retrieve your connection string.
Thank you, -
Login script not mapping drives for users
I am in the process of configuring a new Windows 2008 terminal server in an existing Windows 2003 domain. The TS is installed on a member server running Windows Server 2008 SP2. The problem is that the domain login script (set in group policy) does not seem to be working for the users.
I have a special TS group policy for the new terminal server and have enabled loopback processing on the default domain policy. The only setting configured in the TS policy is the location of the user's terminal server roaming profile. This seems to be working. Other than the login script, other elements of the domain-level group policy, such as folder redirection, seem to be working. When I run the GP result tool on the terminal server, it shows all of the appropriate group policies from both the TS policy and the domain-level policy, including the login script. This login script is vital, since it does drive mapping for a bunch of resources on the domain that users need to run certain programs. The odd thing is that the login script runs for the Administrator account, which uses a separate group policy that has inheritance blocked.
Any help would be appreciated!
LaurieI realize this is old, but for anyone who comes here after me, here goes. What i found, is that instead of running a vbs script to map the drives, i run a vbs script to get the parameters i need, then i run a batch file from the vbs and pass it the
parameters. For some reason, when the logon script is run as a batch file, all of the drives map, even for users who are local admins. It seems to run in the users current context, unlike a vbs script. Here is an example :
' maps a shared documents folder "S:/" to the same folder as the OU that the user is in.
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)
strUserName = objUser.samAccountName
strOUPath = objUser.Parent
arrContainers = Split(strOUPath, ",")
arrOU = Split(arrContainers(0), "=")
strOU = arrOU(1)
Set objShell = CreateObject("WScript.Shell")
objShell.Run "\\domainname\NETLOGON\Login.bat """ & strOU & """", , TRUE
And the batch file takes the parameters like so :
:: Initialize variables
set parentOU=%~1
:: Delete all known shares
net use s: /delete
:: Map all known shares
net use S: "\\domainname\mainshare\%parentOU%" /persistent:yes
Make sure to use quotes around the variable in the vbs file, or your batch file will see it as two parameters. Then make sure to use %~1 as the variable in the batch file to remove the quotes from the parameter that is passed. -
"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 -
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 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 -
Shell script for batch compilation of forms 10g on AIX 5.3L AS
Hi All,
Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
Regards,
SAMHi Alex,
I tried with the below script as well as the one you had posted.
ORACLE_HOME=/opt/oracle/OraHome_3
export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
ssic:$LIBPATH
export LIBPATH
cd ../forms
for i in `ls *.pll`
do
echo Compiling Library $i ....
$ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
batch=yes module_type=library
compile_all=yes window_state=minimize
done
export ORACLE_HOME=/opt/oracle/OraHome_3
export ORACLE_TERM=vt220
export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
cd ../forms
for i in `ls *.pll`
do
echo "Compiling Library $i ...."
/opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
module=$i batch=yes compile_all=no
window_state=minimize upgrade=no
done
echo "PLL Compilation done"
But there was a same kind of error thst turning up all the time.
Compiling Library Agf.pll ....
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
Forms 10.1 (Form Compiler): Release - Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
FRM-10043: Cannot open file.
Form not created
I hence updated the permissions on the pll as below
-rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
But the problem is still persisting.
My environment details are as below.
I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
Is there any thing more that I need to do? If so then let me know.
Regards,
SAM -
Cannot load script for execution.
hi
iam creating the sisi package with in script task . script task was build successful . but when i was executive the ssis packages vs 2012.
it get error :Cannot load script for execution..
the code is
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using System.IO;
namespace ST_8cdbf584a74b48abb384d8f03cf42f4d.csproj
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
byte[] dataByte = null; String errInfo = "";
try
String sDirectory = Dts.Variables["User::Directory"].Value.ToString();
String CreatePartitionFileXMLA = sDirectory + "\\partitionssales20010701to20010731.XMLA";
String ProcessPartitionFileXMLA = sDirectory + "\\partitionssales20010701to20010731.XMLA";
// Create XMLA Script
Dts.Variables["User::CreatePartitions"].Value = ReadFile(CreatePartitionFileXMLA, errInfo);
if (errInfo.Length > 0)
Dts.Log("Error while reading XMLA file: " + errInfo, 0, dataByte);
Dts.TaskResult = (int)ScriptResults.Failure;
//Process XMLA Script
Dts.Variables["User::ProcessPartitions"].Value = ReadFile(ProcessPartitionFileXMLA, errInfo);
if (errInfo.Length > 0)
Dts.Log("Error while reading XMLA file: " + errInfo, 0, dataByte);
Dts.TaskResult = (int)ScriptResults.Failure;
Dts.TaskResult = (int)ScriptResults.Success;
catch (Exception ex)
Dts.Log("Error Message: " + ex.Message, 0, dataByte);
Dts.TaskResult = (int)ScriptResults.Failure;
public String ReadFile(String FilePath, String ErrInfo)
String strContents;
StreamReader sReader;
try
sReader = File.OpenText(FilePath);
strContents = sReader.ReadToEnd();
sReader.Close();
return strContents;
catch (Exception e)
MessageBox.Show(ErrInfo);
ErrInfo = e.Message;
return "";
how to solve this issue
pleasse help me..Hi sheshu0022,
Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
The following similar thread is for your reference:
http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
My IPhone can't be switched on nor it can be restarted. I have no idea what happened.
Hey! I have some huge issues with my Iphone 4. Before I start describing the problems, I shall describe the situation my Iphone has been in. I bought my Iphone 4 on Aug 2011 in Singapore and it was stolen a few months later(Nov 2011). Fortunately, th
-
Is there any way to add adblock like extensions in safari on iPad other than downloading apps?
I have been looking up for adblock extensions to use in safari on iPad because of all the ads popping up while surfing the web and watching videos, It is so annoying. Do any know of any way other than downloading other apps?
-
Cropped Photos Not Viewable (iPhoto 6.06)
When I open iPhoto, I can see all of the photo thumbnails. My titles and ratings are still displayed. When I double-click on any photo that has been cropped or otherwise edited, the photo will appear in the Edit Window for a split second, then a larg
-
I want to learn MDM, i have good knowledge in SAP BI.
Hi All, Please answer my below questions 1 ) MDM has Coding or do we have only navigation. 2 ) Is programming knowledge is essential for MDM. 3 ) How is the future for MDM. Thanks in advance. Regards, Nithi.
-
I just bought a Airport Time Capsule, time capsule is connected direct from wan to cable modem (it doesnt work). when i connect it to lan port 1, it start working. normal process i know is from cable modem to wan port. 2nd i notice, network is on bri