Production Order Error: "Unable to cast COM object of type 'System.__ComObj

Hi all,
I have the following code:
Dim oProdOrders As SAPbobsCOM.Documents
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
after the second line I get a system exception: {"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.Documents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A6DA575B-E105-4585-9F4B-50CC4044EEDD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}     
If I change document to eg oQuotations it proceeds normally.
Any Idea?
Thanks in advance,
Vangelis

try it as
Dim oProdOrders As SAPbobsCOM.ProductionOrders
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)

Similar Messages

  • Error message: Unable to cast object of type 'System.DBNull' to type 'System.String'

    Hi everyone, I have recently installed a trial version of SDL Trados (a computer-assisted translation software) and at some point (when I try to create a new translation memory) this error message appears: Unable to cast object of type 'System.DBNull' to type 'System.String' Is this a problem with the software or the laptop ? If it's the laptop, can you please help me solve this ? Thank you,Caroline

    Actually there was not problem witg the laptop ! Please ignore this topic. Thanks.

  • RMS error - Unable to cast object of Type 'System.Byte[]' to type 'System.String'

    Hi,
    I'm experiencing an issue when trying to connect to RMS cluster through server manager. Error is:
    Active Directory Rights Management Services could not complete the task because an error occurred. This error may be caused by variable conditions.
    Details:
    Exception message:
    Unable to cast object of type 'System.Byte[]' to type 'System.String'.
    Exception type:
    System.Web.Services.Protocols.SoapExtension (Inner Exception: System.InvalidCastException)
    I've re-installed server, I've reinstalled RMS role, I've tried with and w/o SSL connection to RMS but the error persists. OS is 2008R2 (updated), database is internal (test environment)... 
    Any suggestions?

    Actually there was not problem witg the laptop ! Please ignore this topic. Thanks.

  • Unable to cast object of type 'System.Xml.XmlText' to type 'System.Xml.XmlE

    Hi All,
    We just migrated from BPC 5.1 to BPC 7.0 SP6. But when we want to run a package in the data manager we get the following error:
    Exception Text **************
    System.InvalidCastException: Unable to cast object of type 'System.Xml.XmlText' to type 'System.Xml.XmlElement'.
       at OSoft.Consumers.DataMgr.PackageModify50.PackageDetail.LoadDetail(String strXMLString)
       at OSoft.Consumers.DataMgr.PackageModify50.PackageDetail.GetPackageDetailfromServer(String strPackageName, String strPackageFilePath, String strTeamID)
       at OSoft.Consumers.DataMgr.PackageModify50.frmMain.PackageListClickEvent(String strPackageID, String strPackageFileName, String strTeamID)
       at OSoft.Consumers.DataMgr.PackageModify50.frmMain.SetStartUp()
       at OSoft.Consumers.DataMgr.PackageModify50.frmMain.frmMain_Load(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Any idea?
    Br
    Steven

    Hi,
    If you were running 5.1 version, that would also mean that you were running packages under SQL 2005.
    And if you are now running SQL 2008 with BPC 7.0, you should also review all your customized packages. In fact, BPC tasks in SSIS are not the same between SQL 2005 and SQL 2008.
    In addition, I would recommend to upgrade your SQL server version to SQL 2008 SP1 cumulative update package 6 (prerequisite). Not sure if you're still running this CU.
    Hope this will help.
    Best Regards,
    Patrick

  • Unable to cast object of type 'System.DBNull' to type 'System.String'.

    Hi,
         I am getting Below error:
    Unable to cast object of type 'System.DBNull' to type 'System.String'. 

    Hello,
    Please confirm whether you are using sharepoint or not. If you are getting this error in sharepoint then Could you share your code with us? and also tell where you are getting this error.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • An Exception thrown "Unable to cast transparent proxy to type " when running on Azure emulator

    Hello, When i run my solution on azure emulator this exception thrown:
    System.InvalidCastException was unhandled
      HResult=-2147467262
      Message=Unable to cast transparent proxy to type 'Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge'.
      Source=WaWorkerHost
      StackTrace:
           at Microsoft.WindowsAzure.Hosts.Worker.Loader.CreateConsoleRole(Parameters parameters)
           at Microsoft.WindowsAzure.Hosts.Worker.Loader.Main(String[] args)
      InnerException: 
    Any help?

    We are having the same issue - our worker role just recycles with this "Unable to cast transparent proxy to type 'Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge'." error.
    We can't really put a breakpoint in CreateConsoleRole and Main - that's Microsoft code from the Azure SDK.
    Not sure why this was marked as answered.

  • Invoke Web service - WSDL error "Object of type 'System.Int32' cannot be converted to type 'System.UInt64'."

    Hello,
    I'm having a problem when I try to load the WSDL file for the "Invoke Web Service" activity.
    I'm trying to create a connection between Orchestrator 2012 R2 and Cisco Unified CM through a Web Services. When I click the WSDL file and I click the "Format Hint" button appears the following error "Object of type 'System.Int32' can not be
    converted to type 'System.UInt64'."
    The WSDL file that Cisco Unified CM I exported another work tools, tested and working well. In Orchestrator just gives the error.
    Can anyone help with this?
    Thank you
    Rui

    Hi,
    You're going to have to use Get-AzureVM to get your specific VM object and then pipe it into Add-AzureDataDisk. See the examples here:
    http://msdn.microsoft.com/en-us/library/windowsazure/dn495298.aspx
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Error: unable to connect to database using user system. please check privil

    Hi All,
    i have 2 oracle databases in my system (ORCL,RR). i am able to connect both databases i sql prompt. but in ggsci prompt not able to connect rr database due to below error
    dblogin userid system, password tiger.
    Error: unable to connect to database using user system. please check privil
    Can you please help me to connect RR database also in GGSCI promt.
    Thanks
    Raja

    Did you try with RR database tns name or sid while connecting ?
    If No then try this ,
    GGSCI (ATP) 6> DBLOGIN USERID SYSTEM@<tns alias name>
    Password:
    Successfully logged into database.
    HTP
    Annamalai.

  • Crystal Reports Server Error - Unable to cast object of type

    Hi Everyone,
    Not sure if this is the right place to post this question but couldn't find a Crystal Reports Server section.
    After doing a windows update on my crystal reports server the following error now occurs when trying to log into .Net InfoView -
    An error has occurred: Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'BusinessObjects.Enterprise.Desktop.InfoView'.
    I found the following article which I followed and re-installed the .net components as well as ensured all services are enabled.
    Article: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303335333433323337%7D.do
    The error still occurs.
    I did some further investigation and found that a similar error occurs in the Admin Console when I try and open the Crystal Report DataSources.
    This is the error page that comes up
    Server Error in '/businessobjects/Enterprise11/WebTools' Application.
    Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.
    +Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
    about the error and where it originated in the code.+
    +Exception Details: System.InvalidCastException:
    Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.+
    Source Error:
    +The source code that generated this unhandled exception can only be shown when compiled in debug mode.
    To enable this, please follow one of the below steps, then request the URL:+
    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
      <%@ Page Language="C#" Debug="true" %>
    or:
    2) Add the following section to the configuration file of your application:
    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>
    +Note that this second technique will cause all files within a given application to be compiled in debug mode.
    The first technique will cause only that particular file to be compiled in debug mode.+
    +Important: Running applications in debug mode does incur a memory/performance overhead.
    You should make sure that an application has debugging disabled before deploying into production scenario.+
    Stack Trace:
    InvalidCastException: Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.
       +CrystalDecisions.Enterprise.WebContent.WebSamples.DataSources.Common.datasourceInfoFromReports(ArrayList reports) 226
       +CrystalDecisions.Enterprise.WebContent.WebSamples.DataSources.Datasources.Main() 1821
       +ASP.websamples_datasources_datasources_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) 531
       +System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 98
       +System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 20
       +System.Web.UI.Page.Render(HtmlTextWriter writer) 26
       +System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 25
       +System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 121
       +System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 22
       +System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 2558
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
    Any information on how I can fix this is greatly appreciated.
    Regards
    Paul
    Edited by: Paul Griscti on Sep 3, 2008 2:52 AM

    I'd try creating a new Application Pool just for running businessobjects and crystalreportviewers11 and nothing else. 
    Although the apps are .NET, it uses COM Interop for functionality, so using a common app pool with other versions will collide.
    Beyond that - if you have a SAP Business Objects support contract - you might open a new SAP Incident ticket.
    Sincerely,
    Ted Ueda

  • Vsdbcmd error: Unable to cast object of type 'Sql100Synonym' to type 'Microsoft.Data.Schema.Sql.SchemaModel.ISqlColumnSourceBase'.

    I am implementing synonym in a database to pass-thru to another database to replace an existing table. 
    E.g. CREATE
    SYNONYM [dbo].[Table1]
    FOR [server1].[database1].[dbo].[Table1]
    I am getting an error such as below when I try to deploy it with vsdbcmd tool as below:
    vsdbcmd /Action:Deploy /dsp:SQL /p:TargetDatabase=database1 /ManifestFile:"deploymanifest" /Script:"database1.sql"
    CAQuietExec:  An unexpected failure occurred: Unable to cast object of type 'Sql100Synonym' to type 'Microsoft.Data.Schema.Sql.SchemaModel.ISqlColumnSourceBase'.
    I can't find anything related to this error on the net.  I appreciate any help on this.
    Thanks,
    Keith

    Hello Keith,
    Your issue seems related to deploy some database, is it SSDT deployment? It seems VS General is not the right forum for your case, please choose the right forum for your case, like SSDT forum.
    I read your post and it seems your 'Sql100Synonym' does not meet the type requirement, what's it in your project? What do you want to deploy?
    Best regards, 
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Urgent- production order error- ERTR status

    Dear PP Gurus
    i have an urgent production issue, we have full fledged WM implemented and production order components are issued automatically when order is released via a Pick list 
    Now the problem is that the BOM components are NOt correctly staged during picking
    after the order is released , the status shows <u><b>ERTR- Error in transfer requirements</b></u>, so how should i solve this error
    i have created production supply areas and maintained supply areas in MRP=2 views, i have also created Control Cycles for all the materials
    please help and appreciate your valuable expertise on how to solve this urgent issue
    thanks in advance
    regards
    Chakri<u></u>

    Hi Chakri
    Check production schedulign profile, Did you maintain WM in that
    also check in Control cycle ,staging ind. shd be "1"
    Cheers
    bala

  • T-code CO01 to create Production order:error message "No routing found"?

    I use t-code CO01 to create Production order.At the first screen I select material 72 and plant HJW1 .At the Header creen,I input the data in the General tab and press return but the sap show the error message "No routing found".But I have create the routing for the material 72 and plant HJW1.I don't know why the sap found no routing.So my question was how to found the reason about why the sap can not found the routing and how to resolve this problem.Thank you.

    Hi,
    Probably you would have created the routing today, with valid from todays date. But the order you are creating may be with start date in past and system is not able to find and valid routing for the day.
    I would suggest you to remove both the Basic "Start" and "End" and change the scheduling type to "Current date Scheduling", now enter. If system still not finding the routing, use the function "Read PP Master data".
    Regards,
    Prasobh

  • D3L "produce" error: unable to find attribute object for top node

    Hi
    I'm new to this forum, hope someone can help me with this because it's really been causing a headache for a few days now.
    I'm trying to deliver a flat file message with an interconnect standard ftp adapter. All the transformations go well but then i get this error message:
    oracle.oai.agent.adapter.technology.D3LException: [SmartQueueDispatcher] <struct id="GallupData" name="" comment="" ...>: unable to find attribute object for top node, got `[  stationId: 01
    startDate: 040801
    (messsage truncated)
    emission: 1
    ]' instead
         at oracle.oai.agent.adapter.technology.D3L.produce(D3L.java:391)
         at oracle.oai.agent.adapter.technology.TechBridge.messageReceived(TechBridge.java:876)
         at oracle.oai.agent.client.SmartQueueDispatcher.run(SmartQueueDispatcher.java:451)
         at java.lang.Thread.run(Unknown Source)
    The message is exactly 65570 bytes (in the format written to the log).
    Any help appreciated.
    Leon Simonsen

    I finally solved the problem: The name of the d3l xml file must be named with the name of the data type. Just thought i'd let anyone know.

  • Production Order errors

    Hi gurus,
    When I am trying to create Production Order, system is showing  Error messages:
    1. release of Order not possible    -
       why?
    2. No checking rule maintained for Operation   --- how to maitain?
    Regards,
    Sudha

    Dear
    You need to create the scope of availability check in OPJJ transaction.
    In OPJJ choose the checking group 02 and checking rule combination, do the setting as you required.
    Then assign the same into finished goods material master MRP-3 view.Now you try for that.

  • Closing Production Order error

    Dear All
    I am hoping someone can point me in the right direction. When we try to close some Production Orders we get a message "There is still a Purchase Requistion Commitment for Ord XXXXXXX" where XXXXXXX is the produstion order number. We get this when we try via COHV or via CO02.
    I have checked the Compents Overview and made sure any O/S commitment has the deletion Indicator set, and also check MD04 for the components. So any help would be much appreciated.

    Dear Gray,
    Don’t take it otherwise, we are all in this forum as friends to help each other to come out the situation. If you reward after your problem gets solved, people who answered, attempted to answer, share your problem  will feel happy to answer your question as well as others question. We as a team need to develop this forum
    Today I have answered your question, tomorrow you may answer my question....if I reward do not you feel good?
    best of luck.

Maybe you are looking for

  • White window shows up on all adobe programs just a strip window overlay...

    When I open adobe reader or Elements a white window opens with a ryb buttons on the top left. It well go on and off it I indicate a command  and preferences. It hides the preferences unless I drag it on the top left corner.  It is aways there..can an

  • Is it possible to save a document both locally and to iCloud

    Good evening Ladies and Gents! Is it possible to save a Numbers document both locally on my Mac's HD and to iCloud so I can access it on my phone when I'm out and about? Thanks in advance.

  • Using Dynamic Text to tell a Hyperlink where to go.

    So I am having a little trouble on my site, and this community seems like a good place to go for help, and I am sure someone out here can help me. I have a webpage that uses dynamic text and images, and it serves as my user profile page. I know the d

  • How to determine line count in single multiline textbox

    I have data that comes out of a sql db text field that already has line breaks and paragraph breaks.  I would like to determine how many lines this will be (w/ line wrapping on) so that I can say if over 20 lines font = 12 pt. etc.  How do you determ

  • Crash when importing Outlook contacts

    I have tried to use the import of outlook contacts (OL 2007) in PSE 9. Everytime I select Outlook as the source, bam, PSE stops working. W7 64 is the OS. Any ideas? Really silly to have to re-enter contacts from outlook as this was a feature I was wa