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

Similar Messages

  • Email issues after Yosemite upgrade.  Several things are happening, I delete messages only to get a error indicating that I can't delete them or if I do delete them, they reappear sometime later.

    I use Apple mail on an IMAC & IMAC Mini.  As I move from one to the other these email issues persist on both.
    I try to clean out my email by deleting emails.  I sometimes get an error message indicating I can't delete the message or when I do delete the message, then sometime later or when I go on the other computer these deleted messages reappear.  I am also getting emails from some senders but the actual content belongs to another person.
    I had none of these problems prior to upgrading to Yosemite.
    Any suggestions would be helpful.
    Chuck

    adam_30 wrote:
    i can go with other carrier with my iphone 5s so for all the pple that are ging to read this read it again befor saying something to mee kk thanxso for what  relly happen is i when too do the update to the ios 8.1 solfwaer  on  my dad iphone 5 frist so i coundn`t boot it back up so i call apple an they told me how to make the iphone 5 boot backup my dad  was sineg into evering his itunes an his apple id an find myi phone an there telling me that he was not sing in but i know he was so he was  able to get into his email bec he forgot his password too but how is that tho i would like to know that tho me on the other hand i have been ******* lock out of all my gmail an the curreent email that google has lock me out too its  the current email is lock to my iphone 5s is lock to an so the owle  email i can get on its bec it save on a friends laptop an i have the frist bill that rogers send to me  its pretty much its  the proof-of-purchase that what rogers told me today when it talk to like 15 different pple i talk  today an they all told me the same thing it shown that we did  it from rogers a show the day we had it activadev an its show the number of the activadev so am i getting such a heard time to get this  done for me an like in one of the postting i did say that the one rorgers supervisor mamageran guy was talking to the apple supervisor mamageran an the rogers supervisor mamageran guy told the apple supervisor mamage that he was  confirmed  that the iphone 5s that apple lock wasnot a lost or a hot iphone 5s to the apple supervisor mamageran so after he ending up the rogers supervisor mamageran guy told me the my frist rogers bill it the same as the proof-of-purchasean that rogers supervisor mamageran is what there a saying to be so it the rogers supervisor mamageran say that that good so apple that should be good gor u an that rogers supervisor mamageran told me the he have gave that to pple an it work for them y not me just want to know
    ......................................... what?

  • HT204017 Email issues after the latest update

    I updated to the latest yosemite update yesterday and it caused email issues.  I can receive emails but when I create and send emails, they just sit in my outbox.  Any ideas or suggestions?  Is there a way to revert back to the previous version of yosemite?

    Hi roger,
    I had this same issue about a month ago. I went in and had to re-enter my password for the account I was having trouble with and then restarting my computer. If that doesn't work then I have seen people that had to go into keychain and delete their email login information and after that delete the email account and re-add it. Hope this helps.
    -crazy

  • Email Pop-UP message "Email issue detected"

    Over the last week I continually receive a pop-up message with  "Email issue detected" and the options of "Fix" or "Ignore"
    When I selct FIX it sends a test message to my Outlook 2003. A new pop-up then appears with no fault found. However it does refer to my current email address and also an old email address which I have not used in 5-6 years.
    How do I stop this and get rid of old address?

    Sounds like a bit of Malware to me.
    Try malware removal tool from Cnet Downloads http://download.cnet.com/windows/security-software/?tag=rb_content;main
    Plenty on there to choose from
    Check your exchange or major service outagesIf someone has given a helpful answer, please click on their Ratings star on the left-hand side. ***

  • Browser and email issues with OS 10.9.4

    Had a problem that I thought had been solved.  See thread here: Just installed OSX 10.9.4 - have browser and email issues
    Now a week or so later, it's back.  Same symptoms.  I have followed the procedure posted by Linc Davis.  Anybody have further ideas?
    Don Hutchins

    If you are using Safari, try going to Safari/Preferences/Advanced and set the develop menu to show. Go to the develop menu and select Empty Caches.
    If that doesn't work, Safari/Reset Safari/Remove all web site data.
    For Mail, try:
    Do a backup.
    Quit Mail.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Go to Library/Containers/com.apple.mail.  Move the folder com.apple.mail to your desktop. You must move the entire folder, not just the contents.
    Restart, re-launch Mail and test. If the problem is solved, recreate any required Mail settings and import any emails you want to save from the folder on the desktop. You can then put the folder in the Trash. If the problem remains, return the folder to where you got it replacing the one that is there. 
    Information learned from Linc Davis. Thanks to leonie for some information contained in this.

  • Just installed OSX 10.9.4 - have browser and email issues

    After updating the OS to X 10.9.4, I am now getting sporadic browser and email issues.
    Email will send one message from each account, then locks up and the message is "authentication refused".
    Browser will bring up an internet page or sometimes several, then will lock up and no further URLs can be accessed.
    Both issues are temporarily solved by rebooting the machine - but recur almost immediately.
    I am pulling my hair out.  Any thoughts?
    Don Hutchins

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Remove FOPE Domain/O365 Domain (Admin needed) - Causing Email issues.

    Good Morning,
    Long time ago (2007) I messed around setting up FOPE but did not do much with it, which is or currently transitioning to Office 365? Anyways, I logged into FOPE yesterday based on some help from another company that has been unable to email us, said they
    talked to Microsoft and the rep saw we had a FOPE account setup with mail server settings pointing to our old Exchange Server.. Turns out the company and many other companys that can't email us are using FOPE/O365 and Microsoft internally is using those settings
    to route mail to our old On-Premise Exchange Server and not picking up our new MX record.
    We have since transitioned to Google Apps (thus the new MX record), but from what we see - O365 Customers look like they are being routed  to the old Exchange Server based on those settings.. It looks like FOPE is set in a "read only" mode,
    I cannot change the MX record, or IP addresses to route mail to.. I would like to formally request the deletion of the Domain from both O365 and FOPE, this should resolve our Email issues. The domain in question is bangorschools DOT org
    I have logged into O365 and deleted the domain leaving the onmicrosoft domain, but It doesnt look like I can do anything with FOPE.. Even if I could just change the IP address to point to google, or someone at Microsoft can remove the account all together?
    Thank you,
    Kyle

    Hi,
    when you have been transitioned to EOP your FOPE-settings will be readonly. So you should contact FOPE/EOP support for help to remove your domain from FOPE, they can do changes.
    Greetings
    Christian
    Christian Groebner MVP Forefront

  • Email Issue Detected

    I access my Yahoo emails via Windows Mail and I have 5 email addresses.
    Intermitantly sometimes one or other hangs when I click Send/Receive, also I sometimes get a BT message pop up headed Email Issue Detected with the option to Ignore or Fix.
    If I click Ignore next time I try to download my emails they come in OK
    Any ideas what is happening?
    I tried to post the message but can't find out how to do it?

    pugwash wrote:
    I get exactly the same problem that st-clares describes.
    Is there no solution to this very annoying problem, for heaven's sakes!
    What is the point of a forum if we cannot get a solution to such a simple problem which many more users must be experiencing?
    Hi Pugwash, welcome to the forums.
    This problem is typical of an account access problem that can last up to a few days. It only affects a very small number of users from time to time, and not always at the same time - hence there are not a lot of posts on this particular topic.
    Over the years this has just sorted itself out for each user, without there being any specific reason for the problem. It can easily be a database access failure or some form of temporary corruption.
    Can you access your email account via webmail ?
    What particular email client program are you using (e.g. Outlook, Windows Mail or Thunderbird) ?
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Email Issue - How to turnoff "This message contains unloaded images"?

    Email Issue - How to turnoff "This message contains unloaded images"? and having to hit "Load Images" every time I view email msg.

    Mail > Preferences > Viewing
    Select "Display remote images in HTML messages"

  • IMessages and email issues

    I cannot receive iMessages and I cannot access my email. Can I still downgrade to iOS 6.1.4?  I had no issues with that version

    Thanks again.
    There is a listing for Theme in settings which gives the 3 options "Theme controlled, Combined and Separate for sms, mms and email.  I and the store have tried this option which sadly did not work, in fact it removed all remaining messages from my message folder; they are still there, but only accessible from the sms inbox folder which you have to navigate to via view folder option.  The store recommended contacting Blackberry directly as well as the forum sites for advice as they have never seen this happen before.  They also advised that if no fix was possible then to back up my files and restore to original settings and start again.
    I have since removed the battery from the device and then replaced it to see if that helped.  The device appears to have rebooted and sms messages are now showing in my message folder.  However, I still cannot receive my emails.  I have decided to remove my email accounts from the phone and then reinstate them and hope that will rectify any conflicting issues.
    Thank you for your time, it has been very appreciated and helpful.  I will let you know if this resolves the email issues.  I know it is probably not the correct way to fix but if it works then it is worth a shot.
    Denis

  • Wireless & email issues ** Updated 12/12/13**

    Having problems with connecting wireless devices?
    Try our to get advice connecting using wireless.
    You just need to choose the device you want to connect with, let us know what you specifically need help with and we’ll guide you the rest of the way.
    You can get help with fixing a wireless problem or if you’re trying to connect using wireless for the first time, you can do that too.
    We show pictures alongside each step so you know you’re doing the right thing.
    Need help with your email? 
    If you’re forgotten your password (it’s so easily done), you need help setting up your email or you’re having problems with your email account please follow the step by step instructions to get help setting up and fixing any email issues you’re having.
    Simply answer a few questions about your email account and what you need help with, and we’ll help with the rest.
    Each step includes a helpful picture to keep you right.
    BT Desktop Help
    You can also fix connection, wireless and email issues by downloading BT Desktop Help.
    Just follow the step by step instructions on how to install BT Desktop Help, and here are just some of its features:
    Sets up your wireless connection;
    Sets up your email account and fixes problems;
    Works in the background, fixing problems it finds;
    Sets up home networks for sharing folders and printers;
    Updates automatically, giving you the latest solutions.
    We’d love to get your feedback on whether this helped you so please let us know by posting on this board.
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

    sorry forgot to mention this is the error I'm getting
    The server error encountered was: The connection to the server “mail.alannahrose.com.au” on port 110 timed out.

  • More email issues - OS 10.1.0.273 and Active Sync

    I can't believe I am back on this forum with another email issue (I am also a victim of the email wipe issue.  I updated my Q10 OS to .273 and now my active sync account won't connect.  All other emails work fine.  According to Rogers, this is a "known problem" and can be solved by using SSL/port 443 however my company uses Exchange2003 which doesn't have access through port 443.  
    Seeing the lengthty list of known bugs/issues on these forums, I assume a solution from Blackberry on this "known problem" is months away at best.  The easy solution would be to reverse my OS update and switch back to the prior version which worked but Rogers claims this is impossible on BB10.
    Before I make the dreaded decision to give my Q10 back and get an iphone or droid, can someone help with my OS rollback.  Any BB techs reading this who can make the old OS available on their website?
    As a side note, its mind boggling to me that BB10 has all these issues with active sync.  They made a strategic decison to force non-enterprise small businesses off of BES servers into active sync - you would think they would have made sure it worked first!!! (beyond these bugs, there are basic functionality issues like the oft quoted issue of not syncing deleted folders with exchange2003 which most small businesses still use).  Either they have to fix these issues fast or make some sort of free BES10 express available or they are going to lose their small business customer base.  It becomes clearer everyday that BB10 just doesnt work with Exchange2003 active sync.

    To the Developers,
    its seems that things have gotten worse, and if you really needed someone to test your update, you could have called me...
    I can't send subsequent text messages to contacts without waiting 3 minutes for the first to send.
    solve this issue ASAP
    Kind Regards
    Nestors

  • FOUND SOLUTION TO EMAIL ISSUE - "message not downloaded from server"

    It took me 4 days to figure it out but there is a solution to the problem "the messsage has not been downloaded from server" and "the message has no content".
    I do not have to set up "push" accounts from yahoo or gmail and it works with my corporate email.
    Apple can reach me at <Message was edited by: Host> to discuss this issue.

    I'm not a computer technician, and if you were to give me a few days looking at the problem, i'm sure I or anyone else could provide a solution. I'm not too bothered about the message appearing 50% of the time as i'm usually within easy reach of a Laptop or PC or can find another method to get access to my email.
    So i'm not pi**ed off that you have found a solution. I'm just trying to obtain information for a post that says "FOUND SOLUTION TO EMAIL ISSUE - "message not downloaded from server" in the Apple HELP FORUMS...

  • IPhone 6/iOS 8 email issues with wifi connection

    Hi
    I have just upgraded from an iPhone 4 (iOS 7) to an iPhone 6 (iOS 8) and am having an issue with my pop email account. I used my iPhone 4 backup to set up new iPhone, so all the settings were as they were in my old phone. I have two email accounts, one is an IMAP account and the other is a POP account (which is my main email), I have no problems connecting to the server and downloading emails when connected via 4G (its super fast), but when I am connected via wifi, the POP account takes ages to connect to the server and check for emails (stuck on checking for email). I can speed up the process by closing mail app completely and reopening, then it checks and downloads really quickly (IMAP account has no problems), but this is frankly a pain.
    I have spent ages on the phone with Apple support, who have got me to delete my POP email account twice, reset network settings, reset the phone using on/off button and home button, all to no avail. They are intent on telling me it's my email service providers fault, but as I pointed out there is no issue on 4G and my old iPhone (using iOS 7) on wifi has no issues, so can't be email provider. I have also tried using Apple's wifi in store to rule out router issue and the problem happened there too.
    Have now run out of suggestions and options. I'm not sure if it's the phone itself, either a hardware or software issue (Apple support think not). Someone told me that it could be the wifi on my phone blocking the connection to the server. I have an appointment booked at the genius brand they have suggested wiping the phone and setting up as a new phone to see if the problem occurs, but this seems a bit drastic and I would lose all messages etc. Any help would be appreciated.

    I have solved the issue! I tried my pop account on other devices with iOS 8 and the same thing happened, so I deduced that the issue is a glitch in iOS 8 with wifi and pop accounts. I managed to get hold of the IMAP settings for my email provider and all seems to be well. Happy days!

  • 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

Maybe you are looking for

  • 2nd iphone 4 in a row that keeps needing to be restored everyday?

    Ok, 2 weeks ago my iphone 4 started acting funny.  Everyday for whatever reason i would lose service and then it would say "connect to itunes " and I would have to restore the phone to its original factory settings.  this went on for 3 days until fin

  • Read in XML file and spit out specific element

    Hi all i wonder if someone could give me a hand. I've got some code (below) which reads in an xml file and spits out the contents of the file. Thats fine and dandy, however what i want to be able to do is specify which element to spit out, which i'm

  • Gradient Background problems

    I have Enterprise version 8.1 installed on my machine and I am using it to reverse engineer some Java code. I would like to generate a few graphics in eps format, and I am having serious problems with the size when I export them as svg and translate

  • Run Sales order wise MRP - AFS material

    Dear Experts,                    Here my client asking to run the MRP for sales order wise. recently we did the AFS implementation for one of our client. there is an common T-code for MRP run, for AFS material is /AFS/MD02 . they are using material b

  • Address book widget stuck

    Quite often after doing a search using address book widget the next search won't work - I cannot type anything in the search field and I get the keyboard bleep as if I am doing something wrong. Anyone know what's going on? Cheers! Phil