ADOMD.Position Error Object is no longer valid

Tech-Archive recommends: Fix windows errors by optimizing your registry



We have a .NET application that uses ADOMD to query a MS analysis OLAP
cube. In a typical query, we get data for about 3 dimensions (800 x 15
x 2 entities) and then iterate over the resulting cell set to extract
information. Occasionally, we see "Object is no longer valid"
exceptions being thrown.

The object (whose access usually throws this error) is of the type
"ADOMD.Position". Sometimes the error appears while executing
Cell.Get_Item(). We have a mechanism to retry the query if these
exceptions are thrown in a (vain) hope that on the retry the whole
thing will go off successfully.

This works sometimes, but not always, so this isn't satisfactory. Does
anyone have any idea why this would be happening? Is this something to
do with garbage collection? Or is it because ADOMD is an unmanaged
component? Are there any workarounds/fixes?

I would be grateful to know.

Thanks
Vipul

.



Relevant Pages

  • "Object is no longer valid" exceptions
    ... we have a .NET application that uses ADOMD to query a MS analysis OLAP cube. ... we see "Object is no longer valid" exceptions being thrown. ... hope that on the retry the whole thing will go off successfully. ...
    (microsoft.public.dotnet.framework.adonet)
  • ADOMD problem...Object is no longer valid exception.
    ... We have a .NET application that uses ADOMD to query a MS analysis OLAP cube. ... we see "Object is no longer valid" exceptions being thrown. ... hope that on the retry the whole thing will go off successfully. ...
    (microsoft.public.sqlserver.olap)
  • ADOMD.Position Error Object is no longer valid
    ... We have a .NET application that uses ADOMD to query a MS analysis OLAP ... exceptions being thrown. ... We have a mechanism to retry the query ...
    (microsoft.public.windowsxp.general)
  • ASP.Net ADOMD error Object is no longer valid
    ... We have a .NET application that uses ADOMD to query a MS analysis OLAP ... exceptions being thrown. ... We have a mechanism to retry the query if these ...
    (microsoft.public.dotnet.general)
  • hierarchize in ADOMD
    ... i ran a mdx query on the mdx sample application and it ran fine. ... internal error" becuase of the Hierarchize mdx command. ... command off the query it again ran ok with the adomd. ...
    (microsoft.public.sqlserver.olap)