Script block variable exchange

Hello
I want to run a test via Script-DAC and RS232. One test consists of 50 measurements, each lasting 50 secs.
At measurement start, the test instrument wants to be informed about one parameter, e.g.
call oUDI.Write("START.......007") 'in SFD_GetScan
to trigger a test with parameter 007. After a while, the instrument responds with a result string
resultstring=oUDI.Read() 'in SFD_GetScan
Hard coded, no problem. But when I want to change that parameter along the 50 measurements, I find I cannot send a number to the SFD_GetScan function from the DAC module, e.g.
sub SFD_GetScan(ErrorP)
Startstring="START......" & cstr(MyStartParam)
Call oUDI.Write(Startstring)
'wait until done
resultstring=oUDI.Read()
'..... further processing
end sub
Now I try to get a value into the script via an output Script-DAC-block
Dim MyStartParam
sub SFD_WriteChannel(.....)
MyStartParam = DataP
'msgbox(cstr(MyStartParam)
end sub
The idea is to set a value to MyStartParam that can be accessed throughout the script, particularly by SFD_GetScan.
For some reason, this does not work. Though dim'med in the header, and passed to WriteChannel ok, changes in MyStartParam are not seen from within SFD_GetScan. Instead, MyStartParam in
Am I completely off track? I know that I could change the ParamP in the DAC, but this would require a new test run each time.
Thanx in advance.
Michael

Hello Michael,
I'm not sure, if I understand your problem right so I will give a short summary of how I understand what you want to do. Your Instrument returns data from 50 channels per scan and you have to start the data acquisition for these 50 channels by sending one command (START.......xxx) to the instrument. For each scan you have to send a slightly different command to the instrument.
One way to pass the commands to be sent to the instruments to the script might be using one of the device parameters that are passed as parameters of the SFD_Init() function. You can take these parameters and save their values to script global values so that you can access these data throughout the entire script. In the dialog for the driver you can enter the commands to be send to the instrument e.g. as a comma separated list. In SFD_GetScan() you can select the correct command from this list (e.g. selectet by a scan counter) and send it to the instrument.
However if you have to send the START command per channel, it will be much easier to implement this in SFD_ReadChannel. If the parameter xxx of the START command is the number of the channel you want to acquire, you can use the parameter ChannelNumberP (channel number in the dialog) for this purpose.
I hope this helps
Rainer

