Powerpivot - Can't insert formula that combines two or more different columns and keep getting message "unhandled exception has occurred in a component in your application...

I am using powerpivot v2 with excel 2010.
When I go to my excel file's powerpivot and I try to insert a formula in any column, I constantly get the following message:
"unhandled exception has occurred in a component in your application. If you click continue, the application will ignore this error and attempt to continue".
************** Exception Text **************
System.InvalidCastException: Return argument has an invalid type.
   at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
   at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
   at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
   at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
Does anybody know how to fix this ?

Mark,
I used the Fix It found here:
http://support.microsoft.com/kb/2739501
I would have to ask my IT support person for more specifics, but as I understand the scenario with my particular laptop: the laptop came preloaded with RTM build of 2013.  We used Control Panel to uninstall Office 2013, in order to install Office
2010.  I installed PowerPivot add-in and used it successfully with no issues for several months.  After attempting to install another program and encountering issues with apparent traces left behind of Office 2013 uninstall, I found the link above
and used the Fix It to attempt to remove all remaining traces of Office 2013.  While it did appear to find and clean-up quite a bit left behind from the Office 2013 install, I was surprised to find an error upon entering my existing installation
of PowerPivot for 2010 and attempting to type new formulas into the formula bar.
My experience to-date is that an error message stating ""Return Argument Has an Invalid Type" appears anytime I select or modify a formula in the formula bar that would cause the intellisense to appear.  For example, when I first click into the formula
bar, I do not get an error...but as soon as I type the first letter, before the intellisense appears, I get the error message.  Throughout the remainder of the formula as I type, just prior to any time when the intellisense drop-down will appear
again, I get the same error message again (see details below).
At one time, although I can't reproduce it now, the error message did state ".Net Framework" in the menu bar of the error pop-up window.  I can't get that to appear again, as it now only says "PowerPivot for Excel".  Based on this, I had attempted
to see if I could repair my .NET framework install using the following tool:
http://www.microsoft.com/en-us/download/details.aspx?id=30135
I learned, however, that since I am running Windows 8 which comes with .NET 4.5 built-in to the OS, this tool does not yet cover that version for repair.
While the overall end-result of my PowerPivot models appear to be just the same, having to click through "Continue" on the error message multiple times each time I enter a new formula is a huge drain on productivity.
Let me know if you have any additional questions.
David
System.InvalidCastException: Return argument has an invalid type.
   at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
   at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
   at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
   at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
David Duncan Consultant I.B.I.S., Inc.

