String.substring not functioning??

Hi everyone,
I am a newbie to Java but couldn't wait to dig in. I am using TEXpad and got the following output. I have also used SunOne and it gave me the same results. Any Ideas?
This is a snipet of the code I have trouble with. inputLne is a String.
inputLine = loginRead.readLine();//input from socket stream
System.out.println(inputLine); //000&000&~ stored in inputLine
System.out.println(inputLine.length()); // 9 is printed
System.out.println(inputLine.substring(2,1)); // Exception happens here
System.out.println(inputLine.substring(2,2));
System.out.println(inputLine.substring(2,3));
tempLine = inputLine.substring(2,1);
The output below is from the code above.
000&000&~
9
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: -1
Thanks in advance for any help.

Alright, thanks for the advice but I still have a small question.
The exception is now gone.
If I use (2,4) I get "0&"
If I use (2,3) I get the exception error posted above.
How can I get a substring of one character long? I just want the third "0" from the left "000&000&~".
Again, thanks for the help.

Similar Messages

  • Will substr + not function ignore null values ?

    hi guys
    i have a table test with 1 column named (value) of varchar2 type.
    inside this table, i have 3 rows.
    1) 2255
    2) null
    3) 5522
    when i do select * from test where substr(value,1,1) not in ('3'), it only returns me
    row 1) 2255
    row 3) 5522
    but why doesnt it return me row 2 with null value as well ?
    since substr(null) will generate null. and null is also NOT IN ('3'), why doesnt it shows?
    any ideas guys ?

    Because NULL is unknown.
    By definition you cannot say if unknown is IN or NOT IN anything.
    So you have to account for the unknown however you think appropriate, in your case that would mean saying:
    select * from test where substr(value,1,1) not in ('3') OR value IS NULL;
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Unflatten From String Not Functioning in Mobile Module 2011

    Mobile Module does not get updated since version 2011. I am not sure my question will be solved. 
    I have been using Simple Messaging Reference Library (STM) for a couple of years. I use them in my Mobile Module code too. It has been working fine until lately I updated to the latest version of STM.
    I noticed that 'Read Message (TCP).vi' was not functioning properly in the Mobile Module code. After a long debugging, I found the source of the problem. 'Unflattern From String.vi' does not work in Mobile Module any more. I did a test as shown above. 
    My questions are
    1). 'Unflattern From String' was changed so it is not supported in Mobile Module 2011?
    2) Why the same code worked before, but not now?
    I use LabVIEW 2011 and Mobile Module 2011. Thanks. 

    MengHuiHanTang wrote:
    Mobile Module does not get updated since version 2011. I am not sure my question will be solved. 
    I have been using Simple Messaging Reference Library (STM) for a couple of years. I use them in my Mobile Module code too. It has been working fine until lately I updated to the latest version of STM.
    I noticed that 'Read Message (TCP).vi' was not functioning properly in the Mobile Module code. After a long debugging, I found the source of the problem. 'Unflattern From String.vi' does not work in Mobile Module any more. I did a test as shown above. 
    My questions are
    1). 'Unflattern From String' was changed so it is not supported in Mobile Module 2011?
    2) Why the same code worked before, but not now?
    I use LabVIEW 2011 and Mobile Module 2011. Thanks. 
    Is that the real code or just a mockup to demonstrate the issue?  I'm asking because the code is set up to run once and then wait until the stop button is pressed.  Then the VI will complete and exit.  Is the the desired behavior?
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Menubar shortcut not functional if focus is on string control

    Dear All,
    I am wondering if this is the expected behavior or if I am doing something wrong:
    On a panel I have a string control; on double clicking I open a file select box to select a file, the file name then is displayed on this string control. After this action, this string control is the active control, indicated by the grey frame.
    I also have a menu bar with some shortcut keys defined, such as F2. It appears that F2 is not functional as long as the  focus is on the string control. This is inconvenient because a typical user action is selecting a file and then pressing Fx. To solve this problem the user needs to click somewhere on the panel to move the focus to another control. Of course this could be done programmatically, but this extra effort is not necessary say for ring controls or numeric controls. Also in numeric controls I can change the numbers, but even if a numeric control is the acitve control because of editing the value F2 immediately works.
    Help is appreciated.
    Thanks,
    Wolfgang
    Solved!
    Go to Solution.

    I just tried in a project of mine and had no problems in calling a menu function with its shortcut key while the focus is on a string control with a callback attached: maybe the problem lies in the string control callback, which is possibly trapping the keypress event before it is sent to the panel.
    I tested both with "regular" shortcut keys (such as Ctrl + P) and with F2 only as the shortcat. My callback is not trapping EVENT_KEYPRESS event.
    EDIT: I tried by swallowing keyboard presses with     if (event == EVENT_KEYPRESS) return 1;  but I am still able to operate on menus with shortcut keys. Seems the reason lies elsewhere: you can try progressively excluding parts of control callback and see when menus return responsive.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Java.util.zip.ZipException: a device attached to the system is not function

    getting a java.util.zip.zipexception : a device attached to the system is not functioning error - what could cause such an error?
    My program finds all zip files in an archive and then searches through them for xls files, which it extracts and re-locates.
    I havent even a clue where to look for the cause of this exception but Ill attach at the bottom the code in the general vicitiny of the trigger so that you can get kind of an idea what Im trying to do, and if im lucky, even spot my problem. :) Thanks!!
    //zips is an array of zip files
    int found = 0;
    File[] haveXLs = new File[zips.length];
    for (int i = 0; i < zips.length; i++){
    String fileName = new String("L:/Vision/Archive/" + zips.getName());
    ZipFile archive = new ZipFile(fileName);
    String name = zips[i].getName().substring(0,8);
    for(Enumeration e = archive.entries(); e.hasMoreElements();){
    ZipEntry entry = (ZipEntry) e.nextElement();
    if(entry.getName().substring(0,8) == name){
    haveXLs[found] = zips[i];
    found++;

    Hey there a few things.
    Make sure that you dont use fileseparators like you do. ("/")
    Use the separator generated for your system.
    Something like:
    String sep = System.getProperty("file.separator");
    You mentioned it work local, but not network.
    Either you have plenty of harddrives or L: is a mapped drive.
    Is it working at the mapped drive?
    When you say on the network, how are you accessing the files?
    Could it be possible for another user to lock a file, so you wont have access to it over the network?
    BR.
    MagDy

  • System.Diagnostics.EventLog - A device attached to the system is not functioning

    I was getting an error ....
    System.ComponentModel.Win32Exception was caught
      ErrorCode=-2147467259
      HResult=-2147467259
      Message=A device attached to the system is not functioning
      NativeErrorCode=31
      Source=System
      StackTrace:
           at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
           at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
           at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
           at VB_Braums_ClassLib.LogIt.WriteEventLog(String Entry, EventLogEntryType eventType, String Source) in \\Corp01\Vol1\Mis\Pccode\Ms.net\ProductionLibs\ProductionLibs\ProdLibCommon.vb:line 3666
      InnerException: 
    This code is in a library, so I create a "hello world" to demonstrate the issue. I will post it at the end. This .net 4 framework and it's been around for a while in our code. We are starting to upgrade from XP to Win 7. Basically event log sizes
    are limited to the 32667 number. So we had a test, if the string is bigger than that, then we would write it in 32000 byte chucks. On two different win7 boxes we get the "device attached" error message. Run the same code on a XP box and it works.
    Oh, and the Win 7 boxes are 64 bit.  I wonder if the win 7 32 bit would have the same issue? Can others duplicate it? The tmpsize seems to be different numbers, but if you play with it, you can get it down to number x works and (x+1) does not.
    Here the code .....
    Module Module1
        Sub Main()
            Dim logName As String = "BraumsLog"
            Dim objEventLog As New System.Diagnostics.EventLog()
            Dim needCreate As Boolean = False
            Dim Source As String = ""
            If Source.Length = 0 Then Source = "Test"
            Dim Entry As String = "".PadLeft(64000, "1"c)
            'Register the App as an Event Source
            If EventLog.SourceExists(Source) Then
                Dim slog As String = EventLog.LogNameFromSourceName(Source, ".")
                If slog <> logName Then EventLog.DeleteEventSource(Source) : needCreate = True
            Else
                needCreate = True
            End If
            If needCreate Then EventLog.CreateEventSource(Source, logName)
            objEventLog.Source = Source
            '*********** New Code ****************
            objEventLog.MaximumKilobytes = 20480
            objEventLog.ModifyOverflowPolicy(OverflowAction.OverwriteAsNeeded, 0)
            'WriteEntry is overloaded; this is one
            'of 10 ways to call it
            Dim tmp As String = ""
            Dim tmpSize As Integer = 32000 '31890 works 31891 does not
            Do While Entry.Length > tmpSize
                tmp = Entry.Substring(0, tmpSize - 1)
                objEventLog.WriteEntry(tmp, EventLogEntryType.Information)
                Debug.WriteLine(tmp.Length.ToString)
                Entry = Entry.Substring(tmpSize)
            Loop
            tmp = Entry
            objEventLog.WriteEntry(tmp, EventLogEntryType.Information)
        End Sub
    End Module

    Run the same code on an XP 64 bit box and it works? XP comes in multiple flavors.
    Perhaps you should compile to x86 CPU and see if it works on Win 7 64 bit. Win 7 comes in 32 and 64 bit also.
    On the other hand Win 7 service pack 1 mainstream support ended on the 13th of this month. Extended support ends in 2020 supposedly. Perhaps you should upgrade to Win 8.1 instead. Win 10 is coming soon enough.
    Windows lifecycle fact sheet
    Microsoft Product Lifecycle Search - Windows 7 result
    La vida loca

  • Rpt-files do not function anymore after deploying to a different database

    first: I use CR. 10.2.3600.0 and Asp.NET with Visual Studio 2005
    I developed my reports against a Develepment-Database and everything worked fine.
    Then, I published my Website with the reports.
    Also I made a backup of my Develepment-Database to become the Productive-Database.
    All pages of my website function well (database-queries etc.), but when I try to call one of my reports a queerish error message occurs:
    "This field name is not known. Error in File C:\WINDOWS\TEMP\...\{...}.rpt: Error in formula. '{xyz.ds_id} = {?@ds_id} and '."
    I mean, the database is the "same" as before?!?
    (BTW: the logon to the database is set at runtime and is ok.)
    Why do the reports not function anymore?
    The only workaround I found is to open the report in Visual Studio 2005 again and select  "Crystal Reports/Databases/Check Database" against the Productive-Database.
    After that the report works! BUT THIS COULD NOT BE THE SOLUTION, this means that I cannot publish my website to a different database on a customers network!!!

    I tried this:
    Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
            Dim myTables As Tables = myReportDocument.Database.Tables
            ' Get Location of Database from web.config
            Dim Location As String = String.Empty
            Try
                For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                    Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                    myTableLogonInfo.ConnectionInfo = myConnectionInfo
                    myTable.Location = myConnectionInfo.DatabaseName & ".dbo." & myTable.Location.Substring(myTable.Location.LastIndexOf(".") + 1)
                    myTable.ApplyLogOnInfo(myTableLogonInfo)
                Next
            Catch ex As Exception
                Me.LabelError.Text = "(SetDBLogonForReport) " + ex.Message
            End Try
        End Sub
    and get the error:
    ex.Message     "Fehler beim Laden der Datenbankinformationen.
    Details: Die Datenbank-DLL 'crdb_query.dll' konnte nicht geladen werden.
    Fehler in der Datei C:\DOKUME~1\MSCHAE~1\LOKALE~1\Temp\RzpReport {748C95B6-70EC-45B9-953D-64DA215BD9DC}.rpt:
    Fehler beim Laden der Datenbankinformationen"
    which means in english:
    ex.Message     "Error while loading database information.
    Details: the databse-dll 'crdb_query.dll' could not be loaded.
    Error in file C:\DOKUME~1\MSCHAE~1\LOKALE~1\Temp\RzpReport {748C95B6-70EC-45B9-953D-64DA215BD9DC}.rpt:
    Error while loading database information"
    I debugged the code and recognized that the error appears while setting the .Location property...?!?
    My DatabaseName is "Rezepturverwaltung".
    Example 1 with a command:
    Befor setting the Location of mytable the value of the prpperty is e.g. "command".
    After setting the value like in code above the value changes to "Rezepturverwaltung.dbo.command"
    Example 2 with a stored procedure:
    Befor setting the Location of mytable the value of the prpperty is e.g. "sp_GetData".
    After setting the value like in code above the value changes to "Rezepturverwaltung.dbo.sp_GetData"
    What`s going wrong furthermore???
    Edited by: Markus Schfer on Aug 31, 2009 9:56 AM

  • String to Date function

    I am getting date 03/06/2007 17:37:29 from source system , that needs to be inserted into SQLServer DB. I am using format-dateTime and getting below error,
    DB Adapter is date format like 2007-01-01T00:00:00.000-08:00. How to convert this.
    Please help me ..
    xp20:format-dateTime(string(bpws:getVariableData('inputVariable','payload','/ns1:Payment_Outbound/ns1:Payments/ns1:AccountingDate')),'[MM]/[DD]/[YYYY] hh:mm:ss')
    part name="summary">
    <summary>
    file:/C:/OracleSOA/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_SiebelToPSFTPaymentProcess_1.0_7d05af5d79a9ee47c154a56edaf239a9.tmp/Insert_Into_AR_PAYMENT_EC.wsdl [ Insert_Into_AR_PAYMENT_EC_ptt::insert(PsArPaymentEcCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    insert failed. Descriptor name: [InsertIntoARPAYMENTEC.PsArPaymentEc]. [Caused by: String index out of range: 10]
    ; nested exception is:
         ORABPEL-11616
    DBWriteInteractionSpec Execute Failed Exception.
    insert failed. Descriptor name: [InsertIntoARPAYMENTEC.PsArPaymentEc]. [Caused by: String index out of range: 10]
    Caused by Exception [TOPLINK-3001] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ConversionException
    Exception Description: The object [xs:datetime ], of class [class java.lang.String], could not be converted to [class java.sql.Timestamp].
    Internal Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 10.
    </summary>
    </part

    Hi,
    It will be interesting if a parseDate function was available, but it isn't, in this case you can create your datetime String format using, concat and substring.
    In this case client:ConvertDateProcessRequest/client:input' has a String like it : 03/06/2007 17:37:29
    concat(substring(bpws:getVariableData('inputVariable','payload','/client:ConvertDateProcessRequest/client:input'), 7, 4), '-', substring(bpws:getVariableData('inputVariable','payload','/client:ConvertDateProcessRequest/client:input'), 4, 2), '-', substring(bpws:getVariableData('inputVariable','payload','/client:ConvertDateProcessRequest/client:input'), 1, 2), 'T', substring(bpws:getVariableData('inputVariable','payload','/client:ConvertDateProcessRequest/client:input'), 12, 8))
    I think that it will be solve you problem
    Best regards

  • Processing this item failed because of a PDF parser error. Input string was not in a correct format.

    Good Morning,
    We're having issues parsing several hundred PDF files located in two separate Record Center sites. All other PDF documents in the environment are being crawled and parsed without issue. I've verified the permissions for the Search service account, but that
    doesn't seem to be the issue. Searching for this particular error hasn't returned much, but I have ensured that the Search service account has been added to the necessary Local Security Policy objects and cleared the configuration cache. Any help would be
    greatly appreciated.
    Processing this item failed because of a PDF parser error. ( Error parsing document 'https://asdf.com/sites/HRRecords/asdf.pdf'. Input string was not in a correct format.; ; SearchID = 6642FEEF-6921-434E-B084-02809173D8A7 )

    This issue came back up for me as my results aren't displaying since this data is not part of the search index.
    Curious if anyone knows of a way to increase the parser server memory in SharePoint 2013 search?
    http://sharepoint/materials-ca/HPSActiveCDs/Votrevieprofessionnelleetvotrecarrireenregistrement.zip
    Processing this item failed because the parser server ran out of memory. ( Error parsing document 'http://sharepoint/materials-ca/HPSActiveCDs/Votrevieprofessionnelleetvotrecarrireenregistrement.zip'. Document failed to be processed. It probably crashed the
    server.; ; SearchID = 097AE4B0-9EB0-4AEC-AECE-AEFA631D4AA6 )
    http://sharepoint/materials-ca/HPSActiveCDs/Travaillerauseindunequipemultignrationnelle.zip
    Processing this item failed because of a IFilter parser error. ( Error parsing document 'http://sharepoint/materials-ca/HPSActiveCDs/Travaillerauseindunequipemultignrationnelle.zip'. Error loading IFilter for extension '.zip' (Error code is 0x80CB4204). The
    function encountered an unknown error.; ; SearchID = 4A0C99B1-CF44-4C8B-A6FF-E42309F97B72 )

  • Communication problems: A device attached to the system is not functioning.

    Hi all,
    I'm developing an applet and using the OMNIKEY 5321 CL reader for communication and testing. One of the requirements for our card is to read large binary data.
    For this purpose i used extented lenght APDU to read the data from card.
    When I tested it via JCOP simulation I was able to read up to 32767 bytes as described in specification. But problem occurs when I test it with reader, in this case I'm able to read max 298B in APDU response. When I send greater byte count than 298B i have got following error in JCShell plugin:
    jcshell: requestSessionKey.jcsh[1]: Error code: -6 (Card terminal error)
    jcshell: requestSessionKey.jcsh[1]: Communication problems: A device attached to the system is not functioning.
    Regarding the extend lengh APDU support it should by OK from the OMNIKEY. I'm using newest driver 1.2.9.2 for Win 7.
    Here my configuration:
    JCOP:JCOP 2.4.2r1
    JAVA CARD: jc301
    Global Platform: gp22
    Can somebody help me? Any ideas?

    If you want to use PC/SC directly, I have a simple Go program that reads an APDU file (just hex encoded APDU strings) and sends them to a smart card. You can give that a try if you like.
    The code is at: https://bitbucket.org/safarmer/go-apdus
    There is a Goclipse project as well as the source. You will need to install Go and run "go get github.com/ebfe/go.pcsclite/scard" to install the required PC/SC wrapper. Once you have done this you can run the program with -file <apth to text file>
    An example text file:
    # A comment that is ignored
    00a4040000
    80ca9f7f00- Shane

  • Unexpected behavior of spreadsheet string to array function

    Hello,
    I found some weirdness in LabVIEW 2011 that I do not understand. In the attached vi, I provide a one-dimensional spreadsheet string separated by spaces. I use the spreadsheet string to array function to convert this spreadsheet string into an array of strings.
    I ran into problems when I wanted to specify a space character as the delimiter.
    The conversion works as intended, if I do not specify a delimiter (i.e., the default tab delimiter is used). But if I specify the delimiter, only the first element of the spreadsheet string is converted. I do not understand this behavior.
    Thanks for your help.
    Peter
    Solved!
    Go to Solution.
    Attachments:
    Test spreadsheet string to array.vi ‏9 KB

    You don't have spaces in your string. You have tabs and of course the default delimiter works. Right click and select '\' Codes Display and see the \t.

  • Searching strings in procedures, function and packages (OWB)

    Hi all,
    I'm working on an OMB script to look for a string in procedures, function and packages in OWB. So far, I found how to do it for functions and procedures:
    string match -nocase \*text_to_find* [OMBRETRIEVE FUNCTION 'my_function' GET PROPERTIES(IMPLEMENTATION)]
    string match -nocase \*text_to_find* [OMBRETRIEVE PROCEDURE 'my_procedure' GET PROPERTIES(IMPLEMENTATION)]
    I have tried something similar for packages but it didn't work. Does someone know how to do this search in packages? Any help will be appreciated.
    Regards,
    Mauricio

    Of course, if you are looking for a match in any source - including procedures and packages not imported into OWB, then OMB+ isn't going to be a ton of help as it won't be aware of those other packages.
    In that case, you can always find those dependencies by doing a standard select owner, name, type, text from all_source where text like '%YOUR_SEARCH_CRITERIA%' query.
    and you can embed that in your OMB+ using the Java/SQL library: How to run SQL from OMB+
    Cheers,
    Mike

  • String.substring(0)

    The 1.3.1 and 1.4.0 documentation states:
    public String substring(int beginIndex)
    Returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.
    However, if you pass 0 as the beginIndex it does NOT return a new string, it returns itself.
    From the 1.3.1 source:
        public String substring(int beginIndex) {
         return substring(beginIndex, count);
        public String substring(int beginIndex, int endIndex) {
         if (beginIndex < 0) {
             throw new StringIndexOutOfBoundsException(beginIndex);
         if (endIndex > count) {
             throw new StringIndexOutOfBoundsException(endIndex);
         if (beginIndex > endIndex) {
             throw new StringIndexOutOfBoundsException(endIndex - beginIndex);
         return ((beginIndex == 0) && (endIndex == count)) ? this :
             new String(offset + beginIndex, endIndex - beginIndex, value);
        }So, the API documentation is wrong in this respect. I did a search in the bug database but couldn't find a bug for this.

    The 1.3.1 and 1.4.0 documentation states:
    public String substring(int beginIndex)
    Returns a new string that is a substring of this
    string. The substring begins with the character at the
    specified index and extends to the end of this
    string.
    However, if you pass 0 as the beginIndex it does NOT
    return a new string, it returns itself.i wouldn't be too concerned about this. unless you're doing something really specialized, you shouldn't be terribly concerned about the identity of content-equivalent Strings.
    has anyone really felt misled by this slice of documentation?

  • "System.FormatException: The string was not recognized as a valid DateTime" when running SharePoint Configuration Wizard step 9

    Dears,
    We have a problem upgrading sharepoint
    From: SharePoint 2007 SP2 12.0.0.6535 - April 10 cumulative Update
    To: SharePoint 2007 SP2 12.0.6557.5000 - April 11 cumulative Update
    We start installing WSS CU in our standalone environment
    Then we start running the SharePoint Configuration Wizard and it is failed in step 9 with the following error in "PSCDiagnostics" log:
    File reader could not understand line 15679. Line was: 06/26/2011 10:11:35  1  INF              Entering function PsconfigLinkLabel.LinkLabelClickedEventHandler. Error was: System.FormatException:
    The string was not recognized as a valid DateTime. There is a unknown word starting
     at index 24.
     at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
     at UlsGump.Column.TimeColumn.ParseTime(StringFacade timeString)
     at UlsGump.UlsEntry.SetEntryFromThread(StringFacade[] threadFacades, StringCacheFile stringCacheFile, Int64 messageLocation)
     at UlsGump.UlsEntry.ReadFromUlsBuffer(Char[] buffer, Int32 bufferStart, Int32 bufferCount, StringCacheFile stringCacheFile, Int64 fileStart)
     at UlsGump.FilePump.ReadJob()
     Please help and advise to solve this error in order to get upgrading sharepoint succeed
    Regards, Anas N. Alhussein | Sharepoint Senior Developer

    Hi,
    From your narration, you can clear the configuration cache, then re-run the SharePoint Configuration Wizard, check the effect.
    Cleared the cache of config database by following below steps.
    1. Stopped the Windows SharePoint Services Timer service.
    2. Started on the SharePoint Server where Central Administration Site is hosted. Browse to
    C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\
    3. Deleted all the xml files. (But do not delete the cache.ini file.)
    4. Then Edited the cache.ini and replaced the current value with "1".
    5. Restarted the Windows SharePoint Services Timer service on the Central Admin server .
    Thanks,
    Rock Wang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Regards, Rock Wang Microsoft Online Community Support

  • Expected type [NUMBER] found [STRING] (["member"]) in function[operator@div

    Hi,
    I am trying to recalculate a figure based on an annual percentage. The script is
    FIX(yr2011, Plan, CC_4363,draft)
    "AC_&&&&&& Salary" ="AC_&&&&&&Salary"* ("pay increase%"/100)
    endfix
    endexclude
    I receive the error "expected type [NUMBER] found [STRING] (["AC_&&&&&&"]) in function[operator@div"
    I looked at this forum and someone suggested using the @match function. I tried
    "AC_&&&&&& Salary" ="AC_&&&&&& Salary"* (@match(Accounts," pay increase%")/100);
    This validated but the salary figure disappeared.
    The reason I am not loading at monthly (level zero) is due to a business requirement. I am having to spread the figures down the months from the total year but if the total year is wrong or missing the montly data obviously disappears too.
    Thanks,
    Nathan

    A few questions:
    1) I see an ENDEXCLUDE, but no starting EXCLUDE. How does that relate to the code?
    2) Do you really have member names with six ampersands in them? Is that even an allowed character? I guess it is but it looks odd as & is the character used to define the usage of an Essbase Substitution Variable. Okay, that was a comment, not a question, I guess.
    3) Do you have a Pay Increase% in every month? Or is it annual?
    3) Why don't you stick the salary value to be allocated into another Account, e.g., "Annual Salary" and place it in a single month. Then your code could look like:
    FIX(yr2011, Plan, CC_4363,draft, "Jan":"Dec")
    "AC_&&&&&& Salary" ="Annual Salary"->"BegBalance" * ("pay increase%"->"BegBalance" / 100)
    endfix
    I created a BegBalance member which you may not have -- chose Dec or Jan as your home for Annual Salary and Pay Increase and go from there. I also forced the calc to happen at the month level -- I am assuming you have months in your app, but maybe not. Salt to taste.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • SCCM 2012 Client delpoyment in SCCM 2007 Native world

    Hi Team, In my account I have SCCM 2007 running in Native mode.... we do not support internet based clients there..but work on HTTPS only. Now I have implemented SCCM 2012 R2 there and now testing the client migration so that I can upgrade the SCCM c

  • WCS WLC Config Files

    I am finding it difficult to locate the backup config files for my controllers on the WCS server.  Can someone tell me the file extension and the file folder where these files are saved so I can verify they are getting saved?  This seems to be more c

  • How applet write in a URL plz.. plz..

    how applet can write in URL like this URL url = new URL(file://c:/some.mov); in this url applet want to write for this what i have to do......

  • Can't open camera from lockscreen iOS 5.1

    Can't open camera from lockscreen iOS 5.1? Was able to before the update but now you tap the icon next to the slider and the screen will bounce. Anyone else have this issue

  • Error while posing in J2IUN

    Hi Friends, I am getting error whicle posting monthly utilization in tcode J2IUN. After putting all the values and leting all remaining amounts to be 0, when SAVE button activates, then on pressing it follwing error comes. Error : This function is no