Similar Messages

  • Data exchange Mainscript (SCRIPT) with script block (DAC)

    Is there any way to exchange data beetwen a Mainscript (SCRIPT) with
    user-dialoges and script block (DAC) in this way that the script in
    scriptblock can access to this data?
    Background: I write a DAC-Application with some script-blocks for
    reading and writing data to/from real devices. During the development
    I'd like to simulate all device accesses because I don'd have the
    devices in my office. I write all scripts with a branch for simulation
    an real measurement on startup.
    How can I execute a swich (simulation / mesurement) without changing
    all my scripts all times? Can a script read a variable anyway (Variable
    from Mainscript, Diadem-Uservariable or "Hilfsvariable" like L1)? 
    Can I fill "DeviceParam1V" with content of a variable?
    I could use a input channel connected with a formula-block for it. (The
    formula-block can read a variable.) But this way is uncomfortable an
    don't work for input blocks.
    Martin Bohm
    [email protected]

    Because the DAC Script is executed in its own runtime environment you cannot use the DIAdem variables as in a normal VBS or a SUD.
    Still, there are ways to exchange information.
    First of all by an extra channel as Input (you named it)
    Secondly, there are several variables you can use. Have a look at the Script DAC block. There are two fields called Parameter1 and Parameter2. And each signal you configure has a parameter of its own.
    Prior to starting the scheme, you can use a script to change the value of those parameters:
    Call DACObjOpen("Script-in1")
      VBSSignalParam(1) = "abc"
    Call DACObjClose("Script-in1")
    Is changing the parameter of the first signal that is configured.
    Call DACObjOpen("Script-in1")
      VBSParameter1 = "1st device parameter"
      VBSParameter2 = "2nd device parameter"
    Call DACObjClose("Script-in1")
    is changing the global device parameters.
    On the side of the Script DAC driver VBS you cann use the paramP funtion to access the signal parameter that corresponds to the actual channel (as referenced by ChannelnumberP)
    ' SFD_ReadChannel
    ' Zweck               : Lesen eines Wertes für den Kanal "ChannelNumberP"
    ' ChannelNumberP      | Kanalnummer aus dem Block-Dialog
    ' ParamP              | Vom Anwender definierte Variable aus dem Block-Dialog
    ' DataP               | Variable zur Rückgabe des neuen Kanalwertes. Diese
    '                     | Variable sollte zumindest auf einen gültigen Wert
    '                     | initialisiert werden.
    ' ErrorP              | Variable zur Rückgabe einer Fehlermeldung. Wird diese
    '                     | Variable gesetzt, stoppt DIAdem die Messung
    Sub SFD_ReadChannel( ChannelNumberP, ParamP, DataP, ErrorP )
    End Sub
    To acces the device Parameters, use the init function:
    ' SFD_Init
    ' Zweck               : Diese Prozedur wird während des Messungsstarts aufgerufen
    ' DeviceParam1V       | Erster Parameter, der vom Anwender im DAC-Block
    '                     | eingegeben werden kann
    ' DeviceParam2V       | Zweiter Parameter, der vom Anwender im DAC-Block
    '                     | eingegeben werden kann
    ' ErrorP              | Variable zur Rückgabe einer Fehlermeldung. Wird diese
    '                     | Variable gesetzt, stoppt DIAdem die Messung
    Sub SFD_Init( DeviceParam1V, DeviceParam2V, ErrorP )
    End Sub
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • Use Variables created in script block outside of script block

    hello
    I have a code like:
    $command= { param($p1,$p2) if (Test-Path "D:\$p1") {
    $s=$p1+ "_" +$p2 } }
    Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2here session is already created with remote server. Invoke-Command runs that script block on a remote server.Now I want to use that variable $s after invoke-command like $command= { param($p1,$p2) if (Test-Path "D:\$p1") { $s=$p1+ "_" +$p2 } }
    Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2write-host $sif ($s -eq "ZTE_3G") {Write-host True} else {write host false}But here value of variable $s comes as null.Could you please help me how can i use value of that vairable?

    You need to return $s in your scriptblock and then save the output of Invoke-Command to a variable in order to test.
    Something like this may work:
    $command= {
    param($p1,$p2)
    if (Test-Path "D:\$p1") {
    $s=$p1+ "_" +$p2
    $s
    $s = Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2
    write-host $s
    If ($s -eq "ZTE_3G") {
    $True
    } else {
    $False
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI | PoshRSJob
    PowerShell Deep Dives Book

  • PowerShell provider MSFT_ScriptResource failed to execute Test-TargetResource functionality with error message: The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a C

    I found this article, and used it, and it seems as though my script resource node items are being properly expanded, and honestly I think it passes through being loaded up, but then when I go to start it, it fails. so let me put up some links with code and
    error messages for you all.
    http://social.technet.microsoft.com/Forums/exchange/en-US/2eb97d67-f1fb-4857-8840-de9c4cb9cae0/dsc-configuration-data-for-script-resources
    Ok, so here is my configuration. The idea is that I need some specific permissions set on a specific registry key on my sql servers. This is so I can do the SQL LowPriv monitoring. I'm just setting one key right now, premise is once this is working I can
    then duplicate that for the remaining keys.
    https://gist.github.com/jeffpatton1971/1bfb19a06782f0975f6e
    When I paste that into the prompt it appears to be perfectly happy
    https://gist.github.com/jeffpatton1971/3aeb568130988a460738
    In fact, the resulting MOF file looks ok to me
    https://gist.github.com/jeffpatton1971/a94858f0c1e9e5612f90
    When I attempt to start the configuration on my local machine, which has the key this is what I get
    https://gist.github.com/jeffpatton1971/82da888bb7aac31ef4ad
    lol...well so it's a different error now, I removed a credential param that I wasn't using, so now i'm left with an & that I can't seem to find anywhere... at any rate...so now my issue has become where is the bad &?I'm going back to the internets
    to see if there is something akin to this error, and i'm open to any questions the most pressing one is why are my scriptblocks all smooshed together? well, early on I was wondering if random whitespace and extra characters were mucking up the waters. I may
    actually dial down the script and see if I can add things until I get the error as well.
    Jeffrey S. Patton Jeffrey S. Patton Systems Specialist, Enterprise Systems University of Kansas 1001 Sunnyside Ave. Lawrence, KS. 66045 (785) 864-0242 | http://patton-tech.com

    I looked at the first link, and it looks like you might be missing quotes around the $Node.ActionAccount part of the comparison, which would cause the script block creation to fail. Maybe change the sections that look like this:
    Where-Object {$_.IdentityReference -eq $Node.ActionAccount}
    to this:
    Where-Object {$_.IdentityReference -eq '$Node.ActionAccount'}
    If you're looking to do permission changes with DSC, I'm actually looking for testers for my
    PowerShellAccessControl module. The 3.0 beta has two DSC resoruces: cAccessControlEntry (lets you make sure an ACE is present or absent) and cSecurityDescriptor (lets you specify an SDDL string for an object). The current cSecurityDescriptor is going to
    be called cSecurityDescriptorSddl in a future release, and a new cSecurityDescriptor is going to be added that lets you control the different sections without using SDDL. If you were to use it, I think you could change your configuration to the following (at
    least for the permission part):
    Configuration SQLLowPrivRegistry {
    param(
    [string[]] $ComputerName = "localhost"
    Import-DscResource -Module PowerShellAccessControl
    Node $ComputerName {
    cAccessControlEntry TopLevelActionAccountPermissions {
    Ensure = "Present"
    Path = "HKLM:\Software\Microsoft\Microsoft SQL Server\"
    ObjectType = "RegistryKey"
    AceType = "AccessAllowed"
    AccessMask = ([System.Security.AccessControl.RegistryRights]::ReadKey)
    Principal = "DOMAIN\SqlDefaultAction_sa"
    What you're doing should work just fine, so I'm not saying you need to use mine. If you do get a chance to look at it, though, please let me know what you think (or if it even works). There are two scripts in the examples folder of the module that demo more
    with the two resources (hopefully that will do until I finalize the documentation).

  • Error in BatchLoad process - Object variable or with block variable not set

    Hi All,
    We are working on FDM version 11.1.1.3 with Essbase as a target system.
    To automate the data load process, we are loading the batch loader feature.
    I have taken the backload script from admin guide and it is working fine in our test environment.
    When, I am trying to use the same script in our QA environment, we are getting the below error message-
    Error: An error occurred running the script:
    *91 - Object variable or with block variable not set*
    At Line: 24
    QA environment has same version as Test environment (11.1.1.3). In QA, it the same script which I am using in Test environment.
    Please help us on this issue. Any help will be highly appreciated.
    Thanks & Regards,
    Mohit Jain

    Hi,
    As suggested by you, I have placed the code given by you and now my scripts looks like-
    'Declare Local Variables
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim BATCHENG
    Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
    BATCHENG.mInitialize API, SCRIPTENG
    'Initialize Variables
    lngProcessLevel = 12 'Up-To-Check
    strDelimiter = "~"
    blnAutoMapCorrect = 0
    'Create the file collection
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    'Execute a Standard Serial batch
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), , CBool(blnAutoMapCorrect)
    But still, I am getting the same error.
    Have I placed the your given code at wrong place? please help me on this.
    Thanks a lot for your help!!
    Thanks & Regards,
    Mohit

  • Code 91 - Caused Error: (Object variable or With block variable not set)

    Hi,
    We are using FDM 9.3.1. We have enabled batch processing.
    We are having following process being followed
    - Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
    - Batch processing is set to serial and processlevel set to Up-To-Check
    - We had following five files created for Location - EMAFF100
    i. 1_EMAFF100_ACT_May-2011_RR.txt
    ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
    iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
    iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
    v. 1_EMAFF100_ACT_Sep-2011_RR.txt
    Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
    But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
    40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
    When we checked the view error log from tool menu we found following
    ** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
    ERROR:
    Code......................................... 91
    Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
    Procedure.................................... clsBatchLoader.mFileCollectionProcess
    Component.................................... upsWBatchLoaderDM
    Version...................................... 931
    Thread....................................... 5600
    IDENTIFICATION:
    User......................................... ncreighton
    Computer Name................................ HYAPSDEV1
    App Name..................................... EMATTEST
    Client App................................... WebClient
    CONNECTION:
    Provider..................................... ORAOLEDB.ORACLE
    Data Server..................................
    Database Name................................ hydev_serv
    Trusted Connect.............................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location..................................... EMAFF100
    Location ID.................................. 762
    Location Seg................................. 16
    Category..................................... ACT
    Category ID.................................. 13
    Period....................................... Jun - 2011
    Period ID.................................... 30/06/2011
    POV Local.................................... False
    Language..................................... 1033
    User Level................................... 1
    All Partitions............................... False
    Is Auditor................................... False
    We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
    Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
    Thanks in advance.

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • FDM Error - object variable or with block variable not set

    Hi all,
    When i try to configure the authentication provider in the fdm load balance manager, I've got an error "object variable or with block variable not set".
    version: 11.1.2.1
    If anybody can help me to resolve this. I will be thankful to him/her
    Waiting for replies.
    Regards,
    Edited by: Antoine on Aug 9, 2011 10:33 AM

    Try the following resolution
    The error "Object Variable or With Block Variable Not Set" is caused when the FDM Service account does not have "Write" share permission to the FDMDATA folder structure, which resulted in the FDM Service account being unable to write the text file that is produced when running a SQL Integration Script. Without being able to write to the directory, the import process cannot complete successfully. Could you please verify the following and update the SR accordingly.
    1) From the FDM Login screen select "Add Application" from the drop down list
    2) Login with a valid user
    3) Highlight the application that is experiencing the issue and click "modify"
    4) Locate the "Application Path", this is the location of the FDM Application Files. Connect to the server hosting the FDMDATA folder.
    5) Right-click on the FDMDATA folder and choose "Properties"
    6) Click on the "Sharing" tab and click the "Permissions" button
    7) Click "Add" and enter the id of the FDM Service Account used for all the FDM Configs and click OK
    8) Check the "Full Control" box and click "Apply"
    9) Click OK to save the changes.

  • Object variable or With block variable not set, Outlook 2010.

    I am using Outlook from Office 2010 Professional (32 bit) and have Exchange 2010 from SBS2011 installed on the server.
    Outlook cannot sync with the server over the LAN. This started suddenly about 6 hours ago.
    I can send from outlook and it is delivered. I can receive into outlook. I can also send and receive on the phone using the Exchange server. However, the sent emails are not showing up in the sent folder of Outlook. The phone can see its own sent emails,
    but not those from outlook.
    I haver rebooted the PC and the server with the same result. When I open outlook, is get an error dialogue box with a title, "Contact Sync" and a message, "Error: Object variable or With block variable not set."
    My contacts and calender are visible. Email sent since early this afternoon are not recorded in Outlook.
    Any thoughts?
    Thanks

    Hi,
    Do you mean all emails that are send from phone are not showing up in the sent folder of Outlook? Please check whether these emails are showing in Outlook Online mode or OWA.
    Please make sure all emails send from Outlook can be listed in Sent Items folder correctly. If the problematic emails can be viewed in OWA and Outlook Online mode and the issue only happens to Outlook Cached mode, please manually sync the folder by clicking
    Send/Receive button to have a try. If it doesn’t work, we can create a new Outlook profile to have a check.
    As for the “Contact Sync” error, please try to launch Outlook with safe mode (“Outlook.exe .safe”) to check whether the issue still persists. Some of third-party programs such as QuickBooks Contact Sync or corrupted VBA coding may cause that.  If it
    is, please refer to the following article to check it:
    http://dataservices.intuit.com/support/articles/sln43126
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • How to bind data from script created variable to embed element of XML schema (xsd) in "Data View"

    Hi, i have got another problem with livecycle designer scripting.
    I have got script line which is defining of string variable:
    var aaa = "this is my string";
    and i have got embed XML schema like this (it`s only short part of whole file):
    ... xs:element name="bbb" type="xs:string"/ ...
    After saving data to XML i would like to get "this is my string" as a value of my "bbb" XML element.
    To save this data i`m using submit button which is connect with submit.php file on my server.
    How to connect script created variable and embed XML schema element which is present on my "Data View" tab.
    Please help me a bit becouse i don`t know even where to search answer of it...
    Of course i know possibilities to create fake unvisible text field object and bind it with 'bbb' and than put "this.rawValue = aaa" to connect those two variables but i think that is not a good idea to solve it in that way. It`s too primitive

    i solve it, i should write this:
    xfa.datasets.data.bbb.value = aaa;

  • Error while deleting loc - Object variable or With block variable not set

    I could not delete some of the existing locations in the HyperionFDM and it results in the error Object variable or With block variable not set.
    I verified that the Server has the apps and subfolder which is needed for this application \\servername\data\app1\Inbox etc.
    Any pointers will be really useful. Thanks !
    - Ap

    Hi,
    There can be several reasons for it, for now I would suggest you:
    This error generally comes because:
    Cause
    The user that logs on workbench does not have write access to the Financial Data Quality Management application shared folder.
    Solution
    Log onto the machine where the Financial Data Quality Management application files are located. You can locate this path by performing the following:
    a) At the FDM Login page choose <Add Application> and login
    b) Highlight the FDM Application in question and click the "Modify" button
    c) The application path field displays the location of the application folder
    2. Go the shared folder, right click and go to Properties -> Sharing -> Permissions and add the user to the Share Permissions and grant "Change" at a minimum.
    Please check and let me know
    I would suggest you to post FDM related posts in Financial Data Management
    J

  • Error: Device 768 (vbd) could not be connected. /etc/xen/scripts/block fail

    Hello OTN,
    After converting/exporting machines from VMware and importing them into OVM i am receiving errors on some of the machines when powering on.
    Here is the complete error message:
    Start - /OVS/running_pool/dirkwin
    PowerOn Failed : Result - failed:<Exception: return=>failed:<Exception: ['xm', 'create', '/var/ovs/mount/483E943AE684484EAD7255356E8F24CC/running_pool/machinename/vm.cfg'] => Error: Device 768 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected.
    >
    StackTrace:
    File "/opt/ovs-agent-2.3/OVSXXenVM.py", line 57, in xen_start_vm
    run_cmd(args=cmd)
    File "/opt/ovs-agent-2.3/OVSCommons.py", line 85, in run_cmd
    raise Exception('%s => %s' % (cmdlist, p.childerr.read()))
    >
    StackTrace:
    File "/opt/ovs-agent-2.3/OVSSiteVM.py", line 131, in start_vm
    raise e
    Searching for this error turned up different solutions but none of them worked.
    One mentioned OVM not being able to handle spaces in vm names but this is not a working solution as most of the machines are just regular names without spaces or special characters.
    Also interesting, sometimes this error does not turn up when powering on BUT the machine just powers off again and returns to its turned off state. Next power on the error returns.
    OS types vary from S10, Win XP and RedHat so a possible connection to the error being the host OS is not there.
    Harddrive types are set to auto. The vm.cfg's of functioning machines do not differ from non functioning machines besides the actual vm name in the vm.cfg
    Any idea to this error or how to solve it ?
    Thanks
    -Stephan

    Hello Sebastian,
    This is one of the vm.cfg which will abort due to the above mentioned error:
    acpi = 1
    apic = 1
    builder = 'hvm'
    device_model = '/usr/lib/xen/bin/qemu-dm'
    disk = ['file:/var/ovs/mount/483E943AE684484EAD7255356E8F24CC/running_pool/vmname/vmname.img,hda,w',
    ',hdc:cdrom,r',
    kernel = '/usr/lib/xen/boot/hvmloader'
    memory = '2048'
    name = 'vmname'
    on_crash = 'restart'
    on_reboot = 'restart'
    pae = 1
    serial = 'pty'
    timer_mode = '0'
    usbdevice = 'tablet'
    uuid = 'a2a62bcb-f9ab-4ec3-8574-7415985cdf0a'
    vcpus = 1
    vif = ['bridge=xenbr0,mac=xx:xx:xx:xx:xx:xx,type=ioemu']
    vif_other_config = []
    vnc = 1
    vncconsole = 1
    vnclisten = '0.0.0.0'
    vncpasswd = 'xx'
    vncunused = 1
    The xend.log also turned up nothing concerning this error. no messages were written into it. No other log has been created by xen in the /var/log/xen directory concerning an issue with the current machine.
    Thanks for your help !
    -Stephan
    ps:mac address + pw is commented out
    Edited by: Stephan Becker on Aug 5, 2010 7:11 AM

  • Error: Object variable or With block variable not set.

    Hi,
    when i try to fill the control tables and browse for the target period in HFM (sys 9.3.1) i get the error: Error: Object variable or With block variable not set.
    When browsing for the target value in the location for the value no problem occurs.
    Anybody a clue?

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • Error: object variable or with block variable not set when creating journal

    Hello
    When I try to create a new journal, I get an error "object variable or with block variable not set"
    This is happening with some computers but not all of them, the same user can create a journal in some computers.
    I tried uninstalling and reinstalling BPC office client but that did not work.
    Do you have any other ideas ?
    Thank you in advance.

    Hi,
       You have to check first  if you are able to access the reporting service frm that speific client machine typing:
    http://<reporting server name>/reports. If all is woking well , you have to check also the number of default sheets for an empty excel sheet (should be 3) - I ma not sure what version are you using.
        If still not work, please let me know when exactly the error appear, when you try to open the template (clicking on journal option) or after when you fill the report, save it, so on.
    Best regards,
    Mihaela

  • "Object Required" error when using the script block from the code behind

    I try to use the following script block on the code behind page
    <script defer='true' id='NavID' type='text/javascript'>Nav();</script>
    and the function Nav() is on the .aspx page. It gives me the "Object Required" error message. BUT if I add an alert("hello!!!") line inside of the Nav() function, it works fine after the user closes the alert box. Has anyone experienced a similar problem? Please help. Thanks.

    There is no way to troubleshoot this by looking at a picture of the diagram. LabVIEW 6 is almost prehistory and many things have changed, especially the file IO all looks different so it is impossible to tell what you are doing.
    Error 7 is file not found, so most likely your string operations are not correct. What are the full strings? What is the final file name (maybe you are missing a "\" or maybe you are on a different OS type). Put an indicator at the path wire to see what's happening!
    Is this a datalog file?
    (Overall, the code is a bit suspect. Nobody needs a seven frame flat sequence. ) Why do a control and an indicator have the same label?)
    LabVIEW Champion . Do more with less code and in less time .

  • Object variable or With Block variable not set

    Hi - We have saved a working input schedule to a new name and modified it to use for another company.  There is a report tab to bring down the historical units from BPC, a tab to trend the history, and a tab that references the other two tabs to forecast the units into the future and send the forecasted units back up to BPC.  The input schedule that was saved to a new name and modified works fine until we attempt to Send and Refresh the active worksheet on the forecast tab.   When we do so, it indicates the number of records that will be sent, but when it attempts to Process the upload to BPC we receive an error message that indicates  Object variable or With Block variable not set  and no records are sent to BPC.
    We have retested the original input template that was copied and the original template still transfers data successfully to BPC.  We have also tried starting with a blank input template and copying in the formulas from the working template and we still get the same error message.  
    We have read several postings on this error and it seems to be a pretty general error, and so far none of the suggestions have worked for us.  One suggested checking for special characters, but the only non alpha non-numeric characters used are dashes in the values of one of the dimensions and spaces and underlines in the formulas used to forecast the units, but both of these are present and don't seem to cause any problem in the working input schedule. 
    We are currently on BPC 7.5 SP6 and using Excel 2010.
    Any help would be appreciated.

    >Note 1494285 seems to be in reference to BPC for Microsoft and we are using NetWeaver.
    Sorry, 1513080 is for NW (there's link to it in bottom of 1494285) :
    - Currently only BPC 7.5 NW SP05 and above support Office 2010
    - Note: BPC NW 7.5 NW cannot work on office 2010 (64-bits), office 2010 (64-bits) is not supported.
    Check your proxy settings (note 1592560: Getting "Error 91 Object variable or with block variable after upgrade to SP06" in the Excel Client.)
    Try 1576893: After upgrading to SP06, the EVDRE reports stop working.
    PS. Maybe I wrong, but some problems with 2010 Office clients in our system dissapear after patching to SP08.

Maybe you are looking for

  • Multiple threads calling the same stored proc with different parameters

    Hi, I have a stored procedure which will be called by 8 threads. Every time it takes in a different parameter. Actual execution time for this proc (irrespective of the parameter) is around 2 seconds. But when I call the 8 threads, I see that the tota

  • How to install adobe acrobat XI pro in windows?

    how to install adobe acrobat XI pro in windows?

  • Setting Colors

    I am wondering how to use a cfif statement to set the background color of a table cell based on the percentage number that is outputted from a db.

  • Wireless mighty mouse resolution (in DPI)

    hi, anybody has an idea of what is the resolution of the mighty mouse? i have the wired one, i believe it was just 800 dpi... i'm wondering if the new one is any better... i'm quite used to gaming mice (razer & logitech) whch goes up to 1600 dpi, so

  • Finder crashes every few minutes.

    I'm working on a 2007 MacBook Pro 17". I installed Mavericks, but noticed that an important application wasn't working on it, so I downgraded (from a Time Machine backup) back to Mountain Lion. Ever since, Finder crashes every few minutes, making it