Notification by E-mail FDMEE script error! Invalid Argument or procedure call

Hello FDM gurus.

I tried to write a script to set e-mail notifications when the FDMEE process fails on step validate. I tried to recreate my script as much as possible, but I am unable to know is wrong with the script. The FDMEE script notification by e-mail administrator's guide is not correct, as most of the APIs mentioned FDM and not for FDMEE. Ask you please check the below script and him point that does not.

I put the script in the AftValidate event below. I don't know if I should not be implemented as event scripts.

I am currently getting an error "Invalid procedure call or argument: «objFDMAPI.API.MaintenanceMgr.fProcessStatus»»

My script:

'************************************************************************************

' REVIEW OF THE INPUT PARAMETERS

'************************************************************************************

If WScript.Arguments.Count <>5 then

WScript.Echo "You must provide 5 DURATION variables." & vbNewLine & "use: HFM_LOAD.vbs LoadID CSS_Token OracleInstancePath JavaHomePath OLE_DB_PROVIDER.

WSCript.Quit - 1

On the other

LoadID = WScript.Arguments.Item (0)

CSSToken = WScript.Arguments.Item (1)

OracleInstancePath = WScript.Arguments.Item (2)

JavaHomePath = WScript.Arguments.Item (3)

Provider = WScript.Arguments.Item (4)

End If

'************************************************************************************

'Initialize FDMEE VB API.

'************************************************************************************

Set objFDMAPI = CreateObject ("fdmapi.clsAppServerDM")

WScript.Echo 'FDMEE VB API created.'

blnInit = objFDMAPI.fInitializeMainAPI (CStr (LoadID), CStr (CSSToken), CStr (OracleInstancePath), CStr (JavaHomePath), CStr (Provider))

If blnInit then

WScript.Echo "FDMEE VB API initialized."

On the other

WScript.Quit - 1

WScript.Echo "fInitializeMainAPI failed."

End If

WScript.Echo CBool (True)

'************************************************************************************

Dim objProcessStatus

Dim lngStateCheck

Dim strFromAddress

Dim strToAddress

Dim strSubject

Dim strEmailMsgLine

Dim objMsg

Dim objConfig

Dim intSendUsing

Dim strSMTPServer

Dim intSendPort

' Message content Variables

strToAddress = " " [email protected] ; [email protected] "" "

strFromAddress = " " [email protected] " " "

strSubject = "FDMEE Validation failed"

strEmailMSGLine = 'Failure of Validation - Log of process FDMEE Check - for Details'

"Check for location

If objFDMAPI.API.State.LocName = "United States" or objFDMAPI.API.State.LocName = "Canada" or objFDMAPI.API.State.LocName = "Mexico" Then

strLoc = objFDMAPI.API.State.LocName

' Initialize process status

' lngStateCheck = 12 ' Validation failed

"Check the status of LoadID

Set objProcessStatus = objFDMAPI.API.MaintenanceMgr.fProcessStatus (objFDMAPI.API.State.LocName, objFDMAPI.API.State.CatName, objFDMAPI.API.State.Period)

If objProcessStatus.blnTBVal = false Then

strSubject = strSubject & strLoc

strEmailMSGLine = strEmailMSGLine & strLoc

strSMTPServer = 'mail.abc.com '.

' CdoSendUsing enumeration-1 = use smtp on the local computer, 2 = use smtp via network

intSendUsing = 2

' SMTP port on the server

intSMTPPort = 25

'Create the CDO configuration object '.

Set objConfig = CreateObject ("CDO. Configuration")

"Set the parameters of the Config object

With objConfig.Fields

                . Agenda ("http://schemas.microsoft.com/cdo/configuration/sendusing") = intSendUsing

                . Agenda ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer

                . Agenda ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = intSMTPPort

                . Agenda ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10

. Update

Ends with

'Create the CDO message object '.

Set objMsg = CreateObject ("CDO. Message")

'Assign to the configuration of the message config object object property.

Set objConfig = objMsg.Configuration

"Set the Message subject and send mail

With objMsg

. To = strToAddress

