Invalid value for parameter error when the value is in the list of the parameters allowed

I have a few documents with many styles of paragraphs which have been organized in groups. I have a simple script that aims to decouple these styles and remove groups now empty.

Code:

#target indesign


var myDoc = app.activeDocument;


if (myDoc.paragraphStyleGroups.length > 0)
{
    myDoc.paragraphStyleGroups.everyItem().paragraphStyles.everyItem().move(LocationOptions.AT_END, myDoc);


    myDoc.paragraphStyleGroups.everyItem().remove();
}    


alert("Done")

The error I get is (my highlighting):

JavaScript error!

Error number: 30477

Error string: invalid value for the "reference" parameter of method "move". ParagraphStyle waited, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or application, but received Document.

As you can see, my Pickle is my value is of a type allowed. This only happens in certain documents, and there is nothing that distinguishes these documents from those in which it works of course.

One thing I noticed is that the error sometimes manifests a while to appear (a minute or two), but none of the styles have been moved once I click OK. So, I don't know if this is specific to a single style. I doubt it, just because other documents with the same style the value of work.

Anyone can shed light on what this error can mean in this context? I have certainly an activeDocument, so what could cause a Document to a Document?

Any help much appreciated!

Hello

It occurs when there are 2 or more models have the same name, probably.

Jarek

Tags: InDesign