Similar Messages

  • Is it possible to combine two or more different apple accounts to one account?

    Is it possible to combine two or more different apple accounts to one account?

    No, you can't combine accounts nor transfer content between accounts - content will remain tied to the account that downloaded it.

  • Can't view my user control in the designer (An Unhandled Exception has occurred)

    I'm using VS 2012, looking at some code I wrote some time ago. For some reason I cannot view the XAML in the design view, only the XAML view. I'm getting an error that says, "An Unhandled Exception has occurred". I can compile the solution fine,
    but it won't let me view it. I don't know why I can't view it in the designer. Here's the error details:
    Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException
    Object reference not set to an instance of an object.
       at System.Windows.StyleHelper.FindNameInTemplateContent(DependencyObject container, String childName, FrameworkTemplate frameworkTemplate)
       at System.Windows.TemplateNameScope.System.Windows.Markup.INameScope.FindName(String name)
       at MS.Internal.Data.ElementObjectRef.GetObject(DependencyObject d, ObjectRefArgs args)
       at MS.Internal.Data.ObjectRef.GetDataObject(DependencyObject d, ObjectRefArgs args)
       at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.VerifySourceReference(Boolean lastChance)
       at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
       at MS.Internal.Data.DataBindEngine.Run(Object arg)
       at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
       at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.UIElement.UpdateLayout()
       at System.Windows.Interop.HwndSource.SetLayoutSize()
       at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
       at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteUIElement.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteUIElement.CreateContent>b__11()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.InvokeCall(Call call)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessQueue(CallQueue queue)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessInboundAsyncQueue(Int32 identity)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.ProcessMessage(Int32 msg, IntPtr wParam, Boolean elevatedQuery, Boolean& handled)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.OnWindowMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.MessageOnlyHwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.RunApplication()
       at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.<>c__DisplayClass2.<Main>b__0()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    Rod

    I stopped when I saw stuff about databinding.
    I guess your problem is you have code in your constructor.
    A prameterless constructor of a view will be called by the designer.
    This is probably trying to use things which aren't there at design time.
    You can mock them or just exit out the constructor if you're in the designer.
    public YourUserControlConstructor()
    InitializeComponent();
    if (DesignerProperties.GetIsInDesignMode(this)
    return;
    // Dependent code which produces errors
    http://social.technet.microsoft.com/wiki/contents/articles/29874.wpf-tips-designer-detection.aspx
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Why can I no longer install iTunes updates on my computer? I keep getting messages saying it fails, and to do it manually, but then I get popups questioning whether I have the authority to make these changes. And it never updates.

    Why can I no longer install iTunes updates on my computer? I keep getting messages saying it fails, and to do it manually, but then I get popups questioning whether I have the authority to make these changes. And it never updates.

    Make sure you are running as the Administrator of the Account.
    Also...  See this User Tip by turingtest2
    Troubleshooting issues with iTunes for Windows updates

  • TS1717 Can't open iTunes, keeps getting this error "iTunes.exe - Unable to locate component. This application has failed to start because MSVCR80,dll was not found"

    Can't open iTunes, keeps getting this error "iTunes.exe - Unable to locate component. This application has failed to start because MSVCR80,dll was not found"

    Solving MSVCR80 issue and Windows iTunes install issues.

  • I can't acess itunes on my PC I tried to uninstall and keep getting an error message

    I can't acess itunes on my PC I tried to uninstall and keep getting an error message

    Try to download an older version of iTunes by Using Firefox browser from Mozilla

  • Trying to send "Message" on iPad 2 and keep getting message that "x" is "not registered with iMessage." Never happened on previous iPad. What does it mean and how do I solve?

    Trying to send "Message" on iPad 2 and keep getting message that "x" is "not registered with iMessage." Never happened on previous iPad. What does it mean and how do I solve?

    Trying to send "Message" on iPad 2 and keep getting message that "x" is "not registered with iMessage." Never happened on previous iPad. What does it mean and how do I solve?

  • HT1420 Trying to get latest version of Itunes and keep getting message that Apple Mobile Devices failed to start, do I have authorization. I am only user.  I have uninstalled old version of ITunes, becuase I kept getting errors. What do i do?

    Last time I opened ITunes, was told I did not have latest version and proceeded to download new version.  As it was loaded, keep getting message that Apple Mobile Devices failed to start, verify that I have sufficient privileges to start system services.  I am the only user on the computer and in household. I have tried installing several timees and keep getting same message.
    What should I do?

    Hey CarleneS,
    First, I would try the steps in here:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    If you end up having to remove and reinstall iTunes, make sure you follow all of the steps in this link:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    This section contains information that might help your situation, as the order and manner which you uninstall has an effect on the outcome:
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    Let us know if following that article and uninstalling those components in that order helped the situation.
    Welcome to Apple Support Communities!
    Regards,
    Delgadoh

  • Can't Launch Illustrator CS6 on my Mac and keep getting message to install Java SE 6

    When I try to launch Illustrator on my Mac, it asks me to install legacy Java SE 6 every time. Even after installing Java SE 6, it still doesn't open up and keep asking me to install legacy Java SE6. How can I get Illustrator to open without this message?

    i got stuck trying to understand the nuts & bolts of this post too but the answer is here on post #7 link in creating the two folders manually or by the Terminal routines
    i put screenshots on my thread of the column views Pls just tell me how - CS6 Yosemite Java
    as post #9 said, i am pretty sure you just manually create the new folders in the locations, give them the suggested names, and the OS will do the rest but i did mine through Terminal...
    as a final redundant note, u probably don't want to install the legacy JAVA 6 on the Apple link because it's old, go to https://www.java.com/en/download/mac_download.jsp?locale=en  and install the latest version of JAVA (and be sure to update it in the future in case apple/adobe software updates don't find it for u)

  • I am trying to download photos to mac from iphone 4s and keep getting message (unreadable files:315) which I say (OK).  Then it throws me out of downloading.  What can I do to get my photos downloaded to Mac?

    Trying to download photos from iphone 4S to a MacBook Pro.  The process keeps getting interrupted/stopped with a notice (unreadable files:315).  When I click (OK), thinking it will download all other photos other than the 315, it stops downloading.  I did this thru Image Capture and also Import Photos in iPhotos.  Both did not work.  What can I do?

    Try:
    - Try another cable.
    - Try another USB port
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    If still problem then it appears the photo files on the iPod are corrupted or you have a hardware problem with the iPod

  • HT201413 trying to download rental film which was interrupted. tried different wifi networks. keep getting message that cannot download because network connection lost.any suggestions please

    I have recently rented a film from itunes for the first time and stopped the download. Every time I now "search for available downloads" - using different wifi networks - I get a message from itunes to say that the network connection was lost. I have tried from home and work and am at a loss as to what to do. Any suggestions please?

    Hi Moira Bain,
    If you are still having issues downloading your iTunes Store rental with an error message about a lost network connection, you may find the troubleshooting steps in the following article helpful:
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    Regards,
    - Brenden

  • I clicked on Firefox's "save password" on a blogsite, now I can't "comment" on that site, I'm caught in a loop, keep getting logged out of that site when I try to comment, but not a problem when I try Explorer.

    When I navigate to the page to view comments and leave a comment myself, the comments appear but the link to leave a comment is missing, and my username and password is pre-populated in those fields (presumable by the Firefox "save password" program)on that "comment" page. When I click "submit" to log in again, I am logged in but redirected back to the front page. When I click on the page that allows me to leave a comment, I get kicked out again. I'm caught in a loop.
    I do not have this problem when I exit Firefox and open Internet Explorer and go to that blog site, although the username and password fields are automatically populated when I type the first digit of my username, probably because Firefox is still operating in the background on my computer.
    I tried clearing two hours of recent history, as that was the timeline when I clicked on "Save Password" from the pop up box, but it didn't help.

    You can find the links to download the Flash plugin for Windows at the bottom of this page:<br />
    Adobe - Common Flash Player download and installation issues (Windows): http://www.adobe.com/products/flashplayer/support/index.html
    Go to: 3. Download Adobe Flash Player

  • How do you combine two or more different toolbars?

    There is wasted space on multiple toolbars that could be utilized better by moving one tool bar's items up to the empty space above. IE Norton's tool bar has 3 / 4 items on it. The Firefox tool bar above has 3 items on it: Most Visited, Getting Started and Firefox Updated with 2/3's of the bar as empty space.
    Even the menu toolbar has over half of the toolbar as empty wasted space.
    How do you do that? Thanks

    You can (temporarily) hide unneeded toolbars via "View > Toolbars"
    The bar with Most Visited and Getting Started is the Bookmarks Toolbar and if you open "View > Toolbars > Customize" then you can drag the "Bookmarks Toolbar items" item onto another toolbar (e.g. Menu bar) and hide that now empty Bookmarks toolbar.<br />
    Toolbars added by an extension can only be merged onto another toolbar if that extension supports that feature and most extensions do not.

  • Combine update stmts with different columns and criteria

    Hi All,
    I have the following 3 update stmts that update the same table. The table DSVEHS has 45 million rows. The table PPDSDETL has 95 million rows. How to combine them? I'd like to reduce the times to scan those tables. There is a primary key on PPDSDETL for dipoln, direnn, diseqn, didscd and another column not in the query.
    Please give me some suggestions. Thank you in advance.
    UPDATE DSVEHS
    SET accfgn_sur = 'Y'
    WHERE EXISTS (SELECT 'X' FROM PPDSDETL
    WHERE polnum = dipoln
    AND polren = direnn
    AND polseq = diseqn
    AND UPPER (TRIM (didscd)) = 'ACCFGN');
    update DSVEHS
    set mviofg_sur = 'Y'
    where exists (select 'X' from PPDSDETL
    where POLNUM=DIPOLN
    and POLREN =DIRENN
    and POLSEQ =DISEQN
    and upper(trim(DIDSCD)) ='MVIOFG' ) ;
    update DSVEHS
    set accfre_dsc= 'Y'
    where exists (select 'X' from PPDSDETL
    where POLNUM=DIPOLN
    and POLREN =DIRENN
    and POLSEQ =DISEQN
    and upper(trim(DIDSCD)) ='ACCFRE' ) ;

    Hi,
    user13081819 wrote:
    Hi Frank:
    Here is a set of sample result:
    POLNUM POLREN POLSEQ VEHNUM DRVNUM TRANSD MULTIC PRODUC HOMEOW NONOWN RENEWA DRIVER OT ACCFGN_SUR MVIOFG_SUR ACCFRE_DSC
    1111111 0 1 2 0 mmmmmm xxxxxx Y N Y
    2222222 0 3 1 0 Y N Y
    ...This site normally won't print multiple spaces in a row.
    Whenever you post formatted text, like your results, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    The table structures are:
    DSVEHS
    Name Null? Type
    POLNUM NOT NULL NUMBER(9)
    POLREN NOT NULL NUMBER(2)
    POLSEQ NOT NULL NUMBER(2)
    ...Post CREATE TABLE statements instead.
    Please let me know if you need more information.Besides the things mentioned above, post INSERT statements for the sample data that produces the given results.
    Did you say which version of Oracle you're using?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I have new 4s. Backed up old 3G on iTunes, attempted to sync new 4s to iTunes and keep getting message that new iphone does not have 10.5 but have downloaded on all Mac devices.  How do I get old settings to my new 4s?

    I purchased the new iPhone 4S tonight.  Previously used the 3G.  Synced the 3G, plugged in the new 4S and got message could new iPhone did not have 10.5 and to go to iTunes and download.  Did that on both new 4S and made sure iTunes on Mac had 10.5.  Tried again.  Got same message.  Cannot sync new 4S to iTunes and restore to move my photos and contacts to new 4S.  What can I do?

    thanks but how do i recover i have logged in to itunes and connected new phone and none of my old library is there ?
    Do i need to sync the old 4 to have all apps and music in my account
    Sorry not to good on the itunes thing
    thanks

Maybe you are looking for

  • Error while registering SMS portlet

    Hi, portal version 9.0.4.0.99 I am getting the following error while registering SMS portlet using the external application SMSExternalApp. SOAP: Caught SOAPException (SOAP-ENV:Client): For input string: "3782 " [java.lang.NumberFormatException] Ille

  • PCUI Display Mode Error

    Hi All, I am able to display data in the PCUI CRM 5.0 (This occurs when a user does not have authorization or the BP is locked), but when this BP data is displayed the settings in the field group are not adhered to I.E. hidden fields are displayed an

  • Two url's with GO function

    We have one dashboard ('unit zuiveren') with 2 tabs in it ('algemeen' and 'rwzi'). I want to have one url which opens the dashboard in the first tab (algemeen') and a other url which opens directly the second tab. ('rwzi'). When I read the documentat

  • Os9 in os 10.4.11

    Can I install os 9 in my G5 imac os 10.4.11?

  • Update panel did not work with ajax control toolkits

    hye there, can anybody helps me about the update panel. I have a grid view that must show the file that i already browser. in my situation i am using Ajax control toolkit so it automatically will upload the file in the grid view. Unfortunately it did