When upgrading an app - the "invalid binary" error... any suggestions?

While upgrading an existing app, I'm getting the notorious:
The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.
error.
I've gone through everything step-by-step and did all sorts of forum searches, but I can't seem to find a solution to this.
Some particulars:
1. I do have the distribution certificate in my keychain, and it appears to be associated with my certificate as the agent. The provisioning profile is also visible in the Xcode organizer, with no "yellow warnings" about there not being an identity associated with it or anything like that.
2. When building (and doing all the cleaning of targets etc.) the Code Signing for the target is set to iPhone Distribution: mycompany name, which is properly selectable from the popup menu.
3. The build succeeds and I check the build results and CodeSigning is in there, as well as the embedded provisioning profile and the app name is correct.
4. Examining the created package contents, Code Signing is in there as well, and also the embedded provisioning profile.
5. The app ID I used for the distribution provisioning profile is the same app ID I used for the original app. However I did create a new distribution provisioning profile because certs had expired and I changed the name of the distribution provisioning profile. But the distribution cert is now up-to-date and the app ID is the same as it always was.
6. It's not anything like an invalid Icon.png or anything like that, because that didn't change from the original version. This is just an update.
7. The developer provisioning profile works fine and I can load and run the app on my iPhone.
If anybody has any ideas I would be grateful. I've been in code signing h*ll for two days now.
Thanks,
doug