Similar Questions

  • How can I configure drive extender? get an error when the computer shuts down say reinstall Extender player

    get an error when the computer shuts down say reinstall Extender player. ? What is it. Thank you

    Hi deener49,

    Please look at the thread below for a possible solution:

    http://answers.Microsoft.com/en-us/IE/Forum/ie7_6-windows_other/please-reinstall-Extender-Player-invalid-or/86692b09-9464-E011-8dfc-68b599b31bf5

  • Why do I get an unknown error when the AI document opening in Illustrator 5.5?

    Why do I get an unknown error when the AI document opening in Illustrator 5.5.? How open/fix documents?

    Did this happen after update to Yosemite? Sorry, but this could be a number of things and not only have a response

    • disable the automatic plugin font activator which is delivered with the police officer, you activate a corrupt police.
    • Clean your cache of police download nuke font it's free
    • reset your prefs AI
    • Delete your printer driver in the system preferences and recreate - Yes, there is a possibility that this can cause this
    • hold off on the update to El Captan for now, even if an update of the system has a chance to eliminate the problem, you're on CS5.5
  • Watch does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets eg elliptical etc. is appropriate. Also does not count calories for example 35 when the rest of the group is around 500

    Look does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets etc for example elliptical is appropriate and therefore do not count toward the daily goal. Also does not count calories for example 35 when the average of the others in the group is around 500.

    Hello

    When you use the application of the training session, choose the type of activity that best fits your business. For anything else - like weight - select the other category.

    During the follow-up of one year to the next helps:

    • Activity app will credit the ring of progress of exercise with one minute for every minute of the workout.
    • Active calories will be based on the data recorded by the heart rate sensor or a brisk walk, whichever is greater.

    Note, however, that the heart rate sensor is likely to give better results for the workouts that involve rhythmic (for example running) rather than the irregular movements.

    More information:

    Use of the workout on your Apple Watch - Apple Support

  • Need for a solution when the Boot Manager is missing.

    * Original title: startup

    need for a solution when the Boot Manager is missing

    Startup Repair,

    http://www.SevenForums.com/tutorials/681-startup-repair.html

  • ADF how can I run a parameter query when the page is displayed

    Hello
    I use web ADF 11 g
    I need to run a parameter query when the page is displayed
    Thank you

    protected DCIteratorBinding getItrtBindings (String binding) {}
    DCIteratorBinding outIterBinding is getBindingsForDCB () .findIteratorBinding (binding);.
    Return outIterBinding;
    }

    public DCBindingContainer getBindingsForDCB() {}
    If (this.bindings == null) {}
    FacesContext fc = FacesContext.getCurrentInstance ();
    This.Bindings = (DCBindingContainer) fc.getApplication (.evaluateExpressionGet(fc,"#{bindings}",DCBindingContainer.class));
    }
    return (DCBindingContainer) this.bindings;
    }

    BindingContainer links protected;

    public BindingContainer {} getBindings()

    Return this.bindings;
    }

    public void setBindings (links BindingContainer) {}
    This.Bindings = links;
    }

  • Z10 Z10 Blackberry BlackBerry takes a long time to start when the parameters "SIM card PIN lock" is activated

    Device: BlackBerry Z10
    Model: STL100-1
    Software version: 10.2.1.537
    OS version: 10.2.1.1925
    Carrier: Beeline (KZ)

    Z10 takes a long time to start when the parameters 'SIM card PIN lock' is running

    Tried to activate or disable this setting, the result:

    On - 5 min 13 sec (on-screen progress bar has reached 100% for ~ 1 minute, then waited for another 4 minutes in this State)

    Off - 1 min 17 sec

    What is the problem of the time difference?

    Good, thanks

  • Can I use an alias for parameter such as 'The value of parameter value VI' entry in the palette of models?

    I played with the example Veristand 2015 "Set model Parameters.vi.

    Is it possible to use a parameter alias as the input string to the function 'Set parameter 2D Array Values.vi'? I tried to do this, but get the following error:

    Error 307662 has occurred to define model Parameters.vi > NI_VS ModelManager ExecutionAPI.lvlib: NI VeriStand - Set parameter 2D Array Values.vi

    Possible reasons:

    NEITHER VeriStand: The node is not found in the system.
    =========================
    NOR VeriStand: Could not find expression of parameter

    I am convinced that the alias has been implemented in the system definition correctly.

    If not, what the point of having an alias for parameter? Model workspace calibration controls don't seem to be able to use them. Am I missing something?

    Thanks in advance for any help on this matter.

    The alias parameter access is just for reading.

    To write to the parameter, you ned to use control of Calibration of model or the model parameters Manager API. Alias as the parameter cannot be used to write.

  • "Waiting for in time (RT PXI target) real answer" error when the program is waiting interruptions

    Hello

    I developed an application to detect interruptions generated by an electronic card and act accordingly. The program was developed in labview, but she calls a dll; created with labwindows. The dll is scheduled to open the visa communication, select the events and install the interrupt handler and when an interruption is detected, it reads the value of the different registers of the map and returns to labview to view.

    The problem is that when the program expects an interruption, a prompt appears with the message "Waiting for real-time (RT PXI target) real answer" and the only option I have is to click on the button to disconnect the pxi or just wait. If I wait and I generate an interrupt, the prompt disappears and the application view data as it was planned.

    To wait for the following code the interruption has been programmed into the function:

    While (flag == 0)

    {

    Sleep (1000);

    }

    When an interruption occurs, the value of flag set to 1 and function continues without any problem. I am not really sure, but here is probably the problem and it probably isn't the best way to wait for a break because the sleep function suspends the thread to the configured time, but at least the load calculation in the PXI is between 0 and 1%. I was wondering if anyone knows how to wait for a break without 'lost' communication with PXI and if there is a better way to do it.

    Any response will be welcome and thank you for them,

    Jaime

    Hey there.

    You see problems with connectivity it's because the thread by DEFAULT CallLibrary nodes running in is the UI (UI) thread - UI thread manages also the important things like, say, communications (especially all the connections for the VI server) and other things that you could run all the time.  A CallLibraryNode is not, by default, intended to be used to execute code that runs for a long period of time.  If you want to do this, you assign the execution of the CallLibrary node to run in the context of a LabVIEW run-time engine thread (by selecting to make it work "in any thread") and not the UI thread.  This can be done through the properties of the CallLibraryNode.  By selecting "run in any thread" the call DLL will be generally in the context of the thread running in the run LabVIEW, which is usually what is meant when even.  The VI CallLibraryNode color change of Orange (UI) to blue (LabVIEW thread) so that you can quickly tell what context the appeal will be in.

    The reason the interface thread user is the default thread is because most often DLLS calls need to be serialized (because of functions is not not thread-safe) and so it serves to protect the integrity of the system.  However, if you know your threads are thread-safe, or you will use these threads for a while, it is best to program the CallLibraryNode to use a Thread of LabVIEW execution rather than the UI thread.

    For more information on this review on these pages:

    https://decibel.NI.com/content/docs/doc-9069

    http://zone.NI.com/reference/en-XX/help/371361J-01/lvexcodeconcepts/configuring_the_clf_node/

    DLL' happy ing.

    -Danny

  • 404 error when the lowest selection (column name) for the metadata 11 g dictionary


    Hi all

    I get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.

    When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404

    This is the product link

    http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.

    PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x

    If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.


    otn screen shot2.png

    We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.

    I just wanted to check to see if someone else has this problem.

    Thanks in advance!

    S. Clark

    I opened a SR and a bug has already been reported, and the solution is in the latest patch.

    Solution

    The fix for the Bug 17449036

    is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:

    Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets

    There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
    It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
    It is not for all platforms and all the patches together.

  • Error when the Redial / instant change of ParentVM

    Hello

    I got an error trying to recompose a single VM in a pool of office on VMWareView4. (error in-house composer '. ") Please contact your administrator"), nothing is shownin 'Events', except that 'internal error' in Module 'SVIActionBean '...

    Then I tried to change the snapshot of the parentvm, but then I got this error: "Invalid value for".

    CustomProperties [Use40API] parameter passed to View Composer

    function"just after clicking the Finish button...

    part of the composer log:

    2010-02-09 10:00:40, 371 | 3             | FATAL | Sim.ServiceCore.SimServiceApiImpl - error: failed to run the web service call: AddDeploymentGroup

    VMware.Sim.CommonLib.Exception.InvalidParameterException: Unable to set the value of the Use40API property to 0 if VC is 4.0 and VM hardware version 7 or higher.

    to VMware.Sim.ServiceCore.SimServiceApiVal.ValidateVcApiLevelSetting (VirtualMachine vm, VcConfigEntryDo vcEntryDo, dg DeploymentGroup)

    to VMware.Sim.ServiceCore.SimServiceApiImpl.AddDeploymentGroup(DeploymentGroup dg), name of the computer: SV04-FW-VC1, Timestamp: 09.02.2010 09:00:40, name of application domain: SviWebService.exe, Thread identity:, identity Windows: NT AUTHORITY\SYSTEM, OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2, reason: ValidationFailure, param: CustomProperties [Use40API]

    Someone at - it an idea?

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1018210

    This is what you need

  • ORA-01722 invalid number - report parameter error

    I have a report that will run successfully using the following simple select statement:--

    Select u.user_id, u.user_forename |' '|| u.user_surname user_name,
    FO.flight_number_in, fo.sta, fo.ata, fo.flight_number_out, fo.std, fo.atd
    users u, enemy flight_operations_employees, flight_operations fo
    where NVL (fo.sta, fo.std) between: P_Start and: P_End and
    FO.record_number = foe.record_number and
    u.user_id = foe.user_id
    order of u.user_surname

    Where P_Start and P_End are parameters that are passed from a form. I would like to add additional user for report option selections and added another parameter (P_inClause) where the user can select one or more items to choose from. The selected column is a number on the table. I then want to pass this as another parameter in the report provide a list of valid values using the IN instruction. The statement select update is: -.

    Select u.user_id, u.user_forename |' '|| u.user_surname user_name,
    FO.flight_number_in, fo.sta, fo.ata, fo.flight_number_out, fo.std, fo.atd
    users u, enemy flight_operations_employees, flight_operations fo
    where NVL (fo.sta, fo.std) between: P_Start and: P_End and
    FO.record_number = foe.record_number and
    u.user_id = foe.user_id and
    IN u.user_id: P_inClauseorder of u.user_surname

    u.user_id is a column in the table. The value of P_inClause is defined as a character setting in the report and is set (45,5,13,26) - for example.

    When I try to launch the report interactively happens with the ORA-01722: error number valid and points to the P_inClause parameter. If I type in the value directly in the select statement, it works very well.

    Do you have any ideas on how I can make this work?

    Concerning

    Published by: Buzzer on April 13, 2011 12:44

    You can search this forum for "in the clause', for example:
    Re: How to pass values to the place where conditon

  • AnyConnect Cert warning error when the xml file is changed.

    Hello world

    We have valid CA cert and it is installed successfully on the ASA ASA associate outside the interface.

    When you use ipsec IKeV2 with any connection pre deployment anyconnect when I change the anyconnect on ASA and user profile

    connects the first time, he gets the warning below

    Untrusted security VPN server certificate warning

    The options are

    Connect anyway cancel connection

    I click on connect anyway and anyconnect is connected.

    Checked that CN has the FQDN value.

    We do not use SSL certificate.

    When I connect the second time above cert error warning do not come.

    This warning cert error only comes when the changes are made to the anyconnect profile and the user connects again to the AAS.

    We do not use cert based authentic.

    Any ideas how I can fix this problem?

    Concerning

    MAhesh

    You can remove and reinstall the certificate authority. It will require that first delete you the configured services dependent thereon, binding to the interface etc..

    I am not convinced that would fix what you see, and it would not be my first choice.

    First, I would check things like why don't not the client approves the certificate (audit for example simply by accessing the interface of the ASA and see what your browser indicates that the question (both Firefox and Chrome are very useful in telling you of any problem with the certificate if you expand the details), what is the content of the profile and changes) the etc.

    You can open a TAC case?

  • Display a personal message for a report when the number of records returned.

    Our application has a page that displays the results of several SQL statements which are defined as reports. A report should in particular only to display a custom message when the County of invoices with status individual > 0 and not the exact time charged count himself. I got the layout to not display the meter, but I have to be able to display a personalized message that says ' problem invoices exist.» See report of bills, for more information please". I looked on the report attributes definition page but I can't find how to show this custom message. Any tips?

    Simply create a text on the page element. Make read only and put your message in the default value.
    Now put a condition on this point, to display only when required.

    Gus

  • ORA-02248: invalid option for ALTER SESSION during the connection of the customer

    Hello
    I'm a junior dba and I was hoping if someone could help me with a problem I have. I recently installed on the oracle 10g client on my windows machine. I am trying to remote connect to my database on a unix machine, but I get error trying to connect from the client below.

    ERROR:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-02248: invalid option for ALTER SESSION

    I did some searching on that and I think it might be something to do with the NLS_LANG setting maybe. I do not know if and to be honest, I'm a little lost on this.

    Any help would be greatly appreciated. See you soon.

    RGS,
    Rob

    Hello

    what the SQL you gave?

    Check the run-> regedit NLS_LANG parameter and change it according to env

Maybe you are looking for