Error: An insufficient number of arguments were supplied for function

Hi ,
I changed the data source for a data set on my report . The data source  is still pointing to same server and database but I am getting this error 
"An error occurred during local report processing
Query execution failed for data set 'Data Set Name'
An insufficient number of arguments were supplied for function "
I checked the function number of arguments again and it was correct and even executed the function in the dataset query designer and it works fine.
any ideas for the reason for this error ?

Without seeing the query you use or function its hard to suggest.
See if parameter passed from SSRS has expected values. Is there some multivalued parameters involved?
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • ADO Error: an insufficient number of arguments....

    Im currently using Access 2000 which is connected to a SQL database. I have a query (Or View) that runs every month. The problem i had was i had to manually make some changes every month to get to the data i needed so i changed this View into a Function with a parameter so i can input the detail(s) i need and it will run correctly - this works so far but the original View was also used within other queries that were created. Now the problem i have now is some of the other views that are now connected with the newly created Function comes up with the error:
    ADO error: an insufficient number of arguments were supplied for the procedure or function Name_Of_Function.
    I called the newly created function the exact name as the original view to ensure i had no problems. Any idea of whats happening here and how to resolve?
    Thanks

    Heres the function i have:
    Code BlockSELECT     TOP 100 PERCENT dbo.[Totals].User, dbo.[Totals].[Account Name], dbo.[Totals].Company, dbo.[Totals].Name,
                          dbo.[User].Amount AS [Month Amount], dbo.[User].Profit AS [Month Profit], SUM(dbo.[Totals].[Y Amount]) AS [Y Amount],
                          SUM(dbo.[Totals].[Y Profit]) AS [Y Profit], dbo.[User].Month
    FROM         dbo.[User] RIGHT OUTER JOIN
                          dbo.[Totals] ON dbo.[User].[Account Name] = dbo.[Totals].[Account Name] AND
                          dbo.[User].User = dbo.[Totals].User
    GROUP BY dbo.[Totals].User, dbo.[Totals].[Account Name], dbo.[Totals].Company, dbo.[Totals].Name,
                          dbo.[User].Amount, dbo.[User].Profit, dbo.[User].Month
    HAVING      (NOT (dbo.[Totals].User = N'Temp')) AND (dbo.[User].Month = @Month)
    ORDER BY dbo.[Totals].User, dbo.[Totals].Company
    Where it states Month = @Month is where the problem is i think. This Function runs fine as i want it to. But when im in another view that uses this function it get the above error. The only way i dont get the error is when i type in the month then all runs fine - but i would prefer it to ask me what month i need the data for????
    Thanks

  • There is an invalid number of arguments found in the function '@PARENTVAL

    Hi
    In a prior version of Hyperion, we had a business rule which pushed values down to to a child member
    +Fix ( EE105, , @Children("FX entry"), &District, @UDA("Cost centre - primary", "DuplicateMbr"),C3090,[Opex_WriteScenario], [Opex_WriteVersion],&CurYear: &YearPlus6)+
    Month = @PARENTVAL("Cost Centre");
    Endfix;
    We are moving across to Calc Manager in version 11.1.2.1 and the problem is that I now get the following error message:
    An error occurred in: Calc Opex CC
    There is an invalid number of arguments found in the function '@PARENTVAL(Cost Centre)'. .
    Your assistance is appreciated.
    Cheers

    Check if you can validate this script again Essbase, I am sure you will be able to.
    If I remember correctly there were few functions missing in calc manager which were fixed in the patches released.
    Try it on the latest patch:
    Patch 14265667: Patch Set Update: 11.1.2.1.104 for Oracle Hyperion Calculation Manager
    Cheers..!!!
    Rahul S.

  • Error: Illegal number of arguments passsed to the function call

    HI All,
    In our scenario we are using XSLT mapping with java enhancement.Its working fine in Stylus studio but when the same is imported into XI its throwing the below mentioned error:
    javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: Illegal number of arguments or types of arguments in a call of function 'Trans:Convert'.
    Our requirement is that we are summing up the field "Grant_Amount" which occurs multiple times in the source structure and the sum is mapped to the field "Sum' on the target side.The stylesheet is working fine in stylus studio but whe  imported into XI the above mentioned error is being thrown.Can any one one please help me solving this issue.
    The XSL, the source XMLand the java class are mentioned below:
    <
    XSL:
    ===
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.infosys.com/sap/xi/projects/sce/n1" xmlns:Trans="com.company.group.String2Number">
         <xsl:template match="/">
              <a:MT_TargetXSLJava>
              <Record>
                   <Detailrecord>
                         <Sum>
                      <xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
                         </Sum>
                          <Flag>
                     <xsl:text>1</xsl:text>     
                          </Flag>
                  </Detailrecord>
              </Record>
              </a:MT_TargetXSLJava>
         </xsl:template>
    </xsl:stylesheet>
    XML:
    ===
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SourceXSLJava xmlns:ns0="http://www.infosys.com/sap/xi/projects/sce/n1">
       <Recordset>
          <DETAILRECORD>
             <Grant_Amount>$100.00</Grant_Amount>
          </DETAILRECORD>
          <DETAILRECORD>
             <Grant_Amount>$200.00</Grant_Amount>
          </DETAILRECORD>
          <summary_record>
             <Total>$300.00</Total>
          </summary_record>
       </Recordset>
    </ns0:MT_SourceXSLJava>
    Java Code:
    ========
    package com.company.group;
    public class String2Number
    public static double Convert(String[] a)
    double sum=0;
    String[] temp = new String100;
    for(int i=0;i<a.length;i++)
    temp = (a).replaceAll(",
    $
    sum=sum+Double.parseDouble(temp);
    return sum;
    Please guide me to the right solution.
    Thanks and Regards,
    Karanam

    If you are using below mentioned java code for Convert method, then see you are passing a String Array, but in below statement:
    <xsl:value-of select="Trans:Convert(//Grant_Amount)"/>
    This is just a single value i think, you have to pass an array with values 100,200,300. Pls check it.
    BR,
    Alok

  • ui:ContextMenuItem in MXML causes Error 1136: Incorrect number of arguments

    Hello,
    I'm trying to define a context menu declaratively like so:
    quote:
    <ui:ContextMenu id="editChartDataContextMenu">
    <ui:customItems>
    <mx:Array>
    <ui:ContextMenuItem caption="Clear"/>
    </mx:Array>
    </ui:customItems>
    </ui:ContextMenu>
    However, the Flex compiler gives an error for the line that
    reads "<ui:ContextMenuItem ....". (the line in boldface).
    The error is: 1136: Incorrect number of arguments. Expected
    1.
    Needless to say, I have experimented with varying number of
    attributes, but no luck.
    I have googled in vain to find examples where context menus
    are built up using markup; all examples seem to be imperative
    (ActionScript) code, instead of declarative.
    Any ideas?
    Joubert

    I know context menus can be used in limited situations with
    limited functionality in Flex. Don't know if your usage is within
    the ways context menus are used in Flex.

  • Error: parse error before '.' & number of arguments doesn't match

    Compiling my simple source code reports error error: parse error before '.' . But in fact there is not any "." token on this line.
    At my guess it has something to do with JNI C macros but I really have no idea how to find that bug
    // ##net_java_dev_jssm_MulticastSSM.h: line 55
    JNIEXPORT void JNICALL Java_net_java_dev_jssm_MulticastSSM_join2
      (JNIEnv *, jobject, jstring, jstring);
    // ##net_java_dev_jssm_MulticastSSM.c: line 306
    JNIEXPORT void JNICALL Java_net_java_dev_jssm_MulticastSSM_join2
      (JNIEnv *env, jobject obj, jstring s_addr, jstring g_addr) {
    // no code yet
    mingw32-gcc.exe -DWIN32 -Wall -c -IC:\java\JNI_headerFiles\jdk1.6.0/include -IC:\java\JNI_headerFiles\jdk1.6.0/include/win32 -shared src_c/net_java_dev_jssm_MulticastSSM.c -DNODEBUG
    src_c/net_java_dev_jssm_MulticastSSM.c:307: error: parse error before '.' token
    src_c/net_java_dev_jssm_MulticastSSM.c: In function `Java_net_java_dev_jssm_MulticastSSM_join2':
    src_c/net_java_dev_jssm_MulticastSSM.c:307: error: number of arguments doesn't match prototype
    src_c/net_java_dev_jssm_MulticastSSM.h:56: error: prototype declaration
    make: *** [all] Error 1
    C compiler: mingw32-gcc.exe
    JNI: jdk1.6.0
    Any help would be really appreciated.

    Hi radone,
    I just read your posting and suddently got an idea why your compiler was complaining about the period. In most C environment, there is a definition
    #define s_addr S_un.S_addr
    in some socket-related header file! Now you know where the dot is coming from.

  • Error msg- ME53N tocde "company was not supplied in Function module inte -

    Hi
    When user is trying to open ME53N tcode he is getting folowing error message,
    "company was not supplied in Function module interface"
    Kindly help, how to avoid this error message.
    Thank You in advance.
    WR,
    Nilesh

    We observed this error comes when you had previously opened any PO which now has missing data or assignment like ..plant deactivated..plant CC assignment  etc.
    Work around, Open any Good PO in chnage mode me22n or create any test PO in me21n. And then try to execute me23n.
    Regards,
    Nilesh Hiwale

  • MDW Disk Usage for Database Report Error - A data source has not been supplied for the data source DS_TraceEvents

    Hello,
    On the MDW Disk Usage Collection Set report, I get the following error when I click on a database hyperlink.
    A data source has not been supplied for the data source DS_TraceEvents
    SQL profiler shows the following SQL statements are executed (I've replaced the database name with databaseX)
    1. exec sp_executesql N'SELECT
    dtb.name AS [Name]
    FROM
    master.sys.databases AS dtb
    WHERE
    (dtb.name=@_msparam_0)',N'@_msparam_0 nvarchar(4000)',@_msparam_0=N'databaseX'
    this returns zero rows as databaseX does not exist on my MDW central server, but is a database on a target server (i.e. one that is being monitored and uploaded into the MDW central server).
    2. USE [datatbaseX]
    this produces the following error:
    Msg 911, Level 16, State 1, Line 1
    Database 'databaseX' does not exist. Make sure that the name is entered correctly.
    why is the report looking for the database on my server?
    thanks
    Jag
    Environment: MDW (Management Data Warehouse) on SQL 2008 R2

    Hi Jag,
    Based on my test, while this database is offline, we will encounter this issue. This is because that while we click the certain database in “Disk Usage Collection
    Set” report, it will query some information with that certain database. If this database is offline, we will not access this database to acquire related information and generates this error.
    Therefore I recommend that you check the status of this database by using this system view:
    sys.databases. If it is not online, please execute
    the following statements in a new window to make this database to be online:
    USE master
    GO
    ALTER DATABASE <database name> SET ONLINE
    GO
    If anything is unclear, please let me know.
    Regards,
    Tom Li

  • How to catch "an insufficient number of arguments" error?

    Hi All,
    I have a question - how to cauch this error:
    SELECT * FROM dbo.ExistingFunction ('Wrong number of params - ExistingFunction expects 2 of them')
    I tried using try-catch (both on the same level and one level higher) but with no success.
    Best Regards,
    Mike

    There are a couple of variations with this error, because it depends on when the mismatch between the caller and the function occurs.
    1) The function call is incorrect when you attempt to create the procedure => the procedure will not be created.
    2) The function was correct when you created the procedure, but the function was changed before the procedure was compiled and put into cache. In this case compilation of the procedure fails, and it is never entered. And thus you cannot trap it in the procedure
    itself. You can catch it in outer scope.
    3) The function was changed after the procedure was put into cache. This causes a statement recompile at run-time, and as will all compilation errors, you cannot catch this in the local CATCH block despite you have entered the TRY block. You cannot however
    trap it in the caller.
    You say that you are not trap it even one level higher, but that is certainly possible, as testified by the repro below:
    [sql]
    CREATE FUNCTION funkis (@a int)
    RETURNS @r TABLE (a int) AS
    BEGIN
       INSERT @r VALUES(@a + 1)
       RETURN
    END
    go
    CREATE PROCEDURE inner_sp AS
    BEGIN TRY
       PRINT 'Entering inner_sp'
       SELECT * FROM dbo.funkis(1)
       PRINT 'Exiting inner_sp'
    END TRY
    BEGIN CATCH
       PRINT 'Error trapped in inner_sp: ' + error_message()
    END CATCH
    go
    CREATE PROCEDURE outer_sp AS
    BEGIN TRY
       PRINT 'Entering outer_sp'
       EXEC inner_sp
       PRINT 'Exiting outer_sp'
    END TRY
    BEGIN CATCH
       PRINT 'Error trapped in outer_sp: ' + error_message()
    END CATCH
    go
    EXEC outer_sp
    PRINT '------------------------'
    go
    ALTER FUNCTION funkis (@a int, @b int)
    RETURNS @r TABLE (a int) AS
    BEGIN
       INSERT @r VALUES(@a + @b)
       RETURN
    END
    go
    EXEC outer_sp
    go
    DROP FUNCTION funkis
    DROP PROCEDURE inner_sp, outer_sp
    [sql]
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Error 1137: Incorrection number of arguments. Expected no more than 1

    Hello from a beginner!
    I want my navigation bar to open other pages in the same window.  Currently, it's opening as if it's _blank (must be the defaut when nothing is coded).
    I thought I was coding correctly, but the error above popped up - so now I don't know what to do next.  Any help would be appreciated.  Thanks in advance.
    The code as it is with the error is as follows - the line with the error is highlighted in italics.
    function goHome(event:MouseEvent):void {
    var targetURL:URLRequest = new
    URLRequest("http://www.fairwoodcommunitynews.com/Alphatest/Home.html", "_parent");
    navigateToURL (targetURL);
    homeBtn.addEventListener(MouseEvent.CLICK, goHome);

    Thanks - I have been googling and playing with the code and inserted "_self" (below) and it worked.  What is the difference between "_parent" and "_self" ?
    Thanks for taking the time to help!
    function goHome(event:MouseEvent):void {
    var targetURL:URLRequest = new
    URLRequest("http://www.fairwoodcommunitynews.com/Alphatest/Home.html");
    navigateToURL (targetURL, "_self");
    homeBtn.addEventListener(MouseEvent.CLICK, goHome);

  • Incorrect number of arguments expected 1

    Hi,
    I'm new to this flex. Actually i want to set busycursor in loadValue Function. But i'm getting error as Here i'm getting an error as incorrect number of arguments expected 1.
    the error that i'm getting in 3rd line. and i have not pasted full code here. But i pasted only where i'm getting error when i tried to inser busyCursor.
    So please help me what i hv to change. waiting for your replay.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              creationComplete="loadValues()" horizontalAlign="center"      --------------->  Here i'm getting an error as incorrect number of arguments expected 1.
              verticalAlign="middle"  color="#080808" borderColor="#FFF8E0" backgroundColor="#FFF8E0"
              xmlns:local="*"
              xmlns:tInput="assets.actionScript.*"
              xmlns:controls="com.iwobanas.controls.*"
              initialize="initTimer()"
              xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
              applicationComplete="init(event)" height="100%" width="100%">
    <mx:Style source="defaults.css" />
    <mx:Script>  
              <![CDATA[
                        import assets.actionScript.Trim;
                        import com.scottlogic.charts.DataGridExporter;
                        import mx.controls.ComboBase;
                        import assets.script.pods.view.Data;
                        import org.alivepdf.layout.Unit;
                        import mx.collections.ICollectionView;
                        import assets.actionScript.EscalationDTO;
                        import alarmSlide.TowerSelection;
                        import flash.net.navigateToURL;
                        import mx.binding.utils.BindingUtils;
                        import mx.controls.dataGridClasses.DataGridItemRenderer;
                        import mx.events.ListEvent;
                        import mx.charts.chartClasses.DualStyleObject;
                        import assets.actionScript.TowerInchargeRoleMappingDTO;
                        import flash.utils.clearInterval;
                        import flash.utils.setInterval;
                        import alarmSlide.SendMessageForEscalation;
                        import mx.skins.halo.BusyCursor;
                        import alarmSlide.REForAlarmReport;
                        import mx.managers.ToolTipManager;
                        import mx.controls.ToolTip;
                        import mx.collections.SortField;
                        import mx.collections.Sort;
                        import mx.messaging.messages.RemotingMessage;
                        import mx.events.AdvancedDataGridEvent;
                        import assets.actionScript.TowerStatus; 
                        import mx.rpc.events.FaultEvent;
                        import mx.rpc.events.ResultEvent;
                        import assets.actionScript.ValueObject;
                        import mx.messaging.channels.AMFChannel;
                        import alarmSlide.LEDChar;
                        import mx.utils.URLUtil;
                        import com.adobe.serialization.json.JSON;
                        import com.adobe.serialization.json.JSONDecoder; 
                        import mx.collections.ArrayCollection;
                        import mx.collections.IViewCursor;
                        import mx.collections.IHierarchicalCollectionView;
                        import mx.controls.Alert;
                        import mx.managers.PopUpManager; 
            import flash.net.FileReference;
                   import mx.messaging.messages.IMessage;
                  import mx.messaging.Channel;
                  import mx.messaging.ChannelSet;
                  import mx.messaging.channels.StreamingAMFChannel;
                        import flash.display.StageDisplayState;      
                        import mx.collections.ArrayCollection;
                        import mx.managers.CursorManager;
                        private var sendMessageScreen:SendMessageForEscalation;
                        private var escalationAlarmHistoryPopup:EscalationAlarmHistoryPopup;
                        public var manualOrScheduleTicketing:ManualOrScheduleTicketing;
                        public var editEscalationLevelPopup:EditEscalationLevelPopup;
                        private var escalationLevelPopup:EscalationLevelPopup;
                        private var escalationSiteDetailsPopup:EscalationSiteDetailsPopup;
                        [Bindable] private var towerName:String = "NoData";  
                        [Bindable] private var contactNumber:String = "NoData";
                        // Data Storgae variables
                        [Bindable] private var energyConsumption:ArrayCollection = new ArrayCollection();
                        [Bindable] public var dataColl:ArrayCollection = new ArrayCollection();
                        [Bindable] public var closedTicketArrayColl:ArrayCollection = new ArrayCollection();
                        [Bindable] private var towerDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] private var escalationData:ArrayCollection = new ArrayCollection();
                        [Bindable] public var escalationLevelDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] public var towerEscalationLevelDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] private var escalationMasterList:ArrayCollection = new ArrayCollection();
                        [Bindable] public var alarmDetailsList:ArrayCollection = new ArrayCollection();
                        [Bindable] public var siteInformationList:ArrayCollection;
                        [Bindable] public var communicationInfoList:ArrayCollection;
                        [Bindable] public var operatorDetailsList:ArrayCollection;
                        [Bindable] public var siteLiveDataList:ArrayCollection;
                        [Bindable] public var siteLiveAlarmDetailsList:ArrayCollection;
                        [Bindable] public var ticketEscalationStateList:ArrayCollection = new ArrayCollection();
                        [Bindable]
                        public var siteAndDistrictDisplayName:String="";
                        public var categoriesArrColl:ArrayCollection = null;
                        public var tempArrColl:ArrayCollection = null;
                        public var userID:int = 0;
                        public var customertId:int = 3;
                        private var popupWin:PopupForTicketing;
                        // to store tower configuration
                        public static var data:ArrayCollection = new ArrayCollection();
                        private var intervalUnit:uint;
                        [Bindable]  
                        public var folderList:XMLList;
                        // BlazeDS variables
                 [Bindable] public var channelUrl:String;  
                  [Bindable] public var liveId:int=0;
                           [Bindable]
                           public var emailOrSmsMessageFormat:String = "";
                        [Bindable]
                        private var escalationEditOption:Boolean = false;
                        [Bindable]
                        private var swapCount:int = 0;
    //  ---------------------------- To Control Session ------------------------- //
            public var myTimer:Timer;
                        private function initTimer():void
                                   myTimer = new Timer(1800000);
                             myTimer.addEventListener("timer",logout);
                             this.addEventListener(MouseEvent.MOUSE_MOVE, resetTimer);
                             myTimer.start();
                        private function logout(event:Event):void
                                  this.addEventListener(MouseEvent.CLICK,forward);
                        private function forward(event:Event):void
                                  navigateToURL( new URLRequest("jsp/checkin/index.jsp"),"_self");
                        private function resetTimer(event:Event):void
                                  myTimer.reset();
                            initTimer();
    //  ---------------------------- To Control Session ------------------------- //
                            * This method will be called as soon as SWF loads in the browser , creating a AMF channel which communicates to Java
                            private function loadValues(mouse:MouseEvent):void{   ----------------------------------------------------------------->> When i enter Event to the loadvalues function i'm getting that error
                                            ticketViewStack.selectedChild = liveTicketVBox;
                                      userID = Application.application.parameters.userId;
                                      customertId = Application.application.parameters.customerId;
                                             if("true" == Application.application.parameters.escalationEditOption.toString()){
                                                escalationEditOption = true;
                                            channelUrl = "./messagebroker/amf";
                                             userID = 92;
                                      customertId = 3;
                                               escalationEditOption = true;
                                              channelUrl = "http://172.16.1.144:5009/messagebroker/amf";
                                var cs:ChannelSet = new ChannelSet();
                                            var customChannel:AMFChannel = new AMFChannel("my-amf",channelUrl);
                                            cs.addChannel(customChannel);
                                            remoteObject.channelSet = cs;
                                            remoteObject.getEscalationMaster();
                                            cursorManager.setBusyCursor();
                                            remoteObject.getAllLiveEscalationDetails(userID,customertId,displayTo wer.selectedItem.data,ticketType.selectedItem.data);
                                            cursorManager.removeBusyCursor();
                                            displayTower.selectedIndex = 0;
                                            refereshTime.selectedIndex = 0;

    Hi, Actually i did changes like show below.
    i made creationComplete="loadValues()"
    And i made
    private function loadValues():void
    I want to  set a busy cursor, But its not working.
    Actaully the loadValues() function will load the data when we open that perticular page.but it;ll take some time to load so that i want to put busy cursor. In above Code i used busy cursor but its not working.

  • Error :No operating system credentials were set for running the program

    i am getting this error when i am trying to execute a shell script in cmc. i got the status as failed, when clicked on that failed message this is what i got
    Title: delete_month 
    Document Type: Program 
    Status Failed 
    Destination: Unmanaged Disk destination properties have been set to the chosen Job Server's defaults. 
    Owner: boadmin 
    Server Used: cms_451.ProgramJobServer 
    PID: 15010 
    Folder Path: Temp/ 
    Remote Instance: No 
    Creation Time: 12/1/2010 7:21 PM 
    Expiry: 12/1/2020 7:21 PM 
    Start Time: 12/1/2010 7:21 PM 
    End Time: 12/1/2010 7:21 PM 
    Error Message: No operating system credentials were set for running the program.
    what might be the reason

    what do u mean by pm application, i didn't get that
    we r  using boe xi 3.1 sp3.on sun solaris
    my exact scenerio  is
    I wrote a shell script to delete the reports which r one month old. the reports generated by the boe r placed in unix machine(in a specific folder for example abc) and my boe server is also on unix .I imported the the shell script into boe.I assigned the path /xx/yy/abc (the path where our reports r stored) to the arguments and i gave the working directory path as the xx/yy/bobj/bobje/data/frsinput/a0_89/ ( this is the path where my shell script is present).after giving these details i am unable to delete any of the content from that folder. I am getting the failed message when i am trying to execute the object in cmc. i am pasting the shell script as well as the error message here if any body knows anything help me. do i need to set anything in cmc or what i need to do
    this is the shell script to delete the files in the specified directory
    #!/bin/ksh
    # set -x
    if [[ $# != 1 ]]; then
       echo "Usage : $0 [Directory Path]"
       exit 0
    fi
    echo "Source directory : " $1
    # To display the list of files more than a month older
    for v_fname in $(find "$1"/ -name "*" -mtime +30 -type f)
    do
      echo "$v_fname"
    done
    # To delete the files of more than 1 month older
    find "$1"/ -name "*" -mtime +30 -type f -exec rm {} \;

  • Getting Wrong number of Arguments as response

    Hi,
    I am just trying run one Process Rtask for RACF called "AdduserToDataSet" which gives a response called Wrong number of Arguments:
    I checked for both Process Task mapping variables and Adapter Varibles and looks like both are same. Not sure what could be the issue?
    2011-05-27 06:04:30,281 INFO (http-0.0.0.0-8080-7) [STDOUT] Target Class = com.identityforge.oracle.integration.IdfUserOperations
    *2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] java.lang.IllegalArgumentException: wrong number of arguments*
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTODATASET.ADDUSERTODATASETTASK(adpADDUSERTODATASET.java:109)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTODATASET.implementation(adpADDUSERTODATASET.java:58)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    2011-05-27 06:04:30

    Can you enable the debug logging level for the connector and retry and then post the output?
    Thanks,
    Kevin

  • Error "Specify account number" during PRELIMINARY_POSTING_FB01

    Dear All,
    I am trying to post FI document in FB01 through PRELIMINARY_POSTING_FB01 F.M.
    I am passing following data to it.
    *Populate the header
    Company code
    ls_bkpf-bukrs = ls_posting2-bukrs.
    Year
    ls_bkpf-gjahr = ls_posting2-budat+0(4).
    Document Type
    ls_bkpf-blart = p_blart.
    Posting date
    ls_bkpf-bldat = ls_posting2-bldat.
    Document Date
    ls_bkpf-budat = ls_posting2-budat.
    Period
    Is_bkpf-monat = Is_posting2-monat.
    *currency
    Is_bkpf-waers = is_posting2-waers.
    *Item data
    *posting key
    is_bseg-bschl = is_posting-bschl.
    *Account
    is_bseg-hkont = is_posting-hkont.
    *amount
    is_bseg-wrbtr = Is_postng-wrbtr.
    After executing this it gives error
    "Specify account number"
    Is there any sollution for that......
    Regards,
    Amar

    That is bcoz the account number you are populating in table parameters is not matching with values in table while processing.  Use FM conversion_exit to prefix zeroes so that it matches the value in table.

  • Maximum number of Arguments in Javascript function

    Is there a way to handle large number of arguments to a Javascript function ?
    abhay

    Hello,
    Well this is more a pure javascript question than a HTML DB you should ask google.
    But it depends what you are doing with your function, if each value is a specific variable then no your function will have to look like f(nul,null,null,1,null,null,null,.........) .
    If you are using them to populate an js array you can iterate through your arguments or just provide the array are your argument.
    Personally and I do know a little about javascript I would avoid like the plague any js function that requires 50 arguments ( i usally start looking at a different solution at abut 10 arguments) especially if most of them could be null, there absolutely has to be a better way to do it.
    Like breaking up into smaller more specific functions or creating a js object that is more robust, agian you should ask google.
    Carl

Maybe you are looking for

  • Variable Substitution not working correctly?!

    Hello all, perhaps some of you faced the same problem. It depends on the variable substitution in XI (PI). We have got an IDOC - FILE szenario. As far everything is working fine. The XML is created correctly. Now we want to get two fields from the pa

  • Base unit to change in material master

    we  assigned base unit of measurement to one of our material code say KM and after that we created routing .When we come to know that base unit is wrong and instead of KM base unit required was KG then we delete routing for the material.After that wh

  • Re:FM's

    hi experts,, can u pls give me replacement of this FM's 'SAPWL_STATREC_READ_FILE' 'RS_TREE_MODIFY_NODE' thanks n regards, rekha.

  • Activation fail, broken DCs

    Hi, guru: we have a track call MRP, and Buildspace are: - MRP_C - MRP_D anyone can tell me what is MRP_C for. is that for consolidation? I checked landscape configurator, runtime systems, and consolidation system is not ticked. we have problem with a

  • Ideacentre A310

    Help please anyone!  Where can I get a replacement wireless keyboard for my IdeaCentre A310 in the UK? Dog has eaten it!! Product number A310-K BT.  Thanks in advance to anyone who can help.