FDM script issue

Hi,
I'm trying FDM custom script to copy records from text file to oracle database.
I've created 'sample' table in database.
when I try to open table in script I get 'Arguments are of wrong type or out of acceptable range"
Below is the statement where I am receiving error:
*+Set rs = cnSS.OpenRecordSet("sample")+*
Below is the logic:
*+Set cnSS = CreateObject("ADODB.Connection")+*
*+Set rs = CreateObject("ADODB.Recordset")+*
*+strFile = "D:\Toload.txt"+*
*+cnss.open "Provider=xxxxx;Data Source=xxxxx;User ID=xxxx;Password=xxxx"+*
*+Set rs = cnSS.OpenRecordSet("sample")+*
*+Set fso = CreateObject("Scripting.FileSystemObject")+*
*+If fso.FileExists(strFile) Then+*
*+Set Objfso = fso.OpenTextFile(strFile, 1, False)+*
*+Do While Objfso.AtEndofStream <> True+*
*+rs.Addnew+*
*+For i = 0 To Objfso.Fields.Count - 1+*
*+On Error Resume Next+*
*+rs.Fields(i) = Objfso.Fields (i)+*
*+Next+*
*+rs.Update+*
*+Objfso.MoveNext+*
*+Loop+*
*+Objfso.Close+*
*+Set fso=Nothing+*
*+End If+*
Please let me know if I'm missing something.
Thanks in advance
Edited by: 995155 on Mar 29, 2013 10:43 AM
Edited by: 995155 on Mar 29, 2013 10:44 AM

I may be on the wrong trail here, but the method you are using i think is related to Microsoft DAO. However, you initial definitions relate to ADO.
It is not a technique i have seen used with FDM as i am used to using ADO and using the standard SQL options such as Select, Insert etc.