. From = strFromAddress

. Subject = strSubject & strLoc

. TextBody = strEmailMsgLine & strLoc

. Send

Ends with

On the other

WScript.Echo "Success Validation".

End If

' End with

End If

'Destroy objects of message '.

Set objMsg = Nothing

Set objConfig = Nothing

objFDMAPI.Dispose

Set objFDMAPI = Nothing

I am able to receive notifications by e-mail without the API. Ask you to help and guide me. Thanks in advance

Vikram

Delete this line

strPer = FormatDateTime (strPer, 2)

just use the name of period and do not scan.

In any case, I would say that you start with simple code. I just joined the code for AftValidate.

If you start with simple code that troubleshoot you more quickly.

Tags: Business Intelligence

Similar Questions

  • IE Script error: invalid argument

    Try to download the Vista CD. I get the message:
    IE Script error
    Line38
    2 tank
    Error: Invalid Argument
    Code 0
    URL file:///E:webfiles/template.js

    Hi al184doll,

    Thank you for using answers Forum.

    The script makes error refers to an error in the code that was written for the Web site.

    "Line38, Char 2" is the line of code and the character which is the origin of the problem on the Web site.

    You can contact the webmaster for the website to see if a resolution is available.

    I hope this helps.
    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • "Windows Mail wants to alert you Fatal error: Invalid argument," then stops my e-mail address

    Help with Windows Mail error

    I get a message, ' Windows Mail wants to alert you Fatal error: invalid argument "then stops my e-mail, request to send an error report. etc.  There are other users on this computer do not face this problem.  I received a lot of spam since I've added a few new members of the team of my daughter's soccer team.  Someone at - it help him?

    For junk mail, you can configure message rules to help eliminate the junk.  For the other question, check first for the antivirus or other program 3rd party interference (see www.oehelp.com/OETips.aspx#3) then try to compact and repair the database (www.oehelp.com/WMUTil/) and see if that fixes the problems.  If you have important messages, make sure that you back up them (see www.oehelp.com/backup.aspx#wm).

    Steve

  • How can I fix the 800cccdd or the fatal error: invalid argument errors?

    I installed Windows Live Mail on the client with Windows XP Pro SP3 machine after having problems with Outlook Express.

    I migrated their accounts more and they have the same problems in two e-mail clients.
    "Your IMAP server closed the connection. This can happen if you have left the connection idle too long. »
    IDLE completed

    Configuration:
    Account: * e-mail address is removed from the privacy *.
    Server: mail.example.co.uk
    Username: info + example.co.uk
    Protocol: IMAP
    Port: 143
    Secure (SSL): 0
    Code: 800cccdd
    Other times I may receive this error message:
    We received a notification on your ' * address email is removed from the privacy *' account: Fatal error: Invalid argument
    I tried this on other computers that are running Microsoft Outlook and Mozilla Thunderbird, without errors or problems.
    He was works well, only recently, we started to see this question, no changes on the server or the client have been changed (to the best of my knowledge).
    Can anyone say more?
    Thank you.

    I deleted a double "Junk E-mail" folder by using the mapi connection (could use OWA) and then was able to use the Imap Protocol.  I hope this helps.

  • I have the following error on my phone design-MuseJSAssert: error calling the function switch: Error: Invalid argument

    I tried to insert the third party html code 'a noaa weather map' in the design of my phone yesterday. It did not work well. So I deleted this return. Afterwords, I get the following:

    (Message on the Web page "MuseJSAssert: error by calling the function selection: error: invalid argument.")

    I already have all the design is complete and ready to publish. The desktop version works fine. But the design of the phone does not work. For the most part, I noticed that the menu master accordion does not work now.

    Help! I really want to redo the whole phone design. Thanks, H

    I have already found and corrected the error. Apparently, when you bind a phone

    Number of muse, he is not obliged to put a colon: in the figures. I have

    have removed the colon and handed over running the program and the error is cleared

    upward. A clear tutorial on the 'phone links' would be useful.

    Thank you. H

  • That is producing this error: MuseJSAssert: error calling the function switch: Error: Invalid argument

    Website: http://lovehopemercy.org/

    In my navigation header by clicking on the option "VISIT US", that is to say generates this error: MuseJSAssert: error calling the function switch: error: invalid argument

    The other options do not work correctly. I get an error on export as HTML of MUSE, but the link works fine in other browsers. I download using Dreamweaver CC 2014. Reversal function works fine; it's the direct click of the menu item at the top that causes the problem.

    Did I miss a bad link or something that I can fix?

    Thanks in advance.

    Hello

    Could you please try some suggestions given here and see if it works for you.

    Error after update today: MuseJSAssert:Error call function argument: Error: Invalid selector

    Let me know if you have any question.

    Concerning

    Vivek

  • Script error, invalid root in registry key 'HKCU\software\wymxuxnpw\udkvq '.

    Hello

    DELL XPS

    Windows 7 Home Premium SP1

    There is a consistent error every time that the computer starts
    and expenses of the Office:

    Script error
    "
    An error has occurred in the script on this page

    Line: 1
    Char: 71
    Error: Invalid root in registry key 'HKCU\software\wymxuxnpw\udkvq '.
    Code: 0
    URL

    Do you want to continue running scripts on this page?
    [YES] [NO]
    "

    I tried CCleaner and registry tool which sets other non obvious mistakes,

    but still has not fixed the above error.

    At the moment it's a consistent start annoying context menu
    Great short PC otherwise.

    How can this be repaired?

    Thank you
    GR

    Please download the free version of Malwarebytes.
    Update immediately.
    Do a full scan of the system
    Let us know the results at the end.

    http://www.Malwarebytes.org/products

  • Get the error when the remote procedure call

    When I try to call the child remote database procedure, I am getting error below:

    ORA-02064: operation divided not supported
    ORA-06512: at "NMUSER. NEW_CUST_UPLOAD', line 740


    (P.S. on line no 740 I published "commit" ;))


    I checked rights, synonymous with on all the objects they are very good.

    Santosh Pradhan wrote:

    ...

    (P.S. on line no 740 I published "commit" ;))

    Do validation on the remote database. Do it on the local database. If you have a distributed transaction, then this local validation, will invest also the remote data.

    See also: http://docs.oracle.com/database/121/ADMIN/ds_concepts.htm#ADMIN12118

  • VMControl error - 3: invalid arguments: Login failed - when you use VMWARE-CMD

    Hello

    I had a VM that does not - I received the error "the system returned error. Communication with the virtual machine has maybe stopped'.  I had a glance communities and found a lot of useful suggestions, mostly related to the use the VMWARE-CMD.

    Now I have 8 ESX 3.0.2 servers in a cluster and when I ssh to the console on the other 7 I have no problem running a VMWARE-CMD, but on this particular host that contains the virtual machine, I get VMControl error-3 error: invalid arguments: Login Failed - I get this if I try a getstate/start/stop/restart you name!  I get it even if I just try VMWARE-CMD - l.

    Has anyone had a similar problem?  Any help would be appreciated.

    Thank you

    I think that the vmware agent does not connect somehow.

    Try this.

    Right-click on the host in VI and unplug

    Connect directly to the host via VI and remove users from vmware

    connect to the host via ssh.

    go to/etc/vmware/ssl remove these certificates, there should be only 2.

    run: service mgmt-vmware restart

    They wait about 2 minutes and reconnect the host.  You will lose no VM configuration or, but who can help with the problem of vmware-cmd.

  • ImApp - an invalid argument was encountered

    I use as a mail Incredimail Plus client and began to receive the popup ImApp

    error "invalid argument encountered" just click OK and it goes away with

    no additional questions to Incredimail or system. Although everything seems to work

    very well the occational popup is disconcerting if not irritating.

    Appreciate your help. Thank you

     

    Hi Roderick,

    Thanks for choosing Microsoft Community!

    If I understand correctly, you receive a pop-up "an invalid argument encountered" on Incredimail Plus.

     

    You can contact Incredimail for additional help.

    Here is the link:

    http://www.IncrediMail.com/English/help/support.aspx

     

    Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.

  • Invalid arguments

    I am trying to install a printer driver for a wireless brother printer. I get error "invalid arguments" How can I spend it?

    Hi Patty1227,

    Follow the steps below to install the printer:

    a. click on start

    b. Select Control Panel

    c. click on printers and faxes

    d. start the Add Printer Wizard > click Next > local printer attached to this computer

    e. (uncheck automatically detect and install)

    f. click Next

    g. for the option "use the following port" selected in the drop-down list adds the name of the [standard tcp/ip] printer listed.

    You can also run the Troubleshoot utility and verify the results: printing problems and printing errors:http://support.microsoft.com/mats/printing_problems/en-us

    How to download and install the latest printer driver from your printer manufacturer's Web site:http://support.microsoft.com/gp/pc_print_introduction

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • invalid argument on disks after crash san vmdk... need help urgent

    Hello

    Last night we had an accident SAN because of a power failure. all the vm does not start after this crash.

    We receive the error: Invalid Argument

    also, when I want to delete the pagefile for the most important machine:

    RM: cannot remove 'SBS2008 - 84765360.vswp': invalid argument

    It seems that all of the swap and flat files are locked... I already tried:

    -Restart all esx hosts

    -restart services / services to stop when you try to delete the swap file

    -J' tried to re-create the vmdk file and include the flat file again, no luck

    -move the action to another logical unit number gives me the same error. It does not move

    -copy of the scp of the machine action will not work, cannot access the file.

    -the flat vmdk file renaming works, but I still can't access the file

    -vmware migrate action even error.

    I really need this virtual machine to work, please help

    Kind regards

    Marco Broeken

    Ok.  Here's what I would do: (it worked for me on ESX 3.5 U2)

    • Unregister the virtual machine in the LUN of your ESX 3.5

    • Present the LUN for a version of the host ESX 3.0.2

    • Save a VM from ESX 3.0.2 host

    • Turn on the virtual machine under ESX 3.0.2 and select keep to keep the same UUID

    • Wait for the virtual machine is fully started, stop the virtual machine peacefully

    • Unregister the virtual of ESX 3.0.2 machine

    • Register the virtual machine on ESX 3.5

    • Turn on the virtual machine

    • America Bess God and God bless you too!

    I would like to know if it works.

  • remote procedure call fail error fo vista SP2 printer installation

    I'm trying to reinstall my printer drivers and the HP software. I get the Windows Installer is not available. I have looked up lots of info on this and have tried many things but still seem to have a problem. This last time, I got the error message "the remote procedure call failed."  In services, the State of the PRC is started with Autostart upward, the RPC Locator is manual start. It is very annoying, because I can not use the HP printer. I disabled the AV and anti-spyware installation. Nothing seems to help

    Hello

    It sounds more like a problem with the installer for Windows rather than what it is with the printer itself.
    Have you tried to install other programs or equipment since the first see this message?
    If please see this thread and try again after the listed troubleshooting steps.
  • When you try to create the safety PIN or password photo, get the error "the remote procedure call failed."

    Logon to an account on the Win8 Pro system.  In the PC settings. Your account, try to create a PIN.  You will be asked your password, and when I enter the password, the tracking error.  "The remote procedure call failed."

    In the application event log, we see:

    The failing application name: CredentialUIBroker.exe, version: 6.2.9200.16384, time stamp: 0x5010a22d

    The failed module name: nvwgf2umx.dll, version: 9.18.13.1070, time stamp: 0x50b976f6

    Exception code: 0xc000041d

    Offset: 0 x 0000000000135122

    ID of the process failed: 0 x 1160

    Start time of application vulnerabilities: 0x01cddfd4b4a988ef

    The failing application path: C:\Windows\System32\CredentialUIBroker.exe

    Path of the failing module: C:\Windows\System32\nvwgf2umx.dll

    Report ID: fdf0d095-4bc7-11e2-be7a-e0cb4e8a55c5

    Faulting full name of the package:

    ID of the failed package-parent application:

    I did a search of exhaust gases and am not finding that anything related.

    Action taken:

    ran sfc/scannow and no reported problems.

    Need to stop the application to quit.

    I found the problem for the updated NVidia driver.  Once I disabled the display driver USB 3.0 that acts as a method to connect to a computer USB 3.0 (also tactile) monitor, the driver installed correctly and does not interfere with any of the Windows applications.
    Also, try to remove all the accounts on your system that are not user accounts that some applications will add them without apparent reason.  Applications still work correctly.  It's just less sure there to access your system.

  • cannot print the document from Windows Mail, get a script error

    When I try to print an electronic document of Windows Mail, I get the following error message:

    -An error has occurred in the script on this page

    -Line: 2115

    -Char: 1

    -Error: unexpected call to method or property access

    -Code: 0

    -url://ieframe.dll/preview.js

    Hello

    1. are you able to print other documents?

    2 have had any changes made to your computer before this problem?

    Try the reinstatement of OLE controls to correct the above error.

    Method 1: register the OLE control
    To do:
    1. click Start and type regsvr32 ole32.dll in the search field.
    2. press enter.

    Check if this helps you to print from Windows Live Mail. This usually solves the problem. If you are still having the same problem, follow the remaining steps.

    Method 2: disable the script debugger

    1. in the Tools menu, click Internet Options.
    2. on the Advanced tab , click on to clear display of each box script error notification, and then click OK.

    Method 3: Verify that Active Scripting, ActiveX, and Java are not blocked by Internet Explorer

    Active scripting, ActiveX, and Java are all involved in shaping the way information displays on a Web page. If they are blocked on your computer, it can disrupt the display of the Web page. Reset the Internet Explorer security settings to ensure that they are not blocked. To do this, follow these steps:

    1. start Internet Explorer.
    2. on the Tools menu, click on Internet Options.
    3. in the Internet Options dialog box, click the Security tab.
    4. click on default.
    5. click on OK.

    Note: ActiveX controls and Java programs are disabled in the high security level in Internet Explorer.

    Try to open a Web page where you previously received a script error. If you do not receive the error, the problem is resolved. If the problem persists, go to method 4.

    Method 4: remove all temporary files related to Internet

    1. start Internet Explorer.
    2. in the Tools menu, click Internet Options.
    3. click on the general tab.
    4. under browsing history, click deleteand when you are prompted, click Yes to confirm.
    5. in the dialog box delete browsing history , under Temporary Internet files, click delete filesand when you are prompted, click Yes to confirm.
    6. under Cookies, click delete Cookies, and when you are prompted, click Yes to confirm.
    7. under history, click delete history, and when you are prompted, click Yes to confirm.
    8. click on closeand then click OK to close the Internet Options dialog box.

    If all goes well, you should be able to print now.

    For more information, see:

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