I can't believe it, but after multiple-days of Code-Signing h*ll I fixed it! The app is now uploaded and 'in review".
For those interested in my solution, here is what I did.
I opened up the .xcodeproj package for a previous app we have in the app store (let's call it OtherApp) and then opened up project.pbxproj in BBEdit and looked at the sections for "Distribution" and they looked like this:
8418EBF90E90792200A3FDDA /* Distribution */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHSSTANDARD_32BIT)";
GCCC_LANGUAGESTANDARD = c99;
GCCWARN_ABOUT_RETURNTYPE = YES;
GCCWARN_UNUSEDVARIABLE = YES;
PREBINDING = NO;
SDKROOT = iphoneos2.0;
name = Distribution;
8418EBFA0E90792200A3FDDA /* Distribution */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYSSEARCH_USERPATHS = NO;
CODESIGNIDENTITY = "iPhone Distribution: My Company Name, Ltd.";
COPYPHASESTRIP = YES;
GCCPRECOMPILE_PREFIXHEADER = YES;
GCCPREFIXHEADER = OtherApp_Prefix.pch;
INFOPLIST_FILE = Info.plist;
PRODUCT_NAME = OtherApp;
PROVISIONING_PROFILE = "E6A3BCFE-372D-4623-AB15-44158ADA0E1B";
name = Distribution;
But in the project.pbxproj file for the app I was trying to upgrade (let's call it ThisApp) those sections looked like this:
84D2ED8E0E5B857A00CAA465 /* Distribution */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYSSEARCH_USERPATHS = NO;
ARCHS = "$(ARCHSSTANDARD_32BIT)";
GCCC_LANGUAGESTANDARD = c99;
GCCWARN_ABOUT_RETURNTYPE = YES;
GCCWARN_UNUSEDVARIABLE = YES;
PREBINDING = NO;
SDKROOT = iphoneos2.0;
name = Distribution;
84D2ED8F0E5B857A00CAA465 /* Distribution */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODESIGNIDENTITY = "iPhone Distribution: My Company Name Ltd.";
COPYPHASESTRIP = YES;
GCCPRECOMPILE_PREFIXHEADER = YES;
GCCPREFIXHEADER = ThisApp_Prefix.pch;
INFOPLIST_FILE = Info.plist;
PRODUCT_NAME = ThisApp;
PROVISIONING_PROFILE = "00D072E0-3459-4AFF-911E-B31D325E7375";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "B260C653-9A45-372C-A472-31F1531EEA44";
name = Distribution;
So (after backing up the current version) I:
(1) deleted the 2nd "PROVISIONING_PROFILE" line (which is the developer provisioning profile - so I don't know what will happen now if I try to load it on my iPhone);
(2) cleaned targets;
(3) built again and the new compressed version uploaded!
Side-note not directly related to the above problem, but of technical interest:
I got another error at the next itunesconnect page saying that the "bundle identifier needed to be the same as the previous version". That was easy to fix though. I went back into Xcode and changed the bundle identifier from com.myactualcompanyname.${PRODUCT_NAME:identifier} back to com.yourcompany.${PRODUCT_NAME:identifier} (the original default value) which was the way we accidentally left it when we first built it in September. (It was our first app, so that snuck by us.) So apparently you can never adjust that once you upload an original app and have forgotten to change "yourcompany" for your actual company name. That's not so important though, and wasn't what was blocking being able to upload the app.
Anyway, it now uploaded successfully and is "in review"!
Clearly "something happened" to the project.pbxproj file between the time the app was first created in September and when the SDK was updated after that.
But it's in review now!
doug@sigh of relief

Similar Messages

  • I have a problem with Apple store when installing large application: The system crashes. Any suggestion?

    I have a problem with Apple store when installing large application (example xCode): The system crashes.
    It begun with 10.8 usualy with few tries it work but with 4.6 no succes.
    Any suggestion?

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic log under System Diagnostic Reports. Post the entire contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • 2G ipod, OS up to date, but now when I open apps, the close unexpectantly.  Any ideas at to why?

    The following are some of the apps that close on me:
    Facebook,
    App store
    Craigsphone
    any others....

    Try resetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    Some users have said the downloading/installing an app resolves the problem.  If the reset does not work that that with a free app.

  • "Invalid Binary" error on app. Apple's reason is "Missing 64-bit support" due to changes from Feb 1st 2015

    Hello
    Can anyone help me with an "Invalid Binary" error on my app.
    Apple's response is:
    Dear developer,
    We have discovered one or more issues with your recent submission for "DPS Notes". To process your submission, the following issues must be corrected:
    Missing 64-bit support - Beginning on February 1, 2015 new iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK. Beginning June 1, 2015 app updates will also need to follow the same requirements. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.
    Once these issues have been corrected, use Xcode or Application Loader to upload a new binary to iTunes Connect. Choose the new binary on the app’s Details page in My Apps on iTunes Connect, and click Submit for Review.
    Regards,
    The App Store team
    Can someone from the Adobe DPS team let me know how I can recreate the .ipa file so that it will meet Apple's requirements.
    They seem to have moved the goalposts since I created the original .ipa file in December. I thought I'd submitted it, just went back through iTunes Connect to check info as I hadn't heard anything from them, then hit this brick wall. Any help offered would be much appreciated.
    Thanks
    Rebecca

    Hi
    I've Updated App Builder, gone back to the DPS App Builder portal, regenerated new zip and ipa files and downloaded them.
    I clicked the Application Loader 3.0 link, downloaded the latest Appication Version, clicked on the "Deliver your App" button, and submitted the newly built App that was built using 32.4.2 version. (All the app icons were listed as "stored on server" so I presume they are all ok). The .zip file appeared to 'deliver' to Apple successfully. I've tried to resubmit it but get ta "Redundant Binary Upload. There already exists a binary upload with build version..." error message, so presume the orginal binary upload was successful. I have no idea how I can get this app from the "prepare for submission", to "in review". The last time I thought I'd submitted this app I got as far as the "waiting for review" status, and no further.
    At the moment I don't have a"+" button in the Build section - as mentioned on page 66 of Adobe's Step_by_step_guide_to_dps_se.pdf.
    So I can't add the new .zip file to the iTunes Connect > My Apps portal in the Build section of the Versions tab.
    I have put a support email into Apple, but don't expect a reply any day soon.
    The problem with starting all the way back through the App wizard is that I really want to use all the same App Name, Bundle ID, and details etc.
    Do you mean, going back to the Folio Producer Panel, and building a whole new App?
    This process certainly isn't for the faint-hearted!
    HELP!

  • App submission to ITC (invalid binary, error ITMS-9000)

    Hi there!
    Early today I've got the "invalid binary" form ITC (18 hours after successful upload).
    Now I tried to submit new binary and got even worse result.
    What should I do?
    Thank you

    Please see my response in the other thread at App submissions to iTC stuck in "upload received" status.
    Neil

  • IOS app submission Invalid binary

    I'm trying to submit an app to the AppStore and I get "Invalid binary" error from iTunes Connect
    " iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image with the -568h size modifier immediately following the <basename> portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the iOS Human Interface Guidelines and iOS App Programming Guide.
    Invalid Launch Image - Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later. "
    UILaunchImageFile is set to Default
    I included a Default.png, [email protected], [email protected], and Default-ipad.png at the correct size.
    I also compile using iOS SDK 6.1, and target iOS 3.0
    I'm using XCode 3.2.6 because my old Mac Mini can't boot Lion, so I have to stick with Snow Leopard. (and the latest XCode won't work on Snow Leopard)
    Why does I get these errors while I included the correct image name and compiling with the latest SDK ?

    You're using ancient technology.
    iOS app development doesn't stand still.
    Improvements mean greater resource utilization, ergo the need for more up to date hardware/software.
    Nobody is forcing you to do anything.
    You make an economic comparison of upgrading or not and then decide if it's worth it.

  • [Apple store submission] Invalid binary error

    Hi,
    While submitting to apple store i am getting invalid binary error.
    The app builds fine and runs on my iPhone fine. When I try to build
    the Distribution app, it builds fine with no errors, but when I look
    at my build log, I do have the CodeSign entry, but there is no log
    entry for ProcessingProductPackaging part, so the
    embedded.mobileprovision file does not exist.
    Not getting what is the problem. Not able to submitt application for apple store.
    Thanks,
    Ganesh Pisal
    Vavni, Inc.

    Be sure to follow these steps under Verifying a Successful Distribution Build in the Portal:
    _If your project is lacking any of the above files or pointing to the wrong directory, do the following:_
    1. Select the Target and open the Build Settings Inspector. Confirm you are in the Distribution Configuration.
    2. Delete the Code Signing Identity: iPhone Distribution: COMPANYNAME
    3. In the Xcode Build Menu, select Clean all Targets.
    4. Delete any existing build directories in your Xcode project using Finder.
    5. Re-launch Xcode and open your Project.
    6. Re-enter the code-signing identity iPhone Distribution: COMPANYNAME in the Target Build Settings Inspector.
    7. Rebuild your Project.
    Strange as these steps may seem, they worked for me last time I had your problem (e.g. why delete all the build directories if you already cleaned all targets? And why re-enter the exact code-signing identity you just deleted?? Just do it!).
    If you've never successfully submitted this app before, I would also suggest you redo all of the steps under +Building your Application with Xcode for Distribution+, especially filling in the +Code Signing Provisioning Profile+. On my first try I filled in the wrong line, and it took all night to find the problem.
    If none of the abpve helps, take a look at Doug Lerner's recent thread: [http://discussions.apple.com/thread.jspa?threadID=1940036&tstart=105]. I think Doug's embedded.mobileprovision file was present so his problem was different from yours, but you might find some helpful clues in the discussion.
    Btw, I've never heard of anyone getting this process right on the first try. It's not meant to be easy. Consider it to be an examination. I.e. to place your app in the store, it's not sufficient to have simply learned how to develop the software.

  • Case When Statement and ORA:01722 Invalid number error

    Hi folks, I have posted this under another heading as well under E-business suite so apologies if some you have already seen it but I would really appreciate some help on this one. Any suggestions are most welcome.
    We are trying to put together a calculation that returns the number of days absent an individual has had in a given time period. We need to cater for those absences that started before the period and are closed during it, absence that start during the period and end after it, and those that open and close within it.
    The period is always a rolling 6 months from sysdate.
    This is the calc we have come up with so far which works for some people but we get the invalid number error if the absence includes a half day - so 0.5, 1.5,etc.
    This is probably over complicated but we are not techie at all so are learning as we go!
    We are using the HRMS - Administration - Oracle Human Resources (Core) business area in 10G and the Absence Attendance and Person folders.
    SUM(TO_NUMBER(NVL(( CASE WHEN Absence Attendance.Actual Start Date < TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') THEN ( CASE WHEN Absence Attendance."Actual End Date" > SYSDATE THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) END ) END ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( Absence Attendance.Duration Days ) END ) END ) END ) END ) END ),( DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") )),'999999990D00'))

    Hi,
    It could be that this is because you are using SYSDATE which contains the time as a fraction rather than TRUNC(SYSDATE) which just contains the current time. It could be that your working_dates_between raises this error.
    However, your formula is far more complicated than it needs to be.
    Firstly, you want to look at the date window ADD_MONTHS(TRUNC(SYSDATE), -6) to TRUNC(SYSDATE). Then you want to look at the portion of the absence that falls in the date window. This is GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6)) to LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE)). You may need to add 1 to the absence end date because this is the last day of their absence rather than the date they return. It depends how you calculate the days between the start and end
    date of the absence. You can create calculations for the start and end date of the absences within the 6 months time window. Create calculation AbsenceStart as
    GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6))
    and AbsenceEnd as
    LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE))
    Then you need to only pick up absence that a part of the absence in your 6 month date window. You can use a condition in the workbook or a condition in a case statement to do this. You then need to calculate the difference between these dates and SUM all the values.
    SUM(CASE WHEN AbsenceEnd >= AbsenceStart THEN WORKING_DAYS_BETWEEN(AbsenceStart, AbsenceEnd) END)
    That's it. Not so complicated after all.
    Rod West

  • Case When Statement and ORA:1722 Invalid number error

    Sorry I posted this in the wrong forum - I have the answer now
    Cheers
    HELP!!!
    We are trying to put together a calculation that returns the number of days absent an individual has had in a given time period. We need to cater for those absences that started before the period and are closed during it, absence that start during the period and end after it, and those that open and close within it.
    The period is always a rolling 6 months from sysdate.
    This is the calc we have come up with so far which works for some people but we get the invalid number error if the absence includes a half day - so 0.5, 1.5,etc.
    This is probably over complicated but we are not Techie at all so are learning as we go! We are using the HRMS - Administration - Oracle Human Resources (Core) business area in 10G and the Absence Attendance and Person folders.
    SUM(TO_NUMBER(NVL(( CASE WHEN Absence Attendance.Actual Start Date < TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') THEN ( CASE WHEN Absence Attendance."Actual End Date" > SYSDATE THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) END ) END ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( Absence Attendance.Duration Days ) END ) END ) END ) END ) END ),( DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") )),'999999990D00'))
    Edited by: CPearce on Sep 25, 2008 8:03 AM

    Hi,
    It could be that this is because you are using SYSDATE which contains the time as a fraction rather than TRUNC(SYSDATE) which just contains the current time. It could be that your working_dates_between raises this error.
    However, your formula is far more complicated than it needs to be.
    Firstly, you want to look at the date window ADD_MONTHS(TRUNC(SYSDATE), -6) to TRUNC(SYSDATE). Then you want to look at the portion of the absence that falls in the date window. This is GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6)) to LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE)). You may need to add 1 to the absence end date because this is the last day of their absence rather than the date they return. It depends how you calculate the days between the start and end
    date of the absence. You can create calculations for the start and end date of the absences within the 6 months time window. Create calculation AbsenceStart as
    GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6))
    and AbsenceEnd as
    LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE))
    Then you need to only pick up absence that a part of the absence in your 6 month date window. You can use a condition in the workbook or a condition in a case statement to do this. You then need to calculate the difference between these dates and SUM all the values.
    SUM(CASE WHEN AbsenceEnd >= AbsenceStart THEN WORKING_DAYS_BETWEEN(AbsenceStart, AbsenceEnd) END)
    That's it. Not so complicated after all.
    Rod West

  • I am facing problems while openin an application in facebook and other places.when i go to the application,an error shows and firefox closes autmatically either i send error reports or dont.....plz help

    i am facing problems while openin an application in facebook and other places.when i go to the application,an error shows and firefox closes autmatically either i send error reports or dont.....plz help

    Notes:
    1) Please use the code tags when posting code or JNLP/HTML. It helps to retain indentation and avoids asterisks and plus sings being interpreted as formatting marks. To do that, select the code/JNLP etc. and click the CODE button seen on the Plain Text tab of the message posting form.
    2) That launch file is invalid. You might check it (and the project in general) using JaNeLA.
    3) The only place that SimpleSerial class could be, that the JRE would find, is in the root of aeon.jar. Is it actually there?

  • TS3638 i have an internet connection but when i open app store it shows error message "cannot connect to app store".when i try to sign in with my valid apple ID and password it says "connection failed".i tried keychain access settings but it did not help.

    i have an internet connection but when i open app store it shows error message "cannot connect to app store".when i try to sign in with my valid apple ID and password it says "connection failed".i tried keychain access settings but it did not help.please help me!!

    Open Sysem Preferences from your Apple () menu top left in your screen then select the Firewall tab.
    Make sure the Firewall is turned off.

  • HT5113 "Invalid code error" and "can't connect to the iTunes Store." Any suggestions?

    I keep getting an "invalid code error" when trying to preview a course with the enroll code. When I click on the link to the course, I get an error that says "can't connect to the iTunes Store." Any suggestions?
    I tried previewing a test course I made about a year ago. I was able to request access to the course, went into Course Manager and approved it, but hours later it still says awaiting approval on my iPad.
    Any ideas as to what could be going on, aside from a cruel April Fool's joke?
    Thanks.
    David

    How about trying to sign out of your account on the iPad, restart the iPad, sign back into the account and then try again?
    Settings>Store>Apple ID - tap on your ID and sign out - restart - go back - sign in.
    Other than going through the support article - if you haven't already done so - the only other thing I can think of is to reset/reboot the iPad. That can clear the memory and it does help solve a lot of "hinky" issues.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • TS1702 ?Some of my applications have been saying I need the latest version of Adoebe Flash Player.  When I try to download it I get the following error message:  'Frame Load interrupted' and the installation stops.  Any suggestions

    Some of my applications have been saying I need the latest version of Adoebe Flash Player.  When I try to download it I get the following error message:  'Frame Load interrupted' and the installation stops.  Any suggestions?

    You can only use apps downloaded from the App store, not via a browser. There is no Flash for any iOS device including the iPod.

  • OS X Server Error: No existing connection from which credentials can be copied. It will not let me get out of the screen.  I have to close the Server App to get out. Any suggestions?

    Editing any user profile, when I try to save the change I get the error: no existing connection from which credentials can be copied. It will not let me get out of the screen.  I have to close the Server App to get out. Any suggestions?

    This is also being disucssed somewhere else https://discussions.apple.com/thread/5486117. I have the same problem, sorry i can't help.

  • Why do i get the invalid signature error

    Why do I get the invalid signature error when trying to download the latest updates fot itunes

    Hi, im getting the same thing,
    Been tryin to download it for days but keeps saying "Invalid signature"
    I even went into ADD REMOVE PROGRAMS hit Apple software update and change and then repair but this did not work.
    Help much appreciated.  Thanks

Maybe you are looking for

  • HD tv show won't load onto iPhone4s?

    i downloaded an HD tv show from the iTunes store to my iMac, and was trying to transfer an episode to my iPhone 4s. I received an error message that this phone cannot play the video. Is this correct? I transferred the show to my iPad 3 without any is

  • I was able to see app updates in my appstore but now there are no updates available suddenly what is the reason?

    I was able to see app updates in my appstore but now suddenly there are no updates available what is the reason?

  • Change pointer for Sales Order

    Hi, Using change pointers I want to create an IDOC when ever a specific field in the sales order line item is changed. I have activated the change pointer for message type ORDRSP. Also maintained the following entries in BD52 VERKBELEG(Object) VBAP(T

  • Can't find FP read in 2013

      Can not find these tools in LabVIEW 2013 Solved! Go to Solution.

  • Calling BAPI from EP

    Hi, I am a newbie in terms of calling a BAPI in EP. I have done that in Web Dynpro and i know we need to use Jco to accomplish that. Any pointers to some good documents or any threads/web logs will be highly beneficial. Points will be awarded! Regard