Similar Messages

  • FDM Script - Set to run at a specific time of day??

    Can you set an FDM script to run at a certain time of day (based on
    server time)? I've currently got a Custom/General script I'd like to
    run once a day at a set time.
    Thanks!

    You need the use task manager for that.
    I suggest you look in the admin guide for more info.
    If I’m not mistaken, you need to enable in the application setting and then you can use it from the tools menu in the Workbench.

  • Firefox is having "Script" issues (Not Responding) und possibly Flash issues?

    Okay, downloaded Firefox for the first time in like a year yesterday. It was working beautifully, oh, how I've missed it. I hate using Google Chrome with a fiery burning passion.
    However, though it was working perfectly yesterday, I have not downloaded anything or got any plug-ins/extensions, whatever.
    Today, however, I can go to www.google.com (on firefox), but if I try to go to my banks website, or imvu.com, or something like that, all the sudden Firefox decides to hang. It freezes und I get that annoying "(Not Responding)" at the top. I have to close out of the browser entirely, open it up und forgo the session restore.
    Some websites are okay, however, it seems many of them aren't.
    I get a script error message, so far the one for imvu.com that popped up was "lookout.bluecava" or something like that. Asked if I wanted to wait for script to respond or if I wanted to stop it. Either way, it ends with me closing out und starting back at google.
    Right now, to ask this question, I had to re-download google chrome, und log in from that browser since Firefox doesn't even want to support it's own support forum! Crazy stuff, right?
    Anyway, since it's having a "script" issue, I went to java, made sure I had the updated java installed on my computer, then I made sure that I had the updated java plug-in. Und I even downloaded the 64bit java for it as well, both the 7u45 or whatever.
    So, my java on my comp und firefox browser are seemingly up to date, und the Add-On thing for Firefox to check if plugins are up to date says they all of them are up to date.
    Still having the issue. The moment I go to imvu or another site that has that issue, it freezes within 10 seconds und that's all she wrote.
    So, I'm really not wanting to go back to Google Chrome for another year, I miss the hell out of Firefox.
    To Add: The issue I am having right now with Firefox is the same issue I had a year ago, when I had to uninstall firefox und go with Chrome in the first place.
    But, since it was acting normal yesterday when I installed it, I figured that it was fixed. Wrong in less than 24 hours.
    Before I submitted this, I decided to hop back onto Firefox und try something.
    I disabled the Shockwave Flash und the Shockwave Director plugins. Now, Firefox is working again.
    Sooooooooooooooooooooooooooooooooo.
    It asks me if I want to install the "flash" plugins needed to view some content on the page (I used imvu.com to try it out after disabling the shockwave), but still runs.
    So, what do I need to do for flash? Or better yet, what's going on with it?
    I downloaded the flash yesterday within half an hour of starting Firefox up after downloading it. Und it worked just fine for hours.
    I shut the comp down, packed it up, went home, come back to work, hop on the net und BAM. All the sudden Shockwave is having issues with Firefox when nothing was done to instigate it? Doesn't make sense.
    Other info:
    Windows 7 Home Premium on HP laptop.

    I will give Firefox 24.1 a try und see if shockwave flash actually works without making it hang und resulting in need of force close.

  • WAD Java script issue after upgrade to 7.3

    Dear all,
    We have just upgraded our system from BW 7.01 to 7.3 SP4. One of the custom web templates in the system uses java script to hide few items on every screen refresh. Post upgrade, this functionality is behaving strangely, as the hidden items automatically get 'un-hidden' on page refresh.
    Please let me know if there are any known script issues in web templates in system upgrade scenarios. Any pointers would be appreciated.
    Thanks,
    Abhishek.

    Pls check out this link
    http://www.google.co.in/url?sa=t&rct=j&q=java%20script%20issue%20after%20upgrade%20bw%20to%207.3&source=web&cd=7&sqi=2&ved=0CEsQFjAG&url=http%3A%2F%2Fcsc-studentweb.lr.edu%2Fswp%2FBerg%2Farticles%2FBIIT_2011%2FBIIT_Amsterdam%2FBIIT_2011_Berg_BW_73_upgrade_v16.pptx&ei=TT7iTtLgJ8LwrQf2oLDJAQ&usg=AFQjCNEUg1EvXM82AmBaGntD4YY7FZwHXw&cad=rja
    Pls assign points if it was useful.

  • DOM Based Cross-Site Scripting issue in RoboHelp 10

    We're using a WebHelp system originally deplyed using RoboHelp 9.0.2.271, and a recent security scan revealed the DOM based cross-site scripting issue.
    I recently upgraded to RoboHelp 10, migrated my help system to this version, and redeployed the system, but our security scan is still detecting the cross-scripting vulnerability in WebHelp. Wasn't this issue resolved in RoboHelp 10?
    Thanks

    Hi,
    I’m not a security expert, but this script reads the URL of the current topic and redirects to the current topic with a bookmark. This is needed for when the same topic is used in multiple locations in the TOC.
    I’ll ask around about this security issue.
    Greet,
    Willam

  • FDM Scripting Query for last imported source file using Batch Processing

    Hi Experts,
    I'm currently in the processing of automating the FDM load process on our version of FDM 9.3.3 using batch processing and the FDM Task Manager. Most of the process works fine including an email alert which notifies users of when a data load has taken place.
    As part of that email alert I am trying to attach the source file that has been loaded in batch processing. I have managed to get an attachment using the following FDM Script Object of:
    "API.MaintenanceMgr.fPartLastFile(strLoc, True, False)".
    But have noticed that using this only attaches the last "manually" imported file rather than the last file imported using the batch processing.
    My question is: Is it possible for someone to steer me into the right direction of either a more appropriate API or if I have missed a step in my script.
    Any help as always would be much appreciated.
    Cheers
    Pip

    Unfortunately the batch process does not work the same way as on-line. I am assuming you are using the normal batch load and not Multiload (although the batch is simisar).
    the batch file name gets recorded on the tBatchContents table, and moved to the import/batches folder under the folder for the current batch run. However, if successful the file gets deleted (and from memory does not get archived). To add the import file to the e-mail, after a successful load, i think you will need to store a copy of it prior to importing the file.

  • I've used for months but am now so frustrated with the script issue I have uninstalled until I get some resolution. Help?

    I've to change the 10 to 20 solution to help solve the unresponsive script issue. I've tried safe mode. I've tried disabling all add-ons but still have it hang up. I don't seem to face that issue with explorer. Is microsoft sabotaging your efforts?

    Did you also try to disable all plugins?
    See [[Troubleshooting plugins]]
    Create a new profile as a test to check if your current profile is causing the problems<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • LiveCycle ES2, Guides, SSL and IE 8/9 Cross Site Scripting Issue

    I have a guide that is being served up in the workspace.
    This guide works fine in all of the different browser versions provided they go through port 8080.
    If however you enable SSL on your server (port 8443) and serve up the guide in the workspace, the end user can fill the entire form out only to have the browser identify the submit process as a Cross Site Scripting issue.
    This is the result:
    The data is essentially lost and guide disappears.  I had a theory that maybe the submit process might be using the default server port for data submissions (8080) and created a customized submit process with the hardcoded targetURL.
    I tried to test my theory and got the same result.  I then modified my custom submit process to essentially do nothing (Started and ended the process with an abstract activity), and got the same result.
    The only other thing that I could think of, is that the automatically generated action script classes might be hard coded to use default port instead of the SSL port.
    Suggestions?!

    Hi
    You can rise SR for your issue for 5000+ user or you can also can connect wiht your system engineer team for can possible solution as setup IE and deploy it to 5000+ user pcs
    For your other question see below note:
    Recommended Browsers for Oracle E-Business Suite 11i [ID 285218.1]
    Regard
    Helios

  • FDM Script to import data

    Hi,
    I'm new to FDM scripting. So any pointers will be appreciated. I need to import a TB with the following format in exel file.
    row1 ***CostCenter Number***
    row2 ***TB name*
    row3 - Other parameters
    row4 - Blank
    row5 - Data headers
    row6 - Data begins - format given below -
    row7 - Account Desc Opening Bal Closing Bal
    I have created an import format with the 4 fields - CostCentre, Account,Desc and closing bal. Now my question is -
    1. How do i create script that picks the costcenter number from row1 ?
    Thanks in Advance!!

    That format will not work in an excel file, FDM requires a specific excel template, also the FDM excel templates do not use import scripts,so first convert to a csv file.
    You will then need to use a temporary variable for this e.g. RES.PvarTemp1 and create 2 import scripts
    Assuming that cost centre is the only value on line one of the file what you need to do is:
    Attach an Import script to the Amount entry in your import format and put in the following code (this assumes cost centre is always the first header line and your script is called GetCostCentre)
    If Not Len(RES.PvarTemp1) > 0 Then
    RES.PvarTemp1 = DW.Utilities.fParseString(strRecord,4,1,",")
    End If
    GetCostCentre = strField
    Attach an import script to the CostCentre entry in the import format called SetCostCentre, it will have one line
    SetCostCentre = RES.PvarTemp1
    There is a very similar example in the FDM admin guide Scripting cahpter which has a bit more description.
    Edited by: SH on Dec 7, 2012 11:17 AM

  • IWeb Script Issues?

    Hi.  I uploaded my website created on iWeb to a new hosting service.  The files loaded successfully (using FileZilla) and my site is supposedly live.  But when I try to open my website using Safari, I get a "Too many redirects occurred trying to open" message from Safari.  A similar message appeared when I tried opening the site with Firefox (I access it online via my hard drive back-up).  My hosting service says my .htaccess has a redirect back to itself; it's a third-party scripting issue.  I'm effectively out of business and I need the site back up and accessible ASAP.  How do I troubleshoot this and correct it?  Thanks. 

    http://www.1-64ModelingGuide.com
    changes to :
    http://1-64ModelingGuide.com
    So check your domainname settings as well.
    And if your webhoster said it might be the htaccess file and you said it might be a 3rd party script, why didn't you check that out first before crying for help in this forum?
    And next time provide clickable links. Copy/pasting on an iPad isn't that great.

  • I'm getting messages of "script issues" when I am using an open tab for FACEBOOK.

    I have an open tab, for MOZILLA FIREFOX AND another tab of mozilla firefox for FACEBOOK. As I'm using facebook, it starts running slower and slower, sticking in place and then finally,... a notice of a "script issue". I've had well over a dozen script issues, with firefox crashing..........

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Using INSERT INTO for FDM Memory Issue

    All -
    We configured FDM to run an integration script into our EBS instance upon the import step. It worked fine for a time, then we began running out of memory on the FDM server. Upon Oracle's suggestion, we stopped running through a record set to append and update the values to strWorkTableName and instead began using INSERT INTO. I admit, I have never needed to use the INSERT INTO way of doing things so I may be missing something bery basic.
    Our integration script:
    Function SQLIntegration2(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    'Oracle Hyperion FDM IMPORT Integration Script:
    'Created By:       karks
    'Date Created:       2011-10-26 13:05:18
    'Purpose:
    Dim strSQL     'SQL string
    Dim lngPartitionKey
    Dim strConn 'Connection string to the source data
    Set cnSS = CreateObject("ADODB.Connection")
    lngPartitionKey = RES.PlngLocKey
    strConn= "File Name=C:\Users\karksadm\Desktop\NewConnection.udl;"
    cnSS.open strConn
    strSQL = "Insert Into " & strWorkTableName & " (PartitionKey, CatKey, PeriodKey, DataView, Amount , Account, Entity, ICP, UD1, UD2, UD3, UD4) "
    strSQL = strSQL & "SELECT " & lngPartitionKey & ", " & lngCatKey & ", TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & "), 'YTD', EBS.YTD_BALANCE, EBS.ACCOUNT, EBS.SEGMENT1, EBS.SEGMENT5, EBS.SEGMENT4, EBS.SEGMENT5, '[None]', EBS.CURRENCY_CODE FROM "
    strSQL = strSQL & "(Select D.NAME, A.CODE_COMBINATION_ID, D.NAME LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR (C.START_DATE, 'MON-YY') AS PERIOD, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3) As ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, "
    strSQL = strSQL & "(SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) As YTD_BALANCE "
    strSQL = strSQL & "FROM GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D "
    strSQL = strSQL & "WHERE 1 = 1 And A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR "
    strSQL = strSQL & "And A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID And B.SUMMARY_FLAG = 'N' AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME "
    strSQL = strSQL & "And (B.SEGMENT1 = 001 And A.CURRENCY_CODE = 'USD' And D.LEDGER_ID = 2022) "
    strSQL = strSQL & "And C.END_DATE = TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & ") "
    strSQL = strSQL & "And B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID And A.ACTUAL_FLAG = 'A' "
    strSQL = strSQL & "And ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_NET_CR))) <> 0 "
    strSQL = strSQL & "GROUP BY A.CODE_COMBINATION_ID, D.NAME, A.CURRENCY_CODE, TO_CHAR (C.START_DATE,'MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 "
    strSQL = strSQL & "ORDER BY B.SEGMENT4) EBS"
    DW.DataManipulation.fExecuteDML(strSQL)
    'Give success message
    RES.PlngActionType = 2
    RES.PstrActionValue = "SQL Import successful!"
    'Assign Return value
    SQLIntegration2 = True
    cnSS.close
    Set cnSS = Nothing
    End FunctionI can run the SQL minus the Insert line in my SQL Developer and it works fine. When I run the script in its entirety in FDM, we receive the following:
    ** Begin FDM Runtime Error Log Entry [2012-01-23 11:37:30] **
    ERROR:
    Code............................................. -2147217865
    Description...................................... ORA-00942: table or view does not exist
    Insert Into tWibison72564424799 (PartitionKey, CatKey, PeriodKey, DataView, Amount , Account, Entity, ICP, UD1, UD2, UD3, UD4) SELECT 772, 28, TO_DATE (TO_DATE (N'30/12/1899',N'dd/mm/yyyy')+40724), N'YTD', EBS.YTD_BALANCE, EBS.ACCOUNT, EBS.SEGMENT1, EBS.SEGMENT5, EBS.SEGMENT4, EBS.SEGMENT5, N'[None]', EBS.CURRENCY_CODE FROM (Select D.NAME, A.CODE_COMBINATION_ID, D.NAME LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR (C.START_DATE, N'MON-YY') AS PERIOD, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3) As ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, (SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) As YTD_BALANCE FROM GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D WHERE 1 = 1 And A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR And A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID And B.SUMMARY_FLAG = N'N' AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME And (B.SEGMENT1 = 001 And A.CURRENCY_CODE = N'USD' And D.LEDGER_ID = 2022) And C.END_DATE = TO_DATE (TO_DATE (N'30/12/1899',N'dd/mm/yyyy')+40724) And B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID And A.ACTUAL_FLAG = N'A' And ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_NET_CR))) <> 0 GROUP BY A.CODE_COMBINATION_ID, D.NAME, A.CURRENCY_CODE, TO_CHAR (C.START_DATE,N'MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 ORDER BY B.SEGMENT4) EBS
    Procedure........................................ clsDataManipulation.fExecuteDML
    Component........................................ upsWDataWindowDM
    Version.......................................... 1112
    Thread........................................... 4424
    IDENTIFICATION:
    User............................................. ibisons
    Computer Name.................................... HOU-HYSDEV02
    App Name......................................... SWNFDMRC
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... FDMDEV
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... EBSINTEGRATION
    Location ID...................................... 772
    Location Seg..................................... 25
    Category......................................... EBS2
    Category ID...................................... 28
    Period........................................... Jun - 2011
    Period ID........................................ 6/30/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    ** Begin FDM Runtime Error Log Entry [2012-01-23 11:37:31] **
    ERROR:
    Code............................................. -2147217865
    Description...................................... Data access error.
    At line: 33
    Procedure........................................ clsImpProcessMgr.fExecuteImpScript
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 4424
    IDENTIFICATION:
    User............................................. ibisons
    Computer Name.................................... HOU-HYSDEV02
    App Name......................................... SWNFDMRC
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... FDMDEV
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... EBSINTEGRATION
    Location ID...................................... 772
    Location Seg..................................... 25
    Category......................................... EBS2
    Category ID...................................... 28
    Period........................................... Jun - 2011
    Period ID........................................ 6/30/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    ** Begin FDM Runtime Error Log Entry [2012-01-23 11:37:31] **
    ERROR:
    Code............................................. -2147217865
    Description...................................... Data access error.
    At line: 33
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 4424
    IDENTIFICATION:
    User............................................. ibisons
    Computer Name.................................... HOU-HYSDEV02
    App Name......................................... SWNFDMRC
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... FDMDEV
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... EBSINTEGRATION
    Location ID...................................... 772
    Location Seg..................................... 25
    Category......................................... EBS2
    Category ID...................................... 28
    Period........................................... Jun - 2011
    Period ID........................................ 6/30/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    I really think the issue is that I am not telling the script where to find the Oracle tables at. I left the code in where we were using the UDL to call in the opening of the record set, but since we are doing away with the record set how do I let FDM know where to find the Oracle tables?
    Thanks in advance - I've been wrestling with this for several days.
    Thanks you,
    Sarah

    Here's a script with INSERT INTO that works fine if FDM back-end is SQL DB and it's pulling from FDMHarris data warehouse which is on SQL Server.
    Problem is when FDM back-end is Oracle DB and it's pulling from FDMHarris data warehouse which is on SQL Server.
    I'm assuming the INSERT INTO statement needs to be written differently, syntax wise?
    Here's the error message displayed.
    ** Begin FDM Runtime Error Log Entry [2012-06-03 21:18:15] **
    ERROR:
    Code............................................. -2147217900
    Description...................................... ORA-00933: SQL command not properly ended
    INSERT INTO tWadmin476032843931 (PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) SELECT 752, 12, N'30-Apr-2012', N'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount FROM FDMHarris.dbo.tdataseg4;
    Procedure........................................ clsDataManipulation.fExecuteDML
    Component........................................ upsWDataWindowDM
    Version.......................................... 1112
    Thread........................................... 3284
    Function INSERTINTO(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    'Oracle Hyperion FDM IMPORT Integration Script:
    'Created By:      admin
    'Date Created:      2012-06-03 11:31:39
    'Purpose:
    Dim objSS 'ADODB.Connection
    Dim strSQL 'SQL String
    Dim rs 'Recordset
    Dim rsAppend 'tTB table append rs Object
    Dim strPeriod
    Dim strYear
    'Period
    'strPeriod=MonthName(Month(RES.PdtePerKey))
    a=CStr(FormatDateTime(RES.PdtePerKey,1))
    'Tuesday,January 30, 2012
    b=Right(a,(Len(a)-Len(DW.Utilities.fParseString(a,1,1,",")))) '7
    c=DW.Utilities.fParseString(b,2,2,",")
    strPeriod=Left(c,3)
    'Year
    'strYear=Year(RES.PdtePerKey)
    strYear=Right(b,4)
    DW.DBTools.mLogError 1, CStr(strPeriod), CStr(strYear), Nothing
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    'Connect To SQL Server database
    cnss.open "Provider=SQLOLEDB.1;Password=datafusion;Persist Security Info=True;User ID=sa;Initial Catalog=FDMHarris;Data Source=dfv11122"
    'DW.DBTools.mLogError 1, CStr(strSQL), CStr(strSQL), Nothing
    'Initialize common SQL statement
    strSQL = "INSERT INTO " & _
    strWorkTableName & " " & _
    "(PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) " & _
    "SELECT " & RES.PlngLocKey & ", " & RES.PlngCatKey & ", " & _
    "'" & Day(RES.PdtePerKey) & "-" & MonthName(Month(RES.PdtePerKey), True) & "-" & Year(RES.PdtePerKey) & "', " & _
    "'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount " & _
    "FROM FDMHarris.dbo.tdataseg4;" '& _
    ' "WHERE Month = '" & strPeriod & "' And CalYear = '" & strYear & "'"
    DW.DBTools.mLogError 1, CStr(strSQL), CStr(strWorkTableName), Nothing
    DW.DataManipulation.fExecuteDML(strSQL)
    'cnss.Execute strSQL
    'Records loaded
    RES.PlngActionType = 6
    RES.PstrActionValue = "SQL Import successful!"
    'Assign Return value
    INSERTINTO = True
    cnss.Close
    Set cnss = Nothing
    End Function
    Edited by: user12152138 on Jun 3, 2012 6:43 PM

  • Mapping script issue

    Hello experts,
    I'm quite new to FDM and Iv'e been trying to write a simple conditional mapping script with no success. for my entity dimension, in most cases, the source is ths same as the target though there are some cases where this does not apply and have to go to a NA_Entity. For example:
    SOURCE     TARGET
    PE00_0001     PE00_0001
    PE00_0002     PE00_0002
    PE00_0003     PE00_0003
    AL00_0001      NA_Entity
    PE00_0004     PE00_0004
    CO_HWE        NA_Entity
    PE00_0005     PE00_0005
    As you can see, all source entities which start with "PE" are equal to the target entity and any other entity not starting with PE should be mapped to the "NA_Entity". I believe it's pretty unefficient to maintain an explicit map so we've decided to create a conditional mapping script (not working yet) which reads as follows:
    If Left(varValues(15),2)="PE"
         Then Result = varValues(15)
    Else Result ="NA_Entity"
    Every time i try to import a file I keep on getting:
    Error: An error occurred importing the file.
    Detail: Invalid Like Clause: For Dimension Map (ENTITY) and Rule (Peps)
    ERROR:
    Code............................................. 4026
    Description...................................... Invalid Like Clause: For Dimension Map (ENTITY) and Rule (Peps)
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 5416
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... CTARESULDESA2
    App Name......................................... INT_IECI
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... 10.228.128.168
    Database Name.................................... FDM_INTIECI
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... Argentina-EP
    Location ID...................................... 758
    Location Seg..................................... 3
    Category......................................... Reales
    Category ID...................................... 13
    Period........................................... Nov - 2013
    Period ID........................................ 2013-11-30
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    I've followed the script guide and Iv'e tried several scripts, all with no success. The only workaround I've found is maintaining an explicit map where 99% percent of the elements map to themselves and the other 1% map to "NA_Entity", not very maintenance friendly.
    Thank you very much for your help
    Santiago Ruiz.

    You do not mention what release of FDM you are working with, but there should be no need for scripting .
    Explicit mappings are the most efficient from a performance point of view, but in view of what you want to achieve then all you need are two 'Like' mapping entries.
    the first will be mapping PE* to PE*  and the second entry mapping * to 'NA_Entity' to pick up all the other codes.
    Alternatively if you are processing millions of records and have a performance issue, then an alternative might be to change the non 'PE' type records with a script on the import format, but i think the two records should be the easiest.

  • FDM Email issue

    I need to configure my email address according to POV Location. Users of Italy location should only recieve email if the Location is Italy, but with my script i m getting email in case of both locations. I m Pasting my code below
    Dim strFromAddress
    Dim strToAddress
    Dim strSubject
    Dim strEmailMsgLine
    Dim objMsg
    Dim objConfig
    Dim intSendUsing
    Dim strSMTPServer
    Dim intSendPort
    Dim loc
    Dim email_Add
    'Initialize message content variables
    strFromAddress = "[email protected]" 'DW.Security.fUserEmailGet(DW.Connection.PstrUserID)
    'strToAddress = "[email protected]"
    If API.POVMgr.PPOVLocation = "SPAIN" Then
    strToAddress = "[email protected]"
    ElseIf API.POVMgr.PPOVLocation = "Italy" Then
    strToAddress = "[email protected]"
    End If
    strSubject = "TEST"
    strEmailMsgLine = "Hi Anuj This is email sent by FDM No need to respond " &API.POVMgr.PPOVLocation &" "&API.POVMgr.PPOVPeriod& " " &Date & " " &Time
    'Initialize Mail Server variables
    'SMTP server name
    strSMTPServer = "icfsmtp01.cmf.ad.abc.com"
    'CdoSendUsing enumeration-1=use smtp on local machine, 2=use smtp over network
    intSendUsing = 2
    'SMTP port on server
    intSMTPPort = 25
    'Create CDO configuration object
    Set objConfig = CreateObject("CDO.Configuration")     
    'Set Config object settings
    With objConfig.Fields
         .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = intSendUsing
         .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer
         .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")= intSMTPPort
         .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
         .Update
    End With
    'Create CDO message object
    Set objMsg = CreateObject("CDO.Message")     
    'Assign config object to configuration property of message object
    Set objMsg.Configuration = objConfig
    'Set Message object settings and send mail
    With objMsg
         .To = strToAddress
         .From = strFromAddress
         .Subject = strSubject
         .TextBody = strEmailMsgLine
         .Send
    End With
    'Destroy message objects
    Set objMsg = Nothing
    Set objConfig = Nothing

    This seems like a logic issue,
    You can use the MsgBox command as output for debugging and run the script from the FDM workbench.
    Just put some MsgBox prompts to display what the value of the POV Location is and help indicate what blocks of the code are being executed and track it down from there...
    You can test the logic without even using the email to ensure it's working then add the email directives back in. That might be quicker.
    Nick

  • Automatize workflow PeopleSoft= FDM= HFM Issue

    Hi all,
    We have created a batch to automatize a flow from PeopleSoft (PS) to FDM and HFM. In this batch we collect data from PS, mapping in FDM and load in HFM. With FDM via export script, we execute copy data in some scenario and consolidation task. (In HFM)
    But when we have an error on the load file (wrong flow on BS, input on parent account…) the workflow is stopped! And then copy and consolidation task are aborted. We need to fix it because the process spent a lot of time, we execute this batch every night.
    We have some ideas:
    1)     Create a second batch when the first is aborted, but what can we run copy data and consolidation in HFM ? (HFMBatch.exe)
    2)     Find a solution with FDM, modify setup or script ?
    Could help me?
    Thanks in advance for your help.
    Jean Daniel

    Not silly - I suppose logically i should have thought about it a bit more before giving my two penneth. I just read the bit that stated that it applies to ERP Integrator and FDM and maybe got 2 + 2 = 5. (As FDM can be strange animal at times though, it might just be worth a try!)
    Another thing i have seen from a smartview issue relates to the SSO token timeout. If the token times-out before the timeout on the applications then you can get this message. Might be worth a look at the setting. However, i still think it might be worth a punt at setting up a user on FDM to see if it works.
    sorry but just remembered something else. - Have you checked what authentication options have been defined on the FDM load balance server. For SSO you used to need to define your own SSO vbscript in the SSO authentication script but i think this might have been superceded by the Shared services authentication (CCS) if shared services is being used.
    Edited by: user10757003 on 19-Mar-2013 13:46

