Script error when trying to delete group items

Hello,
I have the following part of my javascript:
//loop to remove logos
for (i=0; i<logoKeys.length; i++) {
if (logosArray[logoKeys[i]] == false) changeLayer.groupItems.getByName(logoKeys[i]).remove();
And I get the following error when any of the values are set to false:
Line 64: if (logosArray[logoKeys[i]] == false) changeLayer.groupItems.getByName(logoKeys[i]).remove();
an Illustrator error occurred: 1128353364 ('CANT')
The script works fine when none of the values in logosArray are false, so it must be the part
changeLayer.groupItems.getByName(logoKeys[i]).remove();
that is giving me problems.
I declare the values like this:
var values = new Array();
..some declarations in here for first part of the array...
values[6]=false;
values[7]=true;
values[8]=false;
values[8]=false;
values[10]=false;
then later populate the logosArray:
for (i=0; i<logoKeys.length; i++) {
logosArray[logoKeys[i]] = values[offset];
offset++;
The interesting thing is if I change the population of logosArray to set all values implicitly to false, it also works fine:
ie.
for (i=0; i<logoKeys.length; i++) {
logosArray[logoKeys[i]] = false;
offset++;
So it doesn't seem to like taking the values for logosArray from my values[] array. Any idea why? Any help is greatly appreciated. Thanks.

Update:
When I implicitly set the values of logosArray to "false" it only works every OTHER time I run the script. Is there any kind of cache or local memory dump I have to do on illustrator between running scripts?

Similar Messages

  • What can be done to avoid getting the following error when trying to delete unused clips he operation could not be completed.  *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

    what can be done to avoid getting the following error when trying to delete unused clips in Imovie 09 "the operation could not be completed.  *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil"  I use to get these type of error messages when trying to delete unsused clips from a large event 60 minutes or longer, but now I get this message when trying to reduce a 4 minute event.
    Also, does anyone know if there is a limit to the total amount of space that can be taken up by Projects in Imovie 09
    Thanks for any help

    Zachy,
    It goes something like this...
    Put your new drive in the enclosure. Use Disk Utility to format it, etc. I'd give it a slightly different name than the original. Let's say you have Old Disk and New Disk as your drive names. Use Carbon Copy Cloner to copy Old Disk to New Disk. Now you should have an exact copy, which you can test by rebooting and holding down the Option key. Choose New Disk from the list and let it boot, make sure all is well.
    Shut down and physically swap the drives. Take Old Disk and put it in the enclosure. Now your system has a new disk with a lot more space and you can reformat your old disk and just use it for large files or whatever.

  • OVM 3: error when trying to delete a virtual machine

    Hi,
    I enclose below the error when trying to delete, using OVM MANAGER, a VM that has been wrongly created.
    Thanks for you help.
    Job Construction Phase
    begin()
    com.oracle.odof.exception.ObjectException: Caught during invoke method: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_2007E Find object name: (0}, class: interface com.oracle.ovm.mgr.api.virtual.VirtualMachine, returned null
    Wed Mar 21 14:42:20 CET 2012
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:151)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:751)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_2007E Find object name: (0}, class: interface com.oracle.ovm.mgr.api.virtual.VirtualMachine, returned null
    Wed Mar 21 14:42:20 CET 2012
    at com.oracle.ovm.mgr.api.manager.OvmManagerImpl.deleteObject(OvmManagerImpl.java:393)
    at com.oracle.ovm.mgr.api.manager.OvmManagerImpl.deleteObject(OvmManagerImpl.java:382)
    at com.oracle.ovm.mgr.api.system.FoundryDbImpl.deleteVirtualMachine(FoundryDbImpl.java:1302)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:247)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:207)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    ... 7 more
    Job Aborted from server, cleaning up client.

    HI,
    I had this - the recommended solution was to re-install the OVM manager.

  • Error message when trying to delete an item in a purchase order

    Hi,
    We are trying to delete an item in a PO, but when we select the item and click on the trash button (Delete), we get the following error message:
    «Evaluated receipt settlement open, deletion not possible
    Message no. ME867»
    There was a good receipt that was originally done for this PO. We cancelled it with the opposite posting (debit GR/IR account and credit the project account using t-code MIGO.) The account assignment category of this PO is «Project».
    Thanks for you help.
    Julien

    Hi,
    This means ERS is active in your system.
    What this means is that when you do a GRN, an ERS flag is activated in the PO header.  The ERS is then settled using the PO data in SRM.
    If you have not settled this (at least this is what is indicated from the message), then uncheck this flag in the PO header and then try and archive.
    Cheers.

  • Error when trying to view purchased items in app store

    My ipad has an error when trying to view my "purchased" items in app store, keeps "Loading...." for a while and then close the app.
    All the other options works well (featured, top charts, genius, updates...)
    I already turn off / on the ipad many times, same problem....

    I have the same problem with my iPhone 4s! Need  a solution from Apple!

  • Getting No checksum error when trying to delete uploaded file

    When trying to delete an uploaded file I get the following error :-
    No checksum was provided to show processing for a page that requires a checksum when one or more request, clear cache, or argument values are passed as parameters.
    I have a tabular report displaying the uploaded files with one of the columns showing a delete icon.
    When you select the delete icon it has Column Link details of the following
    Link Text : <img src="#APP_IMAGES#del.gif">
    Link Attribute : &APP_ID.
    Target: URL
    Url:
    javascript:confirmFileDelete(htmldb_delete_message,'f?p=&APP_ID.:11:&SESSION.:REMOVE_ID:&DEBUG.::P11_DELETE_ID:#FILE_ID#');
    The above was working till I turned on the Session State Protection.
    I believe I need to add a checksum to my url via the pl/sql package apex_util.prepare_url but can someone please show me how to do from my URL????
    Thanks in advance
    Keith

    Keith,
    Why not do the following then...
    I think confirmDeleteFile is a custom function correct? As the second parameter, just pass in the file ID. Then in the function use JavaScript to set the value of P11_DELETE_ID to the file ID. Then call doSubmit('REMOVE_ID');
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Error when trying to delete a vendor from SC

    Hi all,
    I am encountering a problem when trying to delete a vendor from a contract and assign preferred vendor.
    The messages are
    "Enter exactly one partner of type preferred vendor"
    "Partner data couldnot be determined".
    In BBP_PD, I find two entries in partner table with partner_fct = 39.
    I am also not able to delete one of this entry.
    Please suggest.
    Thanks
    Nandalal

    Hi Nandlal,
    Can you see the business partner nos correctly for the vendors you are trying to assign?
    Are these vendors assigned to pur org?
    DO you get all greens in BBP_BP_OM_INTEGRATE?
    BR
    Dinesh

  • HT2905 can someone please tell me why I do not get the delete from disk option when trying to delete duplicate items

    can someone please tell me why I do not get the delete from disk option when trying to delete duplicate items

    The content must be in the iTunes directory structure for that option to appear.

  • Script error when trying to edit Planning forms 11.1.2.1

    When I click Administration -> Manage -> Data Forms and Ad Hoc Grids, I'm getting an 'Object Required' script error.
    11.1.2.1, Windows, IE7.
    Any suggestions on where to start looking?

    Sorry I meant does it happen if you go directly to planning to see if it relates to workspace.
    Have you tried on a different machine, different IE version, does it happen if you try from the server.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Invalid session error when trying to transfer line items to shopping basket

    Hi All,
    I have a requirement in E-Commerce application.
    when a user searches for a product in B2B webshop in 'products' tab in left frame, search results table get displayed which will have a shopping basket icon for each line item.
    There we can transfer only a single item to shopping basket.
    if we want to transfer more than one item, again shopping basket icon has to be clicked..
    Now my requirement is that I have to add check boxes before each line item and a button below the results table ,so that when it is cliked, all the checked items should move to shopping basket in a shot.
    I added a button and called '/catalog/updateitems.do' (onclick of buttton) which is the action called when  'transferselection' button in 'productISA.jsp' is clicked.
    Now I am getting  an error saying 'Invalid session' when that button is clicked. I am not able to guess the reason.
    And also I want to ask experts, is this the correct way of proceeding for the requirement ?
    I am new to E-Commerce and any pointers in this regard will be of great help.
    Thanks,
    Anasuya.

    Hello Anasuya,
    Any reason why Catalog is not used but "Product" search list is used in the process? Catalog gives a more organized way of displaying and searching capabilities and makes the buying experience simple. Product search is a convenience tool for power users when you know the product.
    Without major UI changes - like de-framing, the use of Product search for "Add to Cart" of all "selected" products from search list will not excite the end users. Catalog is a powerful tool that is available to you. Unless you have a strong business reason, it is better to use the features the way they are intended. You need to go back to the drawing board with your customer.
    Anyway, I am assuming that you are doing a POC. I will give the same help I provided for your previous message on a similar topic. Re: Null poiner exception when trying to store extension data in existing BO.  We need to understand the basics of Servlet / JSP. Just adding any action (calling servlet) from any page (JSP) may not help. We must understand that the action (servlet) may be expecting many values in the request context which is available in the page (JSP) it was placed in. If that action is blindly placed in another page, it is highly unlikely that it will work, unless, you also took the pain to provide the servlet behind that action with the data it is expecting. So, adding the action from _'productsISA.jsp' _ in organizer-content-product-search1.jsp will have bad results. If you have done the required changes to the JSP, then let us know the changes you have done to really understand the issue.
    If you have not done so, here is what you can do for the POC. If you look at the JSP organizer-content-product-search1.jsp, it doesn't have any useful <INPUT tags that would pass on the Product data to the servlet. So
    Surround the product (tech key) with <Input tag. (Hint: see productISA.jsp)
    I am sure you already have this for the quantity1 and the new checkbox.
    Add a button to a custom action.
    inside the custom action read all the items and create a simple Java List of  BasketTransferItem. Use BasketTransferItemImpl to actually use the instance.
    Use methods setProductKey(String techKey), setQuantity(String quantity) and if you know the UoM use setUnit(String unit) to set the BasketTransferItemImpl object.
    Add each instance of BasketTransferItem to the java List.
    Now, place this list object in the request context under the attribute name baskettransferitemlist.
    On success forward to "addtodocument"
    Make proper changes to config.xml
    I hope this will work without much changes.
    (Note: This is not a cake served in a plate, but just a tested recipe for the cake. Please cook it nicely. If you need the cake immediately, then hire a Chef! - )
    Easwar Ram
    http://www.parxlns.com

  • Error when trying to delete a query from production

    Hi Experts,
    When i tried to delete a query from <b>production system</b> using RSZDELETE, I am getting an error message like " Query object 42BYOKUXDNZBZKMC2VHR5Z19H is blocked. Deletion has been cancelled."
    i went to E071 table using SE16,and found out the transports which contains this particular object.This transports have returned error code 8.
    Can anyone help me on deleting this object entry from these requests?
    <b>How will I delete this particular object entry from these transport requests?</b>
    Thanks alot
    Shobin

    Hi Venkat,
    Thanks alot for your quick reply.
    I tried that also. But even those transports are not successful.
    I would like to know <b>what is the standard procedure to delete objects from a transport request in production</b>.
    Already, I unlocked the transport request to Modifiable status.
    Thanks alot
    Shobin

  • S-1-1-0 Error when trying to delete folders on an NCP Server

    Hello:
    There are a couple of TIDS that point to this issue.
    The TID that references Windows 7 says "reported to Engineering"
    Problem:
    On trying to delete folders on an NCP Server (does not matter if you are admin or any other user) from a WIn 7 Client you get an error message about needing permission from S-1-1-0 in order to make changes to this folder.
    Seems to have been an issue with both XP and WIn 7 at one time but may have been resolved in XP.
    S-1-1-0 is the MS SID associated with the group Everyone which prior to XPSP2 included "anonymous" users.
    I am assuming that Win 7 follows the behaviour of post XP SP2 in not recognizing "anonymous" users as being members of Everyone thus the error message.
    Does anyone have the correct technical explanation for this problem. ?
    Renaming the folders allows you to delete them which makes me suspect that renaming alters a SID somewhere.

    Originally Posted by jmarton
    rdseepaul wrote:
    Thank you, jmarton, for your response.
    In our case we are using Client 2 SP2, so it looks like the "bugcat" came back.
    In fiddlying with it we have found that renaming a folder and all its sub folders that you may want to delete allows you to do so.
    > There are a couple of TIDS that point to this issue.
    > The TID that references Windows 7 says "reported to Engineering"
    > Problem:
    > On trying to delete folders on an NCP Server (does not matter if you
    > are admin or any other user) from a WIn 7 Client you get an error
    > message about needing permission from S-1-1-0 in order to make changes
    > to this folder.
    > Seems to have been an issue with both XP and WIn 7 at one time but may
    > have been resolved in XP.
    > S-1-1-0 is the MS SID associated with the group Everyone which prior
    > to XPSP2 included "anonymous" users.
    > I am assuming that Win 7 follows the behaviour of post XP SP2 in not
    > recognizing "anonymous" users as being members of Everyone thus the
    > error message.
    >
    > Does anyone have the correct technical explanation for this problem. ?
    There was a long standing problem with the Novell Client for Windows 7
    that wouldn't allow you to delete files which were read-only. An
    example would be some of the files located in a Windows roaming profile
    stored in a user's home directly on an OES2 server. The XP client
    would pop up a message asking if you wanted to do this, whereas on
    Windows 7 you could get the error about needing permission. Deleting
    from a command prompt worked ok.
    Fixes have gone into the latest Novell Client which should address
    this. Please make sure you are using Client 2 SP2.
    We're your Novell--again. re: focus
    Enhancement Requests: http://www.novell.com/rms

  • Script Error when trying to install Flash Player

    I am running Windows XP and used to have Flash Player installed.  Don't know what happened, but I have to install again.  The error I am getting coming during download:
    "Internet Explorer Script Error"
    and the error message says " 'ActionLaunchAdobe' is undefined"
    Then it has URL: http://127.0.0.1:4383/app/_js/adobe.js
    Any suggestions?
    Thanks.

    when i click in the download area on my mac in safari, i double click the downloaded flash, when i do this i receive the previous message, i'm not trying to open it with reader, i am just not sure how to avoid it.

  • Weird Error when trying to delete a flickr album

    http://bayimg.com/GAkNMAAcn
    I tried to delete a linked flickr album created through aperture but got this error. No reaction when I click either button, I forced a quit and then tried to delete it again but the same thing happened.
    What should I do to delete the album?

    That's not an error message that you've posted - that's a dialog box asking you to confirm your deletion request. (Potentially 'saving you from yourself'.)
    That aside, the issue is that you can't actually carry out the deletion. A stuck object like this is possibly a good reason to run some [Library First Aid|http://support.apple.com/kb/HT3805]...
    Or... Have you done any independent album management over at Flickr? If you have, that might have broken the connection between Flickr and Aperture leading to this issue.
    Or... Is your software (operating system and Aperture) fully patched?
    Hope something here helps.
    Regards,
    Gary

  • Powershell Error when trying to delete a single document

    Hello,
    I am trying to delete a single file named test in my library named testtesttest and I am not able to do so with Powershell. Could someone assist?
    $web = get-spweb "http://Webapp/sites/knowledgebase/test3/"
    $list = $web.lists["testtesttest"]
    $item = $list.item | ?{$_.name -eq "test"}
    $item.delete()

    Name in a library includes the FileExtension as well. Also, the script should be something like below:
    $spAssgn = Start-SPAssignment;
    $web = Get-SPWeb "<URL>" -AssignmentCollection $spAssgn;
    $list = $web.Lists["testtesttest"];
    $item = $list.Items|?{$_.Name -eq "test.docx"};
    #Check if $item exists and is not null
    if($item){
    $list.GetItemById($item.ID).Delete();
    Stop-SPAssignment $spAssgn;
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

Maybe you are looking for

  • Unable to read a resources file from my page

    Hi, I am trying to read a file from the project resources and I can't have access to the physical file. I have the following code in my page: javax.faces.context.ExternalContext ec = this.getExternalContext(); URL url = ec.getResource("/resources/dis

  • Attachments are not sent correctly?

    When I send an email with an attachment, the recipient does not receive the attachment; even though I use the "send windows friendly attachments". This happens very often, specially when the recipient is a PC and uses any of the following servers: ho

  • FLV takes half second to load in a SWF. Any way to eliminate the "white flash"?

    I understand its not a perfect world and computers need to load things etc. But is there any trick to having an FLV play right away eliminating that half second of white? The only thing I can think of is to export the first frame of the video as a jp

  • JDev 11g 111 with BPEL designer - cant connect to BPA Server

    I have just installed the latest 11g JDeveloper and added the BPEL designer. I notice that in the composite designer I can connect to or create a connection to the BPA server. I have BPA designer 10.1.3.3...which I used with JDeveloper 10.1.3.1. This

  • Time & Pitch Machine Basics

    I read the manual, but it doesn't say anything about this: When I import a song (.mp3 or .aif file) into Logic Express 8, I double click on the track and the Sampler Editor comes on in the bottom. Then I click on the Factory tab in order to access th