Error of trade rules but Essbase script work
I created a script to calc, which analyzes and works very well in Essbase. However, when I copy and paste same script in business rule, it gives the error.
If I remove this line IF ("Allocation of facilities"-> @CurrMbr (Period)-> "Department" > 1), it works fine.
= Calc script =.
DIFFICULTY ("HSP_InputValue", "Local", FrcstVer, predictions, & FrcstYear, @Relative(Entity,0), "No_Product", "No_Intercompany", "Facilities")
Fix (@relative(YearTotal,0))
Account)
IF ("Allocation of facilities"-> @CurrMbr (Period)-> "Department" > 1)
@CurrMbr (Period)-> 'Allocation of facilities' =-("Allocation of facilities"-> @CurrMbr (Period)-> "Department");
)
Endfix;
Endfix;
==============ERROR============
An error occurred while parsing the script.
Please check the script between the column in the row: 27: 153 and column of the row: 27: 153.
Found
token ';' - expected tokens:
, "/*STARTCOMPONENT:...to end".
It works when you remove the condition, the reason is you do not have an endif
Fix (@relative(YearTotal,0))
Account)
IF ("facility allowance"-> @CurrMbr-> "Department" (Period) > 1)
@CurrMbr (Period)-> 'Allocation of facilities' =-("facilities Award"-> @CurrMbr (Period)-> "Department");
)
Endfix;
Try to look your code clean, there are a lot of use unwanted @CURRMBR and other stuff that needs to be improved (not not picking on you, or in a way that I am)
Concerning
Celvin Kattookaran
Tags: Business Intelligence
Similar Questions
-
Script working but need help tweaking
Add-pssnapin VMware.VimAutomation.Core
# Set the user name and password
$cred = get-VICredentialStoreItem - e:\powershell\cred2 file
# Configuration connecting to VIServer
to connect-VIServer-Server $cred. Home - user $cred. Username-password $cred. Password# Set the Date time and name of the file
$date = get-date
$datefile = get-date - uformat ' %m-%d - %Y '
$filename = "E:\Powershell\Stage_patching_list_" + $datefile + ".csv".# Create list of servers to patch
$report = @)
Get-file DOSSIER0, Folder1, Folder2, Folder3. Get - VM | %{
$vm = $_ | Get-View
$row = "" | Select name, State, status, host, CPU_Allocated, RAM_Allocated, LastReboot, LastPatchApplied, restarted, questions
$row. Name = $_. Name
$row. State = $_. PowerState
$row. Status = $vm. Summary.OverallStatus
$row. Host = $_. VMHost
$row. CPU_Allocated = $_.numcpu
$row. RAM_Allocated = $_.memorymb
$LastBoot = [System.Management.ManagementDateTimeConverter]: ToDmtfDateTime ((get-WmiObject win32_operatingsystem-ComputerName $row..)) LastBootupTime name))
$row. LastReboot = $LastBoot
$LastPatch = get-WmiObject Win32_QuickFixEngineering - ComputerName $row. Name |? { $_. InstalledOn} | Sort installedon | Select - last # 1 | FT hotfixid, installedon
$row. LastPatchApplied = $LastPatch
$row. Restarted = "YES/NO".
$row. Questions = "YES/NO".
$report += $row
}# End of the Session on the server
disconnect-viserver-confirm: $false# Creat file separated from Coma
$report | Export-Csv $filename - NoType-Force# Create the e-mail message
$server = "mail.xata.com".
$port = 25
$to = 'somebody @somewhere.com'.
$from = Server@somewhere.com
$subject = "list of servers to patch of scene.
$body = "If you please see the attached file. TEXT TEXT TEXT TEXT.
$message = New-Object system.net.mail.MailMessage $from, $to, $subject, $body# Create SMTP client
$client = New-Object system.Net.Mail.SmtpClient $server, $port# Try to send the message
try {}
$message. IsBodyHTML = $true
$attachment = new-object Net.Mail.Attachment ($filename)
$message.attachments.add ($attachment)# Send message
$client. Send ($message)
}# Catch failed message
catch {}
"Exception caught in CreateTestMessage1():
}The script works when I run it manually (comment out the snap) but I see errors of authentication on the cli. Especially the "Get-WmiObject: access denied." (Exception from HRESULT: 0 x 80070005 (REFUSAL of E_ACCESS)) "error. However the CSV fills all information as if there was no error at all. We would like to have this race on a scheduler for our patch dates. I wonder if the mistakes that showup in powerCLI will prevent a scheduled task to complete? Also is there a way to fix those problems, we run the script as a user with local administrative privileges on the servers the script controls. I tried - authentication 6 - enableallprivaleges and a crowd of other google answers. None of them have corrected the problem. However its confusing that it always returns the correct information.
Is there a better way to do it? Is there a cleaner way to encode the script? Is last question possible to change the output of "Get-WmiObject Win32_QuickFixEngineering. - ComputerName $row Name |? { $_. InstalledOn} | Sort installedon | Select - last # 1 | "" hotfixid ft, installedon ' of '.
\\Server\root\cimv2:Win32_QuickFixEngineering.HotFixID="KB2624667",ServicePackInEffect="SP3"to something a bit more readable like "Latest Patch = KB2624667"? We don't need the service pack information.
I've tinkered with that many other scripts into a workable script that does what we want, I wonder if there is a way to clean. Thanks for looking and taking the time to answer.
I dug a little deeper, and it seems that the InstalledOn property is different on a Windows 2008 host compared to a Windows 2003 or Windows 2008 R2 host.
This led me to the following code.
# Create Server List for Patching $report = @() foreach($vm in Get-VM){ $row = "" | Select Name, State, Status, Host, CPU_Allocated, RAM_Allocated, LastReboot, LastPatchApplied, LastPatchDate, Rebooted, Issues $row.Name = $vm.Name $row.State = $vm.PowerState $row.Status = $vm.ExtensionData.Summary.OverallStatus $row.Host = $vm.VMHost $row.CPU_Allocated = $vm.numcpu $row.RAM_Allocated = $vm.memorymb $row.LastReboot = [System.Management.ManagementDateTimeConverter]::ToDateTime((Get-WmiObject win32_operatingsystem -cn $row.Name).lastbootuptime) $lastPatch = Get-WMIObject Win32_QuickFixEngineering -ComputerName $row.Name | where {($_.psBase.properties["InstalledOn"].Value).Length -gt 0} | Sort-Object -Property { if($vm.Guest.GuestId -eq "WinLonghornGuest"){ $_.InstalledOn }else{ [datetime]($_.psbase.Properties["InstalledOn"].Value) } } | Select -Last 1 $row.LastPatchApplied = $lastPatch.HotfixId if($vm.Guest.GuestId -eq "WinLonghornGuest"){ $row.LastPatchDate = $lastPatch.InstalledOn } else{ $row.LastPatchDate = $lastPatch.psbase.Properties["InstalledOn"].Value } $row.Rebooted = "YES/NO" $row.Issues = "YES/NO" $report += $row} $report # End the Session on the Server
If it is a Windows 2008 Server, the date is there in clear text for Windows 2003 and Windows 2008 R2, to use the trick of PSBase.
On the Sort-Object, I use a codeblock to set the sort value, and in there, I can test what OS we are dealing with.
In the same way I fill the $row. Property of LastPatchDate.
-
My script works with a #1009 error?
Hi all
I spent so much time trying to understand and I do not understand, I have this script where the error #1009 is displayed continually, the stange thing: my script works correctly and I want to get quotes off the coast of this error. When my script is 'correct', which means, no more errors appear, the script does not work with the external swf. The target of the red error 'movie01' in the script, but this reference was already used successfully, why not this one?
This script works but with the error #1009:
var movie02:Loader = new Loader();
movie02. Load (new URLRequest("test/seq.swf"));
addChild (movie02);
movie01.addEventListener (Event.ENTER_FRAME, seq01);
function seq01(main:Event):void {}
var movie01:MovieClip = main.target.content;
If {(this.currentFrame is 15)
movie01. Play();
}
If (movie01.currentFrame == 150) {}
This.Stop ();
}
}
Thank you
Alain
:
var movie01:Loader = new Loader();
movie01.contentLoaderInfo.addEventListener (Event.Complete, LoadComplete);
movie01. Load (new URLRequest("test/seq.swf"));
addChild (movie01);movie01.contentLoaderInfo.addEventListener (Event.Complete, LoadComplete);
function loadcomplete(e:Event) {}
movie01.addEventListener (Event.ENTER_FRAME, seq01);
}var exectedPreviously:Boolean
function seq01(main:Event):void {}
var mc:MovieClip = MovieClip (main.target.content);
If (this.currentFrame == 15 &! executedPreviously) {}executedPreviously = true;
MC. Play();
}
If {(mc.currentFrame is 150)
This.Stop ();
}
} -
Error message: Picture.library.ms no longer works. Tried to remove the library as suggested but does not ask for confirmation delete a few deletions without asking for confirmation. Also don't undersatnd how then restore you the other context using the trash of the library? Don't understand that your instructions please the ventilation in portions of beginner. Is - this recurring issue is sought in microsoft?
Hello
You solved the problem with the photo library?
You have been informed that the question about the image library is fixed in the next thread.
If you are now facing problems with videos from YouTube on Internet Explorer 11, try the steps in the above thread link and check.
Let us know if you need help with Windows related issues. We will be happy to help you.
-
I created a Javascript script that adds a watermark on the document action "paper print". This works in Acrobat Pro, but does not work in the drive. I am a novice using Javascript, so what am I doing wrong?
Cannot use either addWatermarkFromFile or addWatermarkFromText methods of document with player as shown in the documentation. You can hide/display the form fields and the existing layers, so consider this approach.
-
Have you had to face the problem, that there is no an error but just can't open Lightroom app on your computer? I have a photoshop, but not Lightroom work and plan creative cloud... Almost all tried, nothing does not help and may not always know where the problem...
Windows. I just did a cover on my pc and reinstalled cloud once again, now everything seems ifne, thank you
-
After you have installed Windows 10, I can no longer create a PDF of my program Pagemaker 7.0.1. Purchased Acrobat DC, but still no joy. Apparently, Acrobat PDF maker does not recognize the .pmd extension. I get errors and various suggestions, but nothing works. WHAT?
Print to Adobe PDF? Why the * & ^ * & ^ V_ $ didn't pay a lot more money to Adobe for an Adobe program that does not work with another Adobe program? Oh, right--they want to move me up (buy) the new Adobe graphics programs. I'll keep sweating this point and will no doubt wind up forking over a thousand$ $$ or so for 'new' stuff I don't need.
-
should we empty loading data ODI and move to "Load rules" of Essbase?
Hello
We use to load data in planning 11.1.1.3's ODI Essbase cubes.
Should move us data loading ODI on "Load rules" of Essbase?
We see no advantage to ODI over aid maxl Essbase calls script loading rules and calc scripts.
One thing he has the advantage on Essbase, is that it can refresh planning. Can you load supporting details and the text in the cell?You have data from multiple sources, say some data sets are file bases, some are stored in warehouses or books of accounts, you want to collect these data, transform and apply the mapping, to load that data into essbase, you can add Automation around her then that is an example to use ODI to load data into essbase There are many others.
Yes you can do it with maxl, but must eventually bring about more strive to add automation, mappings, error handling etc. as you would if you have walked the path of ODI.
I do not say that you must use it, if you don't see any profit is meaningless.See you soon
John
http://John-Goodwin.blogspot.com/ -
UCCX scripts, working with variables (variables to type?)
Hello
I've got script of unilingual IVR which distributes calls in two separate CSQ (services and logistics), based on the entry of the appellant in the IVR menu. Each QSC contains several agents. There is flow under script that checks if a current day is holiday (similar to the example of Cisco HolidayCheck.aef)
Now, I have to extend this script and make it multilingual. Many aspects in the script as dates.xml to check, name of the CSQ (each lang have services and logistics), lang for IVR guests are exactly the same files wav localized to specific national environment in different directories called.
My idea is to parse the input (IVR or by number called country-specific) and on this basis set a variable named input_lang (string) with the values 'en', 'sk' or other). Then set other variables for good localization based on this variable input_lang.
I have customization variables:
input_lang (String) = «»
holiday_datelist (Document) = [DOC]
ivr_lang (language) = [L]
CSQ_service (String) = «»
CSQ_logistics (String) = «»
When I set input_lang variable, for example "sk" (Slovak), I have other variables defined as:
Set holiday_datelist = "DOC [dates -" + input_lang + ".xml]".
Set ivr_lang = 'L []' + input_lang + '] '.
Set CSQ_service = '-CSQ_servis' + input_lang
Set CSQ_logistics = '-CSQ_logistics' + input_lang
But this result in this strange values (not so weird, because they are all 'String-like')
holiday_datelist = "DOC [dates - sk.xml]" instead of DOC [dates - sk.xml]
ivr_lang = "L [sk]" instead of L [sk]
etc... but the names of CSQs are also strings and the results are OK
The script stops and throws a value unidentified exception / error variable.
Y at - there no way how to fix string variable as lang/document as a representation? I think I have to get rid of these quotes in the beginning and the end of the value. I want only to concatenate the values of strings void variables based on each lang.
Or me as a result of the wrong way and everything to do in a different way?
Thank you very much for all the advice!
(Improved UCCX, version 5.0.2)
When I set input_lang variable, for example "sk" (Slovak), I have other variables defined as:
Set holiday_datelist = "DOC [dates -" + input_lang + ".xml]".
Set ivr_lang = 'L []' + input_lang + '] '.
Set CSQ_service = '-CSQ_servis' + input_lang
Set CSQ_logistics = '-CSQ_logistics' + input_lang
I think that you are up to something and just need to make some minor changes.
1. instead of assign the directory "dates - sk.xml" to the document variable, assign it to a string that points to the file name and the relevant path. Then initialize the document variable by using the step to "create a Document file. This should help you over any bumps with typcasting.
2. for the language, it would be logical to use a statement 'switch' as follows:
Channel switch (input_lang)
Connection: Slovak
Set ivr_lang = L [sk]
Connection: en - uk
Set ivr_lang = L [en - uk]
...
Maybe it's not as effective as the road you have decided to take this point but it would work. The only time where I messed up with the support of several languages, I used the trigger JTAPI. It will work for you, if you have walked the road of the language based on the "called" number (as you suggest one way possible, you would take). In this way, you can have several triggers pointing to the same application and the variable of language may already be set on the trigger. You still wish to create/edit your variables. You'd probably want to focus on the expression editor methods. toString() and. getLanguage().
HTH.
Kind regards
Bill
-
power cli script works does not in 5.5-was prior work
I am trying to perform actions on the virtual machines that reside in a csv file. Here's what I have:
to connect-viserver $vcenter
foreach ()$_.name in ("Import-Csv " "$ENV: USERPROFILE\Desktop\vm_list.csv ' -UseCulture)) { }
$VM = Get-VM $_. name
Get-VM $VM | Where {$_. PowerState -eq "PoweredOn"} |
Select Name, Host, NumCpu, MemoryMB,
@{N='Cpu.UsageMhz.Average';} E={[Math]::Round((($_ | Get-Stat -Stat cpu.usagemhz.average -Start Get-Date(). () AddHours (-24) -IntervalMins 5 -MaxSamples (12) | Measure-object Value -Average). Average) , 2 )}},
@{N='Mem.Usage.Average';} E={[Math]::Round((($_ | Get-Stat -Stat mem.usage.average -Start Get-Date(). () AddHours (-24) -IntervalMins 5 -MaxSamples (12) | Measure-object Value -Average). Average) , 2 )}} `
| Export-Csv c:\Temp\stats.csv
}
NOTE - If I get rid of the thing whole 'foreach' script works fine Get - VM and down by removing the $VM variable)
But I want to get the data of perf for VMs on my list, not only of each of them via the GET - VM against the whole vcEnter.
Any ideas why it's a failure? in 5.0, I ran a script that mobilized the "foreach" exactly as you see above and it worked great. Now we are at 5.5 is more does not work.
Output showing the errors that have baffled me:
C:\Users\kwg\Desktop\test2.ps1:8 tank: 12
+ foreach ($_.name in (Import-Csv "$ENV:USERPROFILE\Desktop\vm_ip.csv")
-UseCulture...
+ ~
Missing 'in' after variable in the foreach loop.
C:\Users\kwg\Desktop\test2.ps1:8 tank: 83
+ ... "- UseCulture)) {}".
+ ~
Unexpected token ')' in expression or statement.
+ CategoryInfo: ParserError: (:)) [], ParseException Exception)
+ FullyQualifiedErrorId: MissingInInForeach
Not sure why you use the pipeline variable ($_____) in the foreach loop?
There is no need to use a ForEach loop actually, you can pass several names for the Name parameter on the Get - VM cmdlet.
And then you use the pipeline at its maximum.
I would like
to connect-viserver $vcenter
Get-VM-name (Import-Csv "$ENV:USERPROFILE\Desktop\vm_list.csv" - UseCulture | % {$_.}) Name}) |
Where {$_.} PowerState - eq "Receptor"} |
Select Name, host, NumCpu, MemoryMB,
@{N = "Cpu.UsageMhz.Average"; E = {[Math]: round ((($_ |))} Get-Stat - Stat cpu.usagemhz.average - Start (Get-Date). AddHours(-24)-IntervalMins 5 - MaxSamples (12) | Measure - Object - average value). Average), 2)}},
@{N = "Mem.Usage.Average"; E = {[Math]: round ((($_ |))} Get-Stat - Stat mem.usage.average - Start (Get-Date). AddHours(-24)-IntervalMins 5 - MaxSamples (12) | Measure - Object - average value). Average), 2)}} |
Export-Csv c:\Temp\stats.csv
-
Competitor Manager starts but does not work
Hi all
Platform: AIX 5.3
Oracle EBS 11.5.9
9i DB
I have sought a response on this forum and blogs, but he could not understand how to solve this problem.Level APPS, made a backup of tar and restored on another machine (everything is same) but on the new concurrent machine manager does not work but everything else works well.
When you start the application startup script:
applprod@cloapp:/oraapp/prodcomn/Admin/scripts/PROD_cloapp > applications/applications <
You run adcmctl.sh version 115.19
Responsible for simultaneous departure PROD...
Departure PROD_0323@PROD internal competitor Manager
Default printer is noprint
adcmctl.sh: exit with status 0
applprod@cloapp:/oraapp/prodcomn/Admin/scripts/PROD_cloapp >
If I click on the internal log manager, I get the following message:
There is no log file for the process xxxxx. The concurrent Manager may have encountered an error attempting to create the log file
Database alert log watch
Commissioning ORACLE RDBMS Version: 9.2.0.3.0.
Parameters of the system with default values:
_trace_files_public = TRUE
process = 800
sessions = 885
TIMED_STATISTICS = TRUE
shared_pool_size = 301989888
SHARED_POOL_RESERVED_SIZE = 30000000
_shared_pool_reserved_min_alloc = 4100
JAVA_POOL_SIZE = 67108864
enqueue_resources = 32000
nls_language = American
nls_territory = America
nls_sort = binary
NLS_DATE_FORMAT = DD-MON-RR
nls_numeric_characters =.,.
nls_comp = binary
nls_length_semantics = BYTE
control_files = oradata/proddata/cntrl01.dbf, oradata2/data/cntrl02.dbf, /oradata/proddata/cntrl03.dbf
db_block_checksum = TRUE
DB_BLOCK_SIZE = 8192
db_cache_size = 167772160
compatible = 9.2.0
log_buffer = 10485760
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
DB_FILES = 512
db_file_multiblock_read_count = 8
log_checkpoints_to_alert = TRUE
dml_locks = 10000
row_locking = always
UNDO_MANAGEMENT = AUTO
undo_tablespace = APPS_UNDOTS1
undo_suppress_errors = FALSE
UNDO_RETENTION = 1800
db_block_checking = FALSE
max_enabled_roles = 100
O7_DICTIONARY_ACCESSIBILITY = TRUE
session_cached_cursors = 200
UTL_FILE_DIR = / usr/tmp, /oratech/proddb/9.2.0/appsutil/outbound/PROD_clodb
JOB_QUEUE_PROCESSES = 2
_system_trig_enabled = TRUE
CURSOR_SHARING = TRUE
parallel_min_servers = 0
PARALLEL_MAX_SERVERS = 8
background_dump_dest = /oratech/proddb/9.2.0/admin/PROD_clodb/bdump
user_dump_dest = /oratech/proddb/9.2.0/admin/PROD_clodb/udump
max_dump_file_size = 20480
core_dump_dest = /oratech/proddb/9.2.0/admin/PROD_clodb/cdump
optimizer_features_enable = 9.2.0
db_name = PROD
open_cursors = 600
iFile = /oratech/proddb/9.2.0/dbs/PROD_clodb_ifile.ora
SQL_Trace = FALSE
_sort_elimination_cost_ratio = 5
_b_tree_bitmap_plans = FALSE
_fast_full_scan_enabled = FALSE
optimizer_max_permutations = 2000
query_rewrite_enabled = true
_index_join_enabled = FALSE
_sqlexec_progression_cost = 2147483647
_like_with_bind_as_equality = TRUE
pga_aggregate_target = 1073741824
workarea_size_policy = AUTO
aq_tm_processes = 1
olap_page_pool_size = 4194304
PMON started with pid = 2
DBW0 started with pid = 3
LGWR started with pid = 4
CKPT started with pid = 5
SMON started with pid = 6
RECCE has started with pid = 7
CJQ0 started with pid = 8
QMN0 started with pid = 9
Sun Mar 23 18:10:09 2014
ALTER DATABASE MOUNT
Sun Mar 23 18:10:13 2014
Mount of redo thread 1, with mount id 254776577.
Sun Mar 23 18:10:13 2014
Database mounted in exclusive Mode.
Completed: ALTER DATABASE MOUNT
Sun Mar 23 18:10:13 2014
ALTER DATABASE OPEN
Sun Mar 23 18:10:15 2014
Thread 1 is open to the sequence of journal 9194
Currently Journal # 2 seq # 9194 mem # 0: /oradata/proddata/log02a.dbf
Currently Journal # 2 seq # 9194 mem # 1: /orada
Where should I start in order to solve this problem.
I don't know why are you fndsm missing entry tns. AutoConfig should have created the tnsnames.ora with this entry.
Assuming that the architecture you have is
clodb - only db level
cloapp - applications (cm, forms, apache)
1. check if you have the correct entry for FNDSM_CLOAPP_PROD tns in tnsnames.ora on the application tier
2. make sure that apps listener is running
If it does not, the cleaner way than it would be to:
1. stop all application services
2. run exec fnd_conc_clone.setup_clean (); only applications
3. run autoconfig on dbtier
4. run autoconfig on level apps
Check fnd_nodes, you should have entries for the nodes and the check tnsnames.ora, should have entered correct tns.
5 start services.
Thank you
Shakti
-
Error detected while trying to perform the work
Hello world
One of my users tried to run a rule in Hyperion Planning 11.1.1.3 and an error occurred: error detected while trying to perform the work
When I went to Essbase, I found that when I launched the rule an error pops up:
ERROR - 1006059 - invalid block header: illegal block type - please use the IBH Locate/Fix utilities to find or fix the problem of IBH.
I read it could be a problem with corrupt blocks. I'm not familiar with MXL and I read that there are commands that I could run. Someody could give me a help?
Kind regards
IBH errors when there is an incompatibility between the .pag file and the index file (.ind). In other words the file pag and .ind file are not synchronized.
run it separately in maxl
change the HYPCOLAN database. Invalid_block_headers repair COSTS
Still the error ibh, then reload metadata and data backups and try to re start batch Scheduler.
After re - run batch Scheduler the same problem persists, then
1 save the relational tables of demand in 11.1.1.3
2 backup essbase objects (rul, otl, CSC, rep)
Planning enforcement
(A) create a new planning application
(B) restore all the 11.1.1.3 relational tables in the newly created application application
(C) to restart the Services
(d) copies of objects like .csc, rul, .rep in db (excluding the .otl)
(e) re - import the data into db
(f) to run batch Scheduler
Or you can make use of LCM method
Try also to optimize your planning applications
Kind regards
Sreekumar heraud
-
Access error of data while running the script in the script fdm workbench Editor
Hello Experts,
I get the error when I run the script in the script of fdqm established client.this editor is the error
-2147467259 data access error and he navigates the error on line 30 on this script «Set rsAppend = DW.» DataAccess.farsTable (strWorkTableName).
Please return me asap where I should charge peoplesoft data to one of my database of planning through fdm.
Thanks in advance...
You will need to build a script for integration that is an import Script that allows you to import data from SQL in FDM.
When you create your import format, you will need to configure it with the file Type = Script and then assign the script of integration as an Expression. Assign your import format to the location that you use to import data.
Then you can test it by going to the import stage and clicking the import button. FDM will run the integration script and data import by running the SQL query that you have defined.
To the contrary, "Data Pump" import Scripts are used as import expressions in the import formats
You can run a script to integrate the customer that this script requires input parameters that are passed only when then FDM import step is executed. If you want to see the raised error open the errorlog FDM. You will only be able to run this Workbench script when you want to debug data is being extracted, but in this case, you will need to comment code that inserts the data in the table. Don't forget that the work table is a temporary table that is created when you click on the import button and if you run Workbench this table does not exist
-
Why won't this script work?
Well so yesterday I posted a question I had with join InDesign files, I thought that I had found a solution and I was wrong. Nothing is as humbling as script... anyway the gist of what I'm trying to do is trying to combine a lot of InDesign files in a single large document. The problem I encounter is that InDesign crashes. What is strange to me is that a single iteration of this script works oddly, however when I try to do with multiple InDesign files * the bed.
Any help on the figure, it would be much appreciated.
System: WIndows 7
Indy Version: CS5
(1) selecting a folder.
(2) get the files.
(3) open one at a time, and duplicate pages in another document. (Which I call OCD because I basically that is what I want to do with the giant document.)
(4) close the source file without saving the changes. Pages should not change, but better safe than sorry.
(5) close the (TOC) destination file and save it with the new pages to this subject.
inDesign #target
File = Folder.selectDialog ();
files = folder.getFiles ("*.") INDD");
for (var i = 0; i < files.length; i ++) {}
source_doc = app.open (files [i]);
destination_doc = app.open (file ("c: / / users//user//desktop//TOC.indd"))
REST();
}
function rest() {}
sourcePages = source_doc.pages.itemByRange (0, -1);
sourcePages.duplicate (LocationOptions.AFTER, destination_doc.pages.item(-1));
source_doc. Close (SaveOptions.no);
destination_doc. Close (SaveOptions.YES, "c://users//user//desktop//TOC.indd");
}
Couple of thoughts: the code is kind of a mess. I don't understand why you are opening and closing of your doc of destination with each iteration, or why you have stuff separated in another function, or why you have not any vars. As a general rule, I try to work on spreads rather than pages where possible. I avoid also itemByRange() because of the strange plural object that it returns. Here's one (in my opinion, in any case) cleaned script:
var folder = Folder.selectDialog(), files = folder.getFiles("*.INDD"), destination_doc = app.open(new File("c://users//user//desktop//TOC.indd")), source_doc, i, j; for (i = 0; i < files.length; i++) { source_doc = app.open(files[i]); for (j = 0; j < source_doc.spreads.length; j++) { source_doc.spreads[j].duplicate(LocationOptions.AT_END, destination_doc); } source_doc.close(SaveOptions.NO); } destination_doc.close(SaveOptions.YES);
See if you have better luck with it.
Jeff
-
I got error #2044 while I run my script
I have two .as files and a film 'adp.flv '.
PlayVideoAbstract.as and PlayAbstract.as
I have flash document with the class name is "PlayVideo". I'll run the movie in the method of the abstract object, but while I run the script, film works, but shows the error message #2044. How can I remove this error. I'm using action script 3
PlayAbstract.as
package {}
import flash.display.Sprite;
import flash.net.NetConnection;
to import flash.net.NetStream;
import flash.media.Video;
SerializableAttribute public class PlayAbstract extends Sprite {}
Instance of the PlayAbstract class
private var conn: NetConnection;
private var stream: NetStream;
private var vid:Video;
private var flick:String = "adp.flv";
Construction
public void PlayAbstract()
{
var regarderit = new PlayVideoAbstract(conn,stream,vid,flick,100,50);
addChild (playIt);
}
}
}PlayVideoAbstract.as
package {}
The library import
Flash.netnetconnect
import flash.net.NetConnection;
Flash.net.NetStream
to import flash.net.NetStream;
Flash.Media.Video
import flash.media.Video;
Fash.Display.Sprit
import flash.display.Sprite;Make the grade
SerializableAttribute public class PlayVideoAbstract extends Sprite {}
Manufacturing construction
public void PlayVideoAbstract (nc:NetConnection, ns:NetStream, vid:Video, flick: String, xpos:uint, ypos:uint) {}
NET connection
NC = new NetConnection();
NC. Connect (null);NS = new NetStream (nc);
vid = new Video();
vid.attachNetStream (ns);NS. Play (Flick);
VID.x = XPos;
VID.y = YPos;
addChild (vid);}
End of the constructor
}
}Hello:
your code has a lot of bug, I have fixed something bug and have it tested, already it works very well.
PlayAbstract:
package {}
import flash.display.Sprite;
SerializableAttribute public class PlayAbstract extends Sprite {}
private var flick:String = "adp.flv";
public void PlayAbstract() {}
var playIt:PlayVideoAbstract = new PlayVideoAbstract(flick,100,50,stage);
}
}
}PlayVideoAbstract:
package {}
import flash.net.NetConnection;
to import flash.net.NetStream;
import flash.media.Video;
import flash.events.NetStatusEvent;
public class PlayVideoAbstract {}
private var nc:NetConnection;
private var ns:NetStream;
private var vid:Video;
private var flick: String;
private var xpos:uint;
private var ypos:uint;
private var obj:Object;
public void PlayVideoAbstract (String Flick, Xpos:uint, Ypos:uint, Obj:Object) {}
Flick = Flick;
PosX = Xpos;
YPos = Ypos;
obj = Obj;
NC = new NetConnection();
nc.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
NC. Connect (null);
function netStatusHandler(event:NetStatusEvent):void {}
Switch (event.info.code) {}
case "NetConnection.Connect.Success":
connectStream();
break;
case "NetStream.Play.StreamNotFound":
trace ("stream not found:" + flick);
break;
}
}
function connectStream (): void {}
NS = new NetStream (nc);
ns.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
NS.client = new CustomClient();
vid = new Video();
vid.attachNetStream (ns);
VID.x = XPos;
VID.y = YPos;
NS. Play (Flick);
obj.addChild (vid);
}
}
}
}
class CustomClient {}
public void onMetaData(info:Object):void {}
trace ("metadata: duration =" + info.duration + "width =" + info.width + "height =" + info.height + "framerate =" + info.framerate);
}
public void onCuePoint(info:Object):void {}
trace ("cuepoint: time =" + info.time + "name =" + info.name + "type =" + info.type);
}
}Good luck and success to you!
Maybe you are looking for
-
Pair magic keyboard or the magic mouse 2 with multiple Macs
We have two El Capitan 10.11.3 running MacBook Air. We have an office for a docking configuration environment / clamshell with an external monitor, a keyboard of magic and Magic Mouse 2. As one of us needs to use this office Installer, anchor us th
-
Safari restarts immediately after you stop smoking, or to quit the Force
I have a problem whereby Safari restarts immediately whenever I quit the app, either through the command-Q or via force quit. I can always restart my laptop when it's market (and Safari does not immediately restart after restart), but sometimes I wan
-
How to get out of safe mode?
Original title: Safe Mode start How immutable everything I did for that now my computer starts in safe mode? Before I did all what it was I never saw the safe mode screen and now I get the black screen with the four security modes in the corners. I
-
I'm having trouble connecting my controller to the wireless receiver. I use XP, Service Pack 3, 32-bit. I read dozens of help sites for help, but none has my same circumstances. The most common suggestion was to look at the driver for the receiver ap
-
Help, please! I have an Acer Aspire E 15 (E5-511-P4LN) that I bought online at HSN last September, 2014. I'm not really sure what happened past. On the morning of April 10, 2015, I had downloaded the Wakfu game in my computer. I played the game f