Maybe you are looking for

  • Origin of sales tax ID number in billing documents

    Hello, The field "Origin of sales tax ID number" in billing documents determines from where the tax ID number is taken, for example:    A - Ship-to party    B - Payer    C - Sold to Party When the partner functions of the customer are different, how

  • Layered menu buttons not working when built.

    I have a project that has one menu and one track. The menu has 7 buttons linked to 7 different markers in the track. When I run the simulation in DVD SP, the buttons link fine, and play as they should...but when I build the project and run it in DVD

  • Finder preview not showing avi thumbnails on macbk air

    Can anyone tell me why my macbook air is not showing .avi thumbnail previews in finder on my macbook air but I can see them on my imac? Both are running macOSx 10.6.6 and I am using VLC player. The macbk air shows the orange cone but i can only see t

  • Tnsnames or OID

    I'm considering the use of tnsnames for simplicity of installation and ease of maintenance in my environment, rather than staying with OID. There are about 300 desktops, and 6 Oracle servers to maintain with oracle connections to the IIS webserver on

  • OIM11g HowTo develop custom reconcilliation process

    Hi Can someone guide me please: When performing initial full reconciliation to load user accounts from my trusted source to OIM, I need to execute a rule or something that take an user attribute from the "source" (employeeNumber) and process it in or