Maybe you are looking for

  • request for iPhoto

    Hello When I have my digital camera the thumb importimages in a folder of the event and appear with the title awarded by the camera (e, g, DSCF0001). I rename all with eight-digit reference number, but if I copy them to a memory stick, they always di

  • can't get my swagbucks toolbar, it is installed, but will not be displayed

    I updated Firefox, and now my Swagbucks toolbar disappeared. I have the latest version of the installed swagbucks and the "search with hinder" we're still working, but my normal Swagbucks isn't the case to find. I used to be able to see a list of too

  • AutoFill transitions

    Hi people, Does anyone know how to set iMovie to AutoComplete of transitions to save me having to copy them into each time after each clip? I use the latest version of iMovie. Concerning Mark

  • Unmountable Boot Volume Windows Vista no disk?

    Hello recently my Dell Inspiron 1525 abruptly turns off automatically. I tried to turn it back on, and he went to BSoD. He says unmountable boot volume. I don't have my Windows Vista disk, but I have a Windows 7 for HP drive, that will work? Thanks a

  • Xperia Z3 and Smartband SWR10

    I had a smartband swr10 connected to my Xperia Z3 via NFC. Unfortunately while it was connected and logging, I managed to lose my wrist device. Now my phone again to reconnect the device using NFC. I want to be able to remove the device to stop the m