Invalid value for parameter error when value is in list of allowed parameters
I have some documents with a lot of paragraph styles that have been organized into groups. I have a simple script that is meant to ungroup these styles and delete the now-empty groups.
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 receive is (emphasis mine):
JavaScript Error!
Error Number: 30477
Error String: Invalid value for parameter 'reference' of method 'move'. Expected ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application, but received Document.
As you can see, my pickle is that my value is of an allowed type. This only happens in some documents, and there's nothing that obviously distinguishes those documents from the ones in which it works.
One thing I've noticed is that the error sometimes takes a while to appear (a minute or so), but none of the styles have been moved once I click OK. So, I don't know if it's specific to one style. I doubt it, only because other documents with the same style set work.
Can anyone shed any light on what this error could mean in this context? I definitely have an activeDocument, so what could cause a Document to not be a Document?
Any help much appreciated!
Hi,
It occurs when 2 or more styles have the same name, probably.
Jarek
Similar Messages
-
What value for parameter Workspace when run function RSAQ_DELETE_QUERY?
Run function RSAQ_DELETE_QUERY to delete a query, it requires to input a Workspace value, what's that? and which value we should input for this parameter Workspace?
ThanksHi Kevin,
I think you can just leave it space. In the popup, don't enter a value and press enter.
Siggi
PS: Don't forget, this is not a tested solution.
Message was edited by: Siegfried Szameitat -
Dear ALL,
i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
var myBookFileName ,myBookFileName_temp;
if ( myFolder != null )
var myFiles = [];
var myAllFilesList = myFolder.getFiles("*.indd");
for (var f = 0; f < myAllFilesList.length; f++)
var myFile = myAllFilesList[f];
myFiles.push(myFile);
if ( myFiles.length > 0 )
myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
myBookFileName_temp=myFolder.name ;
myBookFile = new File( myBookFileName );
myBook = app.books.add( myBookFile );
myBook.automaticPagination = false;
for ( i=0; i < myFiles.length; i++ )
myBook.bookContents.add( myFiles[i] );
var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
var bookComps = myBook.bookContents;
if (bookComps.length === 1)
bookComps = [bookComps];
var myPDFExportPreset = app.pdfExportPresets.item("AER6");
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
//myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
//myBook.exportFile(pdfFile, false, pdfPref, bookComps);
myBook.close(SaveOptions.yes);Change the below line:
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
to
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
Vandy -
ADF BC: calling SDO : Value for parameter 'findCriteria' cannot be null
We have created a service interface from an application module. That service interface contains views that have view criteria. We have included those criteria in our services.
From my consuming application, i added a data control from webservices by providing the WSDL of the service interface. So far so good...
When i drop the result of a function that is bound to the view criteria to my page, i have to enter four parameters:
fincCriteria of the Object type
areaCode of the String type, this is a parameter we added in the view criteria using a bind variable.
languageCode of the String type, also a custom parameter of the view criteria
findControl of the Object type
In my bindings i can provide the value of areaCode and languaeCode but i don't have a clue what to do with findCriteria and findControl. I left them empty and then i get followign message from the server:
<SOAPProvider><setParameters> Value for parameter 'findCriteria' cannot be null
<SOAPProvider><setParameters> Value for parameter 'findControl' cannot be null
<WebServiceConnectionMessages><debugExecuteFailure> Failed to execute a SAAJ interaction.Found some documentation on how to use the service interface from business components and as it appears you can create entity objects based upon the wsdl from the service interface.
Does it mean that i can only use the service interface that way and that when i have for example a dot net application, it can not use that service interface? -
Startup nomont problem- ORA-07446: sdnfy: bad value '' for paramete
what i am doing wrong?
SQL> startup nomount pfile=/oracle/product/9.2.0.6/dbs/initncersp.ora;
ORA-00444: background process "PMON" failed while starting
ORA-07446: sdnfy: bad value '' for parameter .
-rw-r--r-- 1 oracle dba 466 Jan 21 11:11 initncersp.ora
oracle:tulppwradb02:ncersp>pwd
/oracle/product/9.2.0.6/dbs
oracle:tulppwradb02:ncersp>vi initncersp.ora
"initncersp.ora" 127 lines, 3788 characters
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
# Archive
log_archive_dest='/archive_nmarket/ncersp'
log_archive_format='arch.ncersp.%s_%t.log'
log_archive_start=true
# Cache and I/O
db_block_size=8192
db_cache_size=25165824
db_file_multiblock_read_count=16
db_files = 400
# Cursors and Library Cache
open_cursors=500
# Database Identification
db_domain=""
db_name=ncersp
# Global Naming -- enforce that a dblink has same name as the db it connects to
global_names = TRUE
# Diagnostics and Statistics
background_dump_dest=/oracle/admin/ncersp/bdump
core_dump_dest=/oracle/admin/ncersp/cdump
user_dump_dest=/oracle/admin/ncersp/udump
timed_statistics=TRUE
# File Configuration
control_files=("/db01/oradata/ncersp/ncerspcontrol01.ctl","/db01/oradata/ncersp/ncerspcontrol02.ctl","/db01/oradata/ncer
sp/ncerspcontrol03.ctl")
# Instance Identification
instance_name=ncersp
# Job Queues
job_queue_processes=0 #zero during maintenance
# Optimizer
hash_join_enabled=TRUE
#query_rewrite_enabled=TRUE
#query_rewrite_integrity='trusted'
#star_transformation_enabled=FALSE
# Pools
java_pool_size=51200
large_pool_size=8388608
shared_pool_size=55343360
# Processes and Sessions
processes=100
# Redo Log and Recovery
fast_start_mttr_target=300
# Security and Auditing
remote_login_passwordfile='EXCLUSIVE'
audit_trail=DB
# Sort, Hash Joins, Bitmap Indexes
pga_aggregate_target=25165824
sort_area_size=1024000
# Need Varification for below paramaters by Primary DBA
# Miscellaneous
aq_tm_processes=1
compatible=9.2.0.0.0
log_buffer=32768
log_checkpoint_interval = 10000
log_checkpoints_to_alert=TRUE
max_dump_file_size='10240'
os_roles=FALSE
remote_os_roles=FALSE
os_authent_prefix=''
# System Managed Undo and Rollback Segments
undo_management=AUTO
undo_retention=10800
undo_tablespace=UNDOTBS1
#utl_file_dir='*'
# OLD DB PARAMETERS
#db_block_buffers=550
#resource_limit=true
#parallel_max_servers = 5 # SMALL
#global_names = TRUE
#job_queue_interval = 60Is this correct:
os_authent_prefix=''
I believe if you want to set this to null, you need to use double quotes, (as in os_authent_prefix="")
Ref: http://www.dba-oracle.com/security/local_os_authentication.htm
==============================================
To disable this feature, place the following lines in the initialization file, or change the lines to the following if they already exist and bounce the database.
os_authent_prefix = ""
remote_os_authent = FALSE -
Prompt Group Text value for parameter that has cascading prompts.
<p>Does anyone know how to get a Prompt Group Text value for parameter that has cascading prompts. C# sample would be great.</p>
Hi Sateeesh,
I delete main memory, but does not work. if I display prompt value in list box, it shows as text value, but in 'query prompt selector', it shows as key value. I am using SAP BO 4.0 -
My Iphone 3G has stopped playing video entirely. (will not take play videos taken on the iphone), unable to transfer to computer either. Says Parameter error when I try to copy or play file. very frustrating, not being able to access past videos taken at all. This has been going on for a while now
Have you done any of the basic troublshooting steps described in the User Guide (Appendix B) - Restart, Reset, Restore?
-
Hp pavilion dv6 6180 help me for this error when I am using my recovery disk
hp pavilion dv6 6180 help me for this error when I am using my recovery disk
The destination drive is not connectedHello Mohammadshamlou. I understand that you're having some issues using your Recovery Disc. It is giving you the error that the drive is not connected. Is this correct? How long have you had the notebook?
What issue originally led you to want to try a recovery?
The error seems to imply that it is not detecting the hard drive as this would be the most logical destination drive. So, I feel the best thing to try first is verify that the hard drive is in proper working order. Follow these steps and please post the result.
Please click the white star under my name to give me Kudos as a way to say "Thanks!"
Click the "Accept as Solution" button if I resolve your issue. -
Set a default value for a radio button populated with a List of value
Hi,
I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
<af:selectOneRadio value="#{bindings.Code.inputValue}"
label="#{bindings.Code.label}"
required="#{bindings.Code.hints.mandatory}"
shortDesc="#{bindings.Code.hints.tooltip}"
id="sor1" autoSubmit="true"
valuePassThru="true" layout="horizontal">
<f:selectItems value="#{bindings.Code.items}" id="si1"/>
</af:selectOneRadio>
I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
ThanksHi,
this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
Frank -
Invalid change to class error when deploying EJB
We have EJBs that were built by Webgain Visual Cafe and successfully deploy
to WLS 5.1. We then use the WLE EJB Deployer Tool to build WLE container
classes and deploy the same EJBs in WLE 5.1.
One EJB does not deploy in WLE. The ULOG error message is:
133929.EA-LAWSTUC!JavaServer.517: main: IJENGINE_CAT:150: ERROR: Invalid
change to class service.Request
133929.EA-LAWSTUC!JavaServer.517: main: EJB_CAT:29: ERROR: While deploying
jar ServiceEJB : com.beasys.weblogic.classloader.RedeploymentException:
ERROR: Invalid change to class service.Request
133929.EA-LAWSTUC!JavaServer.517: Finalizer: IJENGINE_CAT:152: INFO: Closing
jar C:\aj\ServiceEJB_WLE.jar
Does anyone know what can cause an "invalid change to class" error when
deploying to WLE 5.1? Especially since the EJB deploys successfully in
WLS.
Carl LawstuenReason: database keeps a reference of the class in JAVA$CLASS$MD5$TABLE table. This table keeps a refrence to all java classes loaded in database, and is present in each schema you deploy classes. That's the reason why if you change the application module name, you can load this classes. It instead keeps a reference if you use DROP JAVA CLASS command to drop a java class from de database. Use DROP JAVA command to clear the reference of the dropped classes when dropping it.
You can see this table as a class dictionary of the database, and you don't have to handle this records manually. -
Any solution for 4280 error when using Itunes to burn CDs?
Any solution for 4280 error when using Itunes to burn CDs?
http://support.apple.com/kb/TA38101?viewlocale=en_US
-
ORA-01841 Error when value for date col is NULL in .dat (using SQL Loader)
Hello Gurus,
I have some data in .dat file which needs to be loaded into oracle table. I am using SQL * Loader to do the job. Although "NULLIF col_name =BLANKS" works for character datatype, but when value for date col is NULL then I get ORA-01841 error. I have to make NULL for all rows withour value for date column
Early reply will be highly appreciated
FarooqHi,
May be this problem is not with the NULLIF. The value for the date column is not in proper date format.
create table:
create table kk (empno number, ename varchar2(20), deptno number, hiredate date)
Control file:
LOAD DATA
INFILE 'd:\kk\empdata.dat'
insert into TABLE kk ( empno position (1:2) integer external,
ename position(4:5) char NULLIF ename=BLANKS,
deptno position (7:8) integer external NULLIF deptno=BLANKS,
hiredate position (10:20) date NULLIF hiredate=BLANKS)
data file:
10 KK 01-jan-2005
20 10
SELECT * FROM KK;
EMPNO ENAME DEPTNO HIREDATE
10 KK 01-JAN-05
20 10
Verify the data file.
Hope it will help -
Cwb error when value set is 'special'
We have setup a DFF segment where the value set has a validation type of 'Special'. When entering transactions in CWB, it gives us an error
'The data that defines the flexfield on this field may be inconsistent. Please inform your system administrator that the value set XX_VALUSET has an incorrect validation type (U). '
I know that there is a restricition in displaying a DFF in OAF if the valueset has a validation type of 'Special'. We are not required to enter value in this segment so is there any workaround for this error not appear?
Thanks in advance.Hi Eddy,
The short text shown in St22 is "Templateinterpretation abgebrochen, Template nicht vorhanden."
Error analysis as shown in St22
"Sie können testweise den Service Parameter ~generateDynpro = 1 setzen,
dann wird für diesen Service die HTML-Seite ohne Template generiert und
Sie können zumindest sehen welches Dynpro vom Web AS gesendet wurde.
Bitte vergessen Sie nicht, den Parameter wieder zurück zu setzen." -
Where clause as expression value for parameter?
Is it possible to put a where clause in a expression so I could use as a parameter? I have 3 documents I was going to make as available values, but not sure how to put all of this in the expression.
Where clause:
where document = 'doc1'
and sentdate = (Select max(sentdate) from Communication where document = 'doc1')Hi Lezgettdrunk,
According to your description, you want to specify available values for a report parameter.
In Reporting Services, if we want to specify the available values for a report parameter in Report Parameter Properties, we should get those values from specified values or a dataset. When we select the “Specify values” option, we can give each label corresponding
value. When we select the “Get values from a query” option, we should select a dataset which contains documents values. In your scenario, you could create a dataset with where clause to get document values, then specify parameter available values use this
dataset.
Reference:
Lesson 2: Adding Parameters to Create a List of Available Values (SSRS)
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Thank you! This worked for me. -
Set default value for parameter fields
Good day!
Situation:
1. I have 2 parameter fields in reports (dateFrom and dateTo)
2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
3.I use for this source:
foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
string ParametrName = crParam.Name;
crParametr.Name = ParametrName;
crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
CrystalReportSource1.Report.Parameters.Add(crParametr);
4. And repurt run without request value parameter fields.
5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
How do this?
ThanksI believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
slv
Maybe you are looking for
-
Apparently I don't understand a feature correctly in Mac mail version 6.6
I am a little confused about what the difference is between a new mailbox and a new smart mailbox in mail. I wanted to create one folder that I can put all my mail into so that I can use my inbox as a sort of a "tickler file". I created a new "mailbo
-
My ipod nano will not sync with my new PC???
I have moved all my music to my itunes library on my new computer. All of my itunes purchased music appears in my library on new computer as well. The new computer is registered. Every time I plug my ipod into the computer, it will not sync. It says
-
Hi, iam developing object on modulepool. can u pls send examples objects on modulepools. thank
-
Retreaving contacts from icloud
I put OS5 on my iphone 3Gs and now all my contacts are showing on icloud but are not syncing on my phone, Does anyone know how to get them all back.
-
Emergency! Please help... Speaker button doesn't work!
This is the weirdest thing! Today I picked up a phone call and pushed on screen "speaker" I can hear the other party but they can't hear me. They can hear me no problem if I turn the speaker off. I tried this many times and every time is the same. I