Forum Discussion

Srivignesh_1217's avatar
Srivignesh_1217
Icon for Nimbostratus rankNimbostratus
Jun 06, 2014

set_active_partition not getting reset

I am trying to set the active partition to '[All]' and then once my read operations are done, I am trying to reset this to previously active partition. Sometimes, partition still remains in '[All]' and it gives error on write operations. Any idea why this happens?

 

2 Replies

  • How are you trying to set the partition back to the previous value? if you post your code we may be able to find something.

     

  • Java code: final String currentActivePartition = boxInterface.getManagementPartition().get_active_partition(); boxInterface.getManagementPartition().set_active_partition("[All]");

     

        /* Read operations */

    boxInterface.getManagementPartition().set_active_partition(currentActivePartition);