Delete of collection results in "not managed by this PersistenceManager"

Hello there,
I have a object A with a collection of B objects.
What I do is:
1. I create an A with serveral Bs (and comitt)
2. With a query, I select one B and delete it (and commit)
3. When I now re-query for A and it's Bs I get a
javax.jdo.JDOUserException: The instance "B_Class" is not managed by this
PersistenceManager.
It looks to me as if A and it's related Bs are somewhat cached. The error
goes away if a I do an evictAll() or evict(A) after I've deleted the
specific B instance.
However this is either slow or error-prone.
How do I delete objects so that the integrity of A is not affected?
Regards,
Ingomar

here's the code.
Patrick Linskey wrote:
Yan,
Additionally, it is possible that you set a relation in 'obj' to an
object that is not managed by the PersistenceManager, and then traversed
that relation in your query. Could you please post the code that builds
up and executes the query that you are executing?
-Patrick
Yan Or <[email protected]> writes:
i got this exception when i tried to persist an object and then query
for it in
the same transaction:
[java] javax.jdo.JDOUserException: The instance
"test.TestObject@195d80"
is not managed by this PersistenceManager and therefore cannot be
queried.
[java] at
com.solarmetric.kodo.query.InMemoryExpressionFactory$PathImpl
.eval(InMemoryExpressionFactory.java:452)
[java] at
com.solarmetric.kodo.query.InMemoryExpressionFactory$CompareE
xpression.eval(InMemoryExpressionFactory.java:649)
[java] at
com.solarmetric.kodo.query.InMemoryExpressionFactory$Conditio
nalExpression.eval(InMemoryExpressionFactory.java:588)
[java] at
com.solarmetric.kodo.query.InMemoryExpressionFactory$Expressi
onImpl.execute(InMemoryExpressionFactory.java:552)
[java] at
com.solarmetric.kodo.query.QueryImpl.synchWithTransaction(Que
ryImpl.java:433)
[java] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl
.java:360)
my code looks like this:
PersistenceManager pm = JDOFactory.getPersistenceManager ();
Transaction transaction = pm.currentTransaction ();
transaction.begin ();
pm.makePersistent(obj);
... query for the obj ...
transaction.commit ();
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Instance not managed by this PM Exception

    I'm running into a problem migrating some old code which used to work with
    Kodo JDO Enterprise Beta 2.1.3 over to the latest Beta 2.2.1.
    The use case involves loading a persistent object A in one PM and then
    setting it as a persistent member of a new non-persistent object B (i.e.:
    B.setA(A) ). Both A and B are first-class persistence capable objects.
    When I then try to persist B by calling makePersistent() on it using another
    PM in an optimistic transaction, I get the following exception at commit:
    javax.jdo.JDOUserException: The instance is not managed by this
    PersistenceManager.
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(Per
    sistenceManagerImpl.java:665)
    at
    com.solarmetric.kodo.runtime.PersistFCOFieldManager.setFirstClassObject(Pers
    istFCOFieldManager.java:107)
    at
    com.solarmetric.kodo.runtime.PersistFCOFieldManager.setObject(PersistFCOFiel
    dManager.java:75)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.providedObjectField(StateManag
    erImpl.java:924)
    at MyObject.jdoProvideField(MyObject.java)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.provideFields(StateManagerImpl
    ..java:1222)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.persistFirstClassFields(StateM
    anagerImpl.java:1171)
    at com.solarmetric.kodo.runtime.PNewState.preStore(PNewState.java:31)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.preStore(StateManagerImpl.java
    :323)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManager
    Impl.java:319)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManage
    rImpl.java:245)
    The failed object in the exception is null. Also note that A has not
    changed during the scope of the transaction.
    Is this a bug or is this type of operation, involving clean objects managed
    by other PMs, no longer supported?
    Thanks,
    Sasha Haghani

    Hi Sasha,
    I don't think the spec is entirely clear on this point, but the relevant
    part of the spec is 12.5.7:
    Make instances persistent
    These methods make a transient instance persistent directly. They must be
    called in the context of an active transaction. They will assign an object
    ideentity to the instance and tatrnsition it to persistent-new. During
    commit of the transaction in which this instance was made persistent, any
    tarnsient instances reachable from this instance via persistent fields of
    this instance will became persistent as well.
    They have no effect on persistent instances already managed by this
    PersistencManager. They will throw a JDOUserException if the instance is
    managed by a different PersistenceManager.
    It doesn't explicitly say what should happen if one of the reachable objects
    is managed by a different PM. It does declare what the behavior should be
    for persisting the top-most object, which is do nothing if managed by the
    PM, throw an exception if managed by some other PM. In the absence of other
    information, it seems reasonable to me to expect this same behavior when the
    PM attempts to make the reachable objects persistent, after all, what's the
    difference?
    In particular, what should happen if an object related to a transient object
    is managed by some PM that talks to a totally different database than the
    current one, with different primary keys, even persisting different methods
    of the object? How could the current PM possibly put such a relation into
    the database? In this case, throwing an exception seems like the only
    possibility.
    I would personally like to see an option where you can indicate to the JDO
    implementation that all your PMs are talking to the same db, and that it
    shouldn't throw an exception here. It would certainly make my life easier,
    along with most people in what I suspect will be a very common situation of
    using only really one type of PM, talking to one database, but with multiple
    instances for transactional purposes. However, I'm forced to admit that the
    spec seems to indicate, to the extent that it indicates anything, the
    behavior that Kodo displays.
    -Eric
    "Sasha Haghani" <[email protected]> wrote in message
    news:[email protected]...
    Hi Eric,
    Thanks for the feedback.
    If that is in fact the behavior that's too bad. It seems more limiting.
    The way I see it, if the related objects are persistent-clean, then the
    other PMs don't really need to get involved and the transaction should be
    allowed to complete.
    What in particular in the spec is leading you to believe that this is the
    correct behavior?
    Thanks again,
    Sasha Haghani.
    "Eric Lindauer" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sasha,
    The problem is that Kodo now throws an exception in a place where itdidn't
    used to. I believe this behavior is consistent with the spec. I had to
    make quite a few changes to my code to accomodate this same problem.
    When
    you try to make B persistent, Kodo traverses all the relations in A and
    attempting to make any other findable objects persistent. When it runsinto
    an object from another PM, it throws an exception.
    The way to fix this problem is to ensure that A is first located in the
    PM
    you are going to use before you attempt to set the relation in B. For
    example:
    A theA = ... get it however you are now...;
    theA = (A) pm.findObjectById ( JDOHelper.getObjectId ( theA ), true );
    B theB = new B ( theA );
    pm.makePersistent ( theB );
    By the way, this type of change is a case-study in why factory methodsare
    good. We use them for creating all our objects here, and I imagine this
    change would have been a royal pain-in-the-ass if we hadn't.
    Hope this helps.
    -Eric
    "Sasha Haghani" <[email protected]> wrote in message
    news:[email protected]...
    I'm running into a problem migrating some old code which used to work
    with
    Kodo JDO Enterprise Beta 2.1.3 over to the latest Beta 2.2.1.
    The use case involves loading a persistent object A in one PM and then
    setting it as a persistent member of a new non-persistent object B(i.e.:
    B.setA(A) ). Both A and B are first-class persistence capable
    objects.
    >>>
    When I then try to persist B by calling makePersistent() on it usinganother
    PM in an optimistic transaction, I get the following exception at
    commit:
    javax.jdo.JDOUserException: The instance is not managed by this
    PersistenceManager.
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(Per
    sistenceManagerImpl.java:665)
    at
    com.solarmetric.kodo.runtime.PersistFCOFieldManager.setFirstClassObject(Pers
    istFCOFieldManager.java:107)
    at
    com.solarmetric.kodo.runtime.PersistFCOFieldManager.setObject(PersistFCOFiel
    dManager.java:75)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.providedObjectField(StateManag
    erImpl.java:924)
    at MyObject.jdoProvideField(MyObject.java)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.provideFields(StateManagerImpl
    .java:1222)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.persistFirstClassFields(StateM
    anagerImpl.java:1171)
    atcom.solarmetric.kodo.runtime.PNewState.preStore(PNewState.java:31)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.preStore(StateManagerImpl.java
    :323)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManager
    Impl.java:319)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManage
    rImpl.java:245)
    The failed object in the exception is null. Also note that A has not
    changed during the scope of the transaction.
    Is this a bug or is this type of operation, involving clean objectsmanaged
    by other PMs, no longer supported?
    Thanks,
    Sasha Haghani

  • Existing collection will is not recognized

    I have a relatively new install of CF8 on linux. Within admin
    a collection can be created and indexed. It shows the number of
    files indexed. But I cannot optimize, purge or delete the
    collection within admin. I get this message:
    An error occurred while performing an operation in the Search
    Engine library.
    "Error attempting to delete collection.:
    com.verity.api.administration.ConfigurationException: Failed to
    find configuration key. (-6005)"
    I also cannot access the collection using the full path to
    the collection within cfsearch. The error mesage claims the
    collection does not exist per this error message:
    " The collection you specified does not exists or is not
    registered with the ColdFusion Search Service."
    Any ideas on this? Thanks.

    I'm having this same problem and can't seem to find any
    answers

  • Error file share not managed but fabric- provider/fileserver and hyper-v host show managed/responding

    Hi,
    I am really puzzled by the following situation. I have a SCVMM 2012 R2 cluster that manages a Hyper-V host cluster on windows 2012 r2 and storage attached by SOFS Cluster on windows 2012 r2. There is 1 share - CSV1 for all VMs.
    Under Fabric -> Providers/Arrays/FileServer everything is green and has status of responding and CSV1 is shown as managed.
    Under Fabric -> Hosts -> Cluster properties -> Fileshare storage the CSV1 is visible and status responding, just as on the hyper-v hosts.
    The error I have is that around 50% of those VM have "unsupported VM configuration" and under properties I get the error that the file share that the VHDX is running on is not managed. --> This is wrong because the share IS managed by VMM. As
    I said I only have 1 (!) CSV for ALL of my VMs. If the share isn't managed by VMM then none of the VM could show a valid status. But this is what I see.
    A refresh on the virtual machine gives me an error of ID12700 "VMM cannot complete the host operations... unkown error (0x8005)." On the Hyper-V Host itself for the time frame that I performed the refresh of the VM there are no corresponding errors.
    The only thing I found is that all VMs with unsupported configuration have wrong properties entry in SCVMM. In SCVMM
    the VM properties -> Advanced -> Availablity is set to "normal". On all VMs that work just fine the Availability is "High". I went to the Failovercluster Manager on the Hyper-V host. All VMs are visible under "Roles" and
    therefor are HA VMs. So for some reason SCVMM has a wrong information on their HA status. I am not sure if this is the reason why
    some are showing the error and some not but it is the only difference I found.
    Does someone have an idea what could cause this behavior?

    Yes all of those VMs were created before VMM exists. A Cluster refresh and hyper-v host refresh runs through without errors or information. So that is OK.
    Migration is not possible because of the error. LiveMigration is not available from the GUI. Haven't checked powershell yet but will do so today.
    I have been able to limit the errors to a smaller number of VMs (well if you could say that). I removed and re-added the hyper-v cluster. After that about 1/3 of all VMs still show the error and all of them are on the same Hyper-V server. Not sure if this
    is relevant or just by "accident". I checked this hyper-v host but in regards to storage, network, hyper-v configuration I do not see any difference to the other two cluster nodes either on hyper-v nor on SCVMM.

  • An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to ad

    An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to adapt the file to make its reading possible?
    Did somebody get the same problem?

    It is a high order probability that your SQL's report generator is creating the PDF, not Acrobat (which by design and EULA cannot be used in as/with server).
    That the report generator outputs to an old-old version of PDF bears this out.
    Wiki articles on PDF are very nice for those high level intro summaries.
    To know / understand PDF you purchase and study the ISO Standard for PDF (ISO 32000-1:2008).
    Rather than "PDF validation" you may want to consider addressing the appearent root cause of the problem(s).
    You can change the email2fax application to one that can deal with older PDF versions.
    You can change the report generator to one that can output to the ISO Standard.
    (Perhaps the in-use application can be configured to output to the current version of PDF (i.e., the ISO Standard).
    Be well...

  • EMERGENCY: List of files in Recovery Area not managed by the database

    Hi,
    this is an emergency request....
    I have this data guard set up. And i accidently dropped online redo logs, standby logs and the archive log except the current online redolog.
    i actually ran to cleanup the whole directory which included the controlfile and the datafiles (was on the wrong location on ASM)
    but the controlfile and the datafiles did not get deleted. i can still see them on the ASM.
    and now when i am trying to restore the archive logs, but i keep getting error as shown below...
    WARNING: A file of type ARCHIVED LOG may exist in
    db_recovery_file_dest that is not known to the database.
    Use the RMAN command CATALOG RECOVERY AREA to re-catalog
    any such files. This is most likely the result of a crash
    during file creation.
    so when i did the below i was getting error as:
    RMAN> CATALOG RECOVERY AREA;
    using target database control file instead of recovery catalog
    searching for all files in the recovery area
    no files found to be unknown to the database
    List of files in Recovery Area not managed by the database
    ==========================================================
    File Name: +DATA/afcpdg/controlfile/controlfile01.ctl
    RMAN-07526: Reason: File is not an Oracle Managed File
    File Name: +DATA/afcpdg/onlinelog/group_1.304.718194815
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    number of files not managed by recovery area is 82, totaling 168.10GB
    But i do see those data files that RMAN is complaining as shown above in the ASM.
    I HOPE I DID NOT MESS UP THE CONTROLFILE and the DATFILES
    CAN SOMEONE HELP ME FIX THIS MISTAKE THAT I DID.
    Right now the data guard is running fine, the logs are getting shipped from primary and the getting applied at the DG.
    And i am able to see all the redo logs got deleted.
    But not sure how the deleted redo logs got created in the ASM (i did not create them manually)
    Thanks.
    Philip.
    Edited by: user8898644 on May 5, 2010 8:52 AM
    Edited by: user8898644 on May 5, 2010 9:16 AM
    Edited by: user8898644 on May 5, 2010 11:43 AM

    Yes this happened on the standby database.
    I had to restore the archive logs because i deleted all the archive logs which got shipped from the primary.
    I did re-create the standby logs. But when i checked back the redo logs that i deleted came back again.
    I have no idea how they can back again. is it a feature of ASM where a mirrored copy of the files are stored on ASM and they re-create them when accidently dropped.
    Can you help me understand how the redologs got created again automatically.
    Right now the data guard is running fine but i do see the error
    WARNING: A file of type ARCHIVED LOG may exist in
    db_recovery_file_dest that is not known to the database.
    Use the RMAN command CATALOG RECOVERY AREA to re-catalog
    any such files. This is most likely the result of a crash
    during file creation.
    and when i do the following
    RMAN> catalog recovery area;
    i do see errors as below...
    List of files in Recovery Area not managed by the database
    ==========================================================
    File Name: +DATA/afcpdg/controlfile/controlfile01.ctl
    RMAN-07526: Reason: File is not an Oracle Managed File
    File Name: +DATA/afcpdg/onlinelog/group_1.304.718194815
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    File Name: +DATA/afcpdg/onlinelog/group_2.372.718194833
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    File Name: +DATA/afcpdg/datafile/system.596.715610261
    RMAN-07527: Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
    File Name: +DATA/afcpdg/datafile/undotbs1.571.715603525
    number of files not managed by recovery area is 82, totaling 168.10GB
    we do have the db_create_file_dest and db_recovery_file_dest pointing to the same location as +DATA
    How do i fix the above error?
    Thanks in advance.

  • Campus Manager Device Not managed

    Dear *,
    I have LMS 3.2 and on my campus manager device is showing not managed. I excluded the devices and included is again and and did data collection and still the same. I even deleted it from Common Services, re-discovered it and included in CM but still the same. Any help please. This device was fine before.
    Thanks
    Aamir

    1. Post screen shot of error.
    2. What kind of device is it?
    3. Is this LMS installation being managed locally or by ACS?

  • Premiere Pro CS6 Project Manager gives error & will not manage project - OS X Lion 10.7.5

    Premiere CS6 project manager reports  an error and will not manage my project. I have tried several times with both "Create New Trimmed Project" and " Collect Files and Copy to New Location". I have also tried to manage the project with options checked and unchecked (Include Preview Files, Include Audio Conform Files, Rename Media Files to Match Clip Names). Every time I try to manage the project, the process takes a few hours and then gives an error asking me to try again.
    The project is 90 minutes long and uses multiple footage formats:
    Sony FS100
    Sony NEX7
    Sony NEX-5n
    Canon C300
    Canon 5DmkII
    Panazonic HVX200
    My computer is:
    Processor  2 x 2.66 GHz 6-Core Intel Xeon
    Memory  12 GB 1333 MHz DDR3
    Graphics  ATI Radeon HD 5770 1024 MB
    Software  Mac OS X Lion 10.7.5 (11G63)
    Is this a bug, or are there specific things I can do to troubleshoot the problem? I have read of issues with AVCHD. I have confirmed all of my AVCHD folders are intact. Any other Ideas?
    THANKS!

    I have this same problem on a Mac with CS6. I was simple trying to archive a project using the "collect files" option. After five or six hours of troubleshooting (Thanks Adobe) I have narrowed it down to MXF clips that came over in a Final Cut EDL (Projects created in PP with MXF files seem to be fine).  In other words, as I was transitioning from FCP to Premiere Pro, I sent four or five projects out of FCP as an EDL, opened them in PP and continued to edit.  It seemed to work really well until I attempted to archive my media.  If there was a single raw MXF file in the timeline (Not the project panel for some reason) the Project Manager would give me the standard error:"An unknown error occurred during the Project Manager operation. Please save your project and retry the operation.".
    I have found two solutions that seem to work, both of which are a pain in the ax. 
    Option 1: Save the original project file only to an archive folder.  Then delete all the old timelines from the project, and save the project with a new name.  Create a new timeline and just drag all the raw video and audio into it. (Project Manager needs a timeline of some sort to archive) Then use the Project Manager to archive the modified project.  If I need the project in the future, I'll need to open the original PP project and relink all the media from the archived "media only" project folder. 
    Unbelievably, if you were to take this route and then re-edit the project in the future, it looks like you would run up against the same archiving issue AGAIN next time (At least using CS6). You'd have to go through all the steps above to archive it a second time. Depending on the size of your project, you may want to take option 2 and get the pain over with once-and-for-all.
    Option 2: If you only have a couple of MXF files in the timeline (in my case I had mostly renders from AE by the time I was done and THAT raw project had archived in AE just fine) you can export the raw MXF files to another format, then replace the media in your project panel.  Finally, use the Project Manager to archive the project like you should have been able to in the first place if Adobe had written the code well in the first place!

  • Devices showing not managed by Campus Manager

    Hi,
    We are using Campus Manager 5.2 with LMS 3.2. We have 100 devices and all 100 devices has been successfully discovered in Common services in all 100 devices are showing in DCR.
    When we check in RME we have found all 100 devices over there.
    But, in Campus Manager we got only 95 devices. out of 88 WS-C2960G-24TC-L 5 switches are not showing in Campus manager. we have added the same manully ( manually included & Ecluded all 5 devices in Campus manager) and start the data collection, but no result.
    After data collection  it is showing not managed by Campus Manager when we check ( Show all Included devices option).
    Kindly help us to rectify the  issue.

    Another suggestion is to upgrade to Campus 5.2.1.  There were bugs with 5.2 where Data Collection did not complete successfully.  After upgrade, reinitialize the ANI database with the command:
    NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=ani dmprefix=ANI

  • Collection album artwork not appearing in iTunes U PSM via feed

    Hi,
    I uploaded a new collection to iTunes U via public site manager in the same way I always do but for some reason the Collection image is not showing on the landing page or the collection page. It all works fine on my feedburner feed http://feeds.feedburner.com/PhotographySymposium2011 but not at http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=446661118
    I've tried deleting and restoring both the feedburner feed and the iTunes U collection page but to no avail. Any other suggestions would be most welcomed as the site now looks a little shabby.
    Cheers,
    Chess

    I'm not 100% sure about this but I think read somewhere that iTunes U images should be 300x300. Your image is 320x320 so perhaps try resizing the image.

  • The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this computer

    hi all,
    i am using Exchange server 2013.
    when i run the below code i got the following error.
    RunspaceConfiguration rsConfig = RunspaceConfiguration.Create();
    PSSnapInException snapInException = null;
    PSSnapInInfo info = rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.Admin", out snapInException);
    Runspace myRunSpace = RunspaceFactory.CreateRunspace(rsConfig);
    myRunSpace.Open();
    Pipeline pipeLine = myRunSpace.CreatePipeline();
    Command myCommand = new Command("Get-Mailbox -ResultSize Unlimited");
    pipeLine.Commands.Add(myCommand);
    Collection<PSObject> commandResults = pipeLine.Invoke();
    Error :
    The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this computer.
    when i run the command  get-pssnapin
    result : 
    Name : Microsoft.PowerShell.Core
    PSVersion : 3.0
    Description : This Windows PowerShell snap-in contains cmdlets used to manage components of Windows PowerShell
    when i run below  command 
    get-pssnapin -registered
    result is:
    PS C:\Users\Administrator> get-pssnapin -registered
    Name : EnginePSSnapin
    PSVersion : 2.0
    Description : Register cmdlets for Content Engine
    Name : HostControllerPSSnapIn
    PSVersion : 2.0
    Description : Register cmdlets for Host Controller
    Name : InteractionEnginePSSnapIn
    PSVersion : 2.0
    Description : Register cmdlets for InteractionEngine
    Name : JunoPSSnapin
    PSVersion : 2.0
    Description : Register cmdlets for Juno
    Name : Microsoft.Exchange.Management.PowerShell.E2010
    PSVersion : 1.0
    Description : Admin Tasks for the Exchange Server
    Name : Microsoft.Exchange.Management.PowerShell.Setup
    PSVersion : 1.0
    Description : Setup Tasks for the Exchange Server
    Name : Microsoft.Exchange.Management.PowerShell.SnapIn
    PSVersion : 1.0
    Description : Admin Tasks for the Exchange Server
    Name : Microsoft.Exchange.Management.Powershell.Support
    PSVersion : 1.0
    Description : Support Tasks for the Exchange Server
    Name : Microsoft.Forefront.Filtering.Management.PowerShell
    PSVersion : 2.0
    Description : Microsoft Forefront Filtering PowerShell Interface
    Name : SearchCorePSSnapIn
    PSVersion : 2.0
    Description : Register cmdlets for SearchCore
    Name : WDeploySnapin3.0
    PSVersion : 2.0
    Description : This is a PowerShell snap-in that contains cmdlets for managing Microsoft Web Deployment infrastructure
    All powershell commands is installed fine .
    but still I am getting error
    The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this computer
     

    Hi Olaf Reitz,
    After running the command still i am getting same error,
    The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.SnapIn' is not installed on this computer
    please see below my task and i achieved so far.
    i need to get list of Users in C# from Exchange Server. for that i  created new User [[email protected]]
    in Exchange Server , then i give Full Access Permissions to that User to Access all other Mail Boxes.
    By giving below command in PowerShell  I am getting all Users List . 
    Get-Mailbox -ResultSize Unlimited
    i need the same list In C# code. for that I
    tried with below code.
     Here i got only particular user [ [email protected]] details , instead of list.
    SecureString secureString = new SecureString();
    string myPassword = "EIS2014!@#"; string username = "[email protected]";
    foreach (char c in myPassword)
    secureString.AppendChar(c);
    PSCredential ExchangeCredentials = new PSCredential(username, secureString);
    WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://ExchangeServer.admin.com/powershell ), "http://schemas.microsoft.com/powershell/Microsoft.Exchange , ExchangeCredentials);
    Runspace runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(connectionInfo);
    runspace.Open();
    string newCommand = "Get-Mailbox | Get-MailboxPermission";
    Pipeline cmd = runspace.CreatePipeline(newCommand);
    Collection<PSObject> results = cmd.Invoke();
    runspace.Close();
    so , i changed the code below
    RunspaceConfiguration rsConfig = RunspaceConfiguration.Create();
    PSSnapInException snapInException = null;
    PSSnapInInfo info = rsConfig.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.SnapIn", out snapInException);
    Runspace myRunSpace = RunspaceFactory.CreateRunspace(rsConfig);
    myRunSpace.Open();
    Pipeline pipeLine = myRunSpace.CreatePipeline();
    Command myCommand = new Command("Get-Mailbox -ResultSize Unlimited");
    pipeLine.Commands.Add(myCommand);
    Collection<PSObject> commandResults = pipeLine.Invoke();
    i need Users list In C# , how can i achieve this ?
    i am getting list in PowerShell , but i need it in C# code. 
    Is Visual studio Compiled code  be 64 bit for running PowerShell scripts  ? 

  • Deleting transferred payroll result

    Hi Gurus,
    I run the bank transfers through DME. But now management want some changes from back date.
    so I am trying to delete payroll result. but error message displays, that result alredy transferred.
    I not posted result to FI, but done the DME-document generated for the same.
    So, anybody can tell me how to delete the payroll result which has been transferred by DME.
    Thanks in advance
    Sandeep

    Hi Sandeep,
    When you say back dated changes, do you mean you will be changing the master data which will affect employees pay? If this is the case, then I think you can make the changes and run the payroll again without having to delete the payroll results. The system will consider the payments that have already been transferred and will transfer the remaining amount.
    I am not sure why you decided to delete the results but if it is because of the scenario above, then I don't think you need to delete the results.
    Akshay.

  • Collection Editor Change not applies

    Now that I have finally got the Zen 7.0 Asset Management Program to
    install and run, I am having issues with the Collections Editor.
    Firstly, I have set it to only display 6 workstation fields on the popup
    user grid. This took a couple of hours to kick in. Before it just
    displayed all 4 tabs with all default fields.
    I then removed another field. Rebooted the asset-inventory server,
    rebooted my PC, manually forced a scan. However it still brings up 6
    fields instead of 5 and whatever I do I can't get rid of this extra field.
    Why is this?
    Thanks
    Lenny

    The system worked fine for a few months initially then suddenly stopped.
    The database somehow got deleted. Problems started when trying to
    re-install, but the initial installation issues I had were due a corrupt
    installation directory which I think I had copied from the CD onto the
    network. Re-installation from the CD went through fine. Before I did a
    clean re-install, everything was removed through Add/Remove Programs
    including Tomcat. ODBC entry removed through Data Sources (ODBC).
    Database and user ID's then deleted through Enterprise Server. Remains of
    Tally Systems entry in registry deleted as not removed completely through
    uninstalls. C:Program FilesNovellZENworksAsset Management directory
    deleted too, as not removed completely through uninstalls. Every further
    re-install ran through fine with no errors, it was just this Web Console
    Pasword issue I was stuck with for a while, which was simply resolved by
    typing in a shorter password with only alphabetical characters.
    The inventory now runs fine, with virtually all devices with the ZAM
    client installed scanning no probelms. Database being populated no
    probelms. It's only the collection editor that isn't running during the
    scheduled scans. Funnily enough, it did actually run as scheduled on one
    users PC out of over 100!
    I applied some changes to the collction editor grid last Friday am week
    and they took a couple of hours to kick in. Applied another change only
    to remove 1 field last Friday pm and the change has still not been applied
    this morning.
    Have created loads of reports and they run fine. Reporting side of things
    is great. Everything else seems OK. Just the collection editor.
    Thanks
    Lenny

  • Error on WWI server EHS_GLM_GENSERV: Results file not found on production

    Hi Experts,
    I need some help/advice. We have issues with our new EH&S WWI server. 
    This new setup working OK with Dev and QA (the WWI and GLM part is just fine), We did try to link this server to production then it gives below error.
    Only difference between  existing WWI QA and production server is that
    Existing QA and development WWI server installed at location C:\Program Files (x86)\EHS\WWI 
    And Same path maintain on new server C:\Program Files (x86)\EHS\WWI  
    But existing production WWI server installation path  is  different C:\Program Files\EHS\WWI
    So is there any customizing changes required from SAP side to avoid this error on production
    Can you please advise on this.
    ================================================================================
    Error on WWI server EHS_GLM_GENSERV: Results file not found
    Message no. C$830
    Diagnosis
    The results file of the generation was not found on the WWI server EHS_GLM_GENSERV.
    System Response
    Generation was not carried out.
    Procedure
    Advise your system administrator to check the WWI installation on the WWI server EHS_GLM_GENSERV.
    Check the Windows event log on the WWI generation server. The event log may contain other error messages.
    SAP Note 1058521 provides possible solutions for this error.
    ==================================================================================
    Log shows
    ============================================================================================================================================
    E000 Error: OLE Exception (-2146823114) from Word8_OpenDoc (docs.Open) by Microsoft Word: This file could not be found. (C:\Windows\...\r00000000000001422051.rtf) (HRESULT Code:5174)
    E000 Error opening document (Word8_OpenDoc: Documents.Open failed)
    ================================================================================================================================================

    Hello Gajanan,
    the path of the temporay workfolder can be configured in the IMG. Often this path is setup as the WWI server installed location but it is just a temporay workfolder which must exist on the WWI server. The path can be configured under:
    For ECC 6.0 Ehp 0-2 and lower
    Environment, Health and Safety -> Basic Data and Tools -> Basic Settings -> Specify Environment Parameters
    For ECC 6.0 Ehp 3-6
    Environment, Health and Safety -> Product Safety -> Global Label Management -> Make Settings for Basic Data
    For ECC 6.0 Ehp 7
    Environment, Health and Safety -> Global Label Management -> Set Basic Data and Tools for Global Label Management -> Make Settings for Basic Data

  • Cannot delete file error -43 file not found

    I cannot find and/or delete a file. The error is -43 file not found. It prevents me form making a backup with carbon copy.
    The file was in applications / illustrator / legal / strangecharacters.html (now in trash) and size 112kb.
    I am the admin of the machine on OSX 10.4.8
    I have read & write permissions
    Owner og the file is system.
    I cannot change the filename: Unexpected error code -43!
    I cannot change owner: Unexpected error code 213!
    I cannot drag the file out of the containing folder i.e. legal (i get grayed stop icon instead of the expected green plug icon at the mouse pointer).
    I can drag the legal folder around i.e. to the trash.
    I can not delete the folder and its contents with empty or secure emtpy trash.
    I tried:
    Repairing privileges. Nothing to repair, all is well.
    Rebuilding Locate Database but got 'cannot find the file code-43' while the folder was still in its original location: applications / illustrator /
    I logged out and back as admin and different user.
    I restarted.
    I tried to delete the file via Terminal with rm and with command below as suggested by apple technote. The result is not as desired:
    % chflags -R nouchg /Users/macuser/.Trash/Legal\ 22-06-59/Tie\314\202\314\201ng\ Vie\314\202\314\243t.html
    chflags: /Users/macuser/.Trash/Legal 22-06-59/Tiếng Việt.html: No such file or directory
    I started up from a different volume and tried the above.
    Anyone?

    as in my previous post, i found that part of my hard drive directory was corrupt. .ie. short version: there was a discrepancy between what the directory knew to be on the disk and what the finder showed me...
    so i did a startup in single mode (command-s) and type fsck -fy at the prompt to do a disk repair. took aout three runs and 20 minutes but after that i got the desired message: disk appears to be ok. i typed reboot which restarted the machine. i then ran disk utillity repair privileges.
    everything now is fine.
    note: working with bluetooth keyboard and mouse in single mode worked on my G5 (not sure though if this applies to all models), also fans make a lot of noise, like your machine is about to take off... dont worry)
    hope this helps
    G5dual   Mac OS X (10.4.5)  

Maybe you are looking for

  • How can I change my uk account to a different one?

    Hi,eveytime I try to update my application, for instance, Skype, and a message comes up saying i should change the UK store account if i wish to use the American one. I used to buy from the uk, with my credit card details that are now longer the same

  • How to invoke a plug-in menu item via Javascript?

    Hi, I installed a plug-in on my Acrobat Pro v11, it shows a plug-in menu, and there's one menu item in this plug-in menu dropdown. I can manually select that menu item and it does what it's designed to do. My question is, how do I use javascript to i

  • How to create a node with XML

    Hi everybody, How can I create an XML node? I try whith createnode, but don't work Thanks Carles

  • Error when installing 9i on Redhat 3.0 ES

    Hi all, I encounter this problem when installing 9i. Any idea how to solve it? Initializing Java Virtual Machine from /tmp/OraInstall2004-01-15_12-08-37PM/jre/bin/java. Please wait... /tmp/OraInstall2004-01-15_12-08-37PM/jre/bin/i386/native_threads/j

  • Journal Template Utility

    Guys, We are in the process of data conversion and need to post lot of journal entries. Given the HFM Journal interface, it will take a while to create these. I am looking for an excel template to create HFM journals which generate jlf files to speed