Map script error

Hey guys,
Would appreciate some help with a mapping script I am using. I am getting this error when IMPORTING the file. This script is in the LIKE mapping for the Custom 2 dimension. varValues(20) is target Custom 1 so I wouldn't expect that value to be null. Also, why is this script processing on IMPORT? Custom 1 mapping is not processed yet so varValues(20) would be null until the maps are processed. I checked the processing order of the dimensions and Custom1 processes before Custom2.
How can I fix this script to work?
Here is the script and error:
Result = Mid(varValues(20), inStr(varValues(20), (len(varValues(20))-inStr(varValues(20), "_"))))
Error: An error occurred importing the file.
Detail: Conditional Map Script Error: Invalid use of Null: 'inStr(...)' at line(1)
The point of the script is to pull the cost center out of the target custom 1 which is to the right of the "_". Here's an example:
Target Custom1 = Chicago_Scrap
Custom2 = Scrap

Try this instead
vaSplit = Split(varValues(20),"_")
Result = vaSplit(1)

Similar Messages

  • FDM Conditional Map Script Error

    Hi all,
    we trying importing data from EBS to HFM though ERPI by using FDM.
    We used conditional based scripts to importing data from ebs to FDM.
    this scripts used in FDM for ICP dimension between conditional mapping script.script logic is some particular account are related to Intercomapny transaction accounts we have to map to ICP member
    can anyone help me on this:
    this is error :
    ** Begin FDM Runtime Error Log Entry [2011-12-12 15:10:18] **
    ERROR:
    Code............................................. 1014
    Description...................................... Conditional Map Script Error: Expected 'End' at line(2)
    Script:
    If varValues(14)="113401" Then Result="21_ADNIP"
    Else Result="[ICP NONE]"
    End if
    Rule=I1
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 13888
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... ADNIPHYPUAT01
    App Name......................................... FDMHFM
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... HYPUAT
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... HFMGLLOAD
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... WLCAT
    Category ID...................................... 12
    Period........................................... May - 2011
    Period ID........................................ 5/31/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Thanks.
    Srini

    Hi, please try the mapping script again having the "Result=" statement on a separate line, like:
    If varValues(14)="113401" Then
    Result="21_ADNIP"
    Else
    Result="[ICP NONE]"
    End if
    Kind regards,
    Jeroen

  • FDM Like Mapping Script for Account

    I am using the following script as a "Like" map for the Account. The import file has account in this format: 123456-Description. I would like to remove everything after the "-" and set the result to just the account number; however, I keep getting an error saying Conditional Map Script Error: Expected 'End' at line(4)
    sParse="-"
    ipos=InStr(varValues(13),sParse)
    If iPos=0 Then Result=varValues(13)
    Else Result=Left(varValues(13),iPos-1)
    End If
    Anyone know how to resolve the error? I tried moving the End If up to line 4, but that didn't help.
    Thanks.
    Terri T.

    The setting of the RESULT must be on its own line of the If statement as follows:
    sParse="-"
    ipos=InStr(varValues(13),sParse)
    If iPos=0 Then
         RESULT=varValues(13)
    Else
         RESULT=Left(varValues(13),iPos-1)
    End If

  • Script error message when printing google maps driving direction into PDF

    My system; Win 7/ 64bits/IE 9 both 32 and 64 bits/Adobe Acrobats 10.1.1. Pro
    Intial problems in printing web sites into PDF files has been resolved when I upgraded into 10.0.1 after having installed IE9.
    However, with 10.1.1. version, I noticed that when I tried to convert google maps results for a driving direction (From A to B), script error message showed up and I could not convert it into PDF. I tried both IE 9 32bits and 64 bits version, but both failed to do it. Please fix the problem for the next updates.
    Thanks

    You might try running CHKDSK on the disk to where you try to save the file. You might have a corrupted file directory or a damaged track on that disk. I urge you to backup what you can before trying this.
    Ken F.

  • Mapping script issue

    Hello experts,
    I'm quite new to FDM and Iv'e been trying to write a simple conditional mapping script with no success. for my entity dimension, in most cases, the source is ths same as the target though there are some cases where this does not apply and have to go to a NA_Entity. For example:
    SOURCE     TARGET
    PE00_0001     PE00_0001
    PE00_0002     PE00_0002
    PE00_0003     PE00_0003
    AL00_0001      NA_Entity
    PE00_0004     PE00_0004
    CO_HWE        NA_Entity
    PE00_0005     PE00_0005
    As you can see, all source entities which start with "PE" are equal to the target entity and any other entity not starting with PE should be mapped to the "NA_Entity". I believe it's pretty unefficient to maintain an explicit map so we've decided to create a conditional mapping script (not working yet) which reads as follows:
    If Left(varValues(15),2)="PE"
         Then Result = varValues(15)
    Else Result ="NA_Entity"
    Every time i try to import a file I keep on getting:
    Error: An error occurred importing the file.
    Detail: Invalid Like Clause: For Dimension Map (ENTITY) and Rule (Peps)
    ERROR:
    Code............................................. 4026
    Description...................................... Invalid Like Clause: For Dimension Map (ENTITY) and Rule (Peps)
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 5416
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... CTARESULDESA2
    App Name......................................... INT_IECI
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... 10.228.128.168
    Database Name.................................... FDM_INTIECI
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... Argentina-EP
    Location ID...................................... 758
    Location Seg..................................... 3
    Category......................................... Reales
    Category ID...................................... 13
    Period........................................... Nov - 2013
    Period ID........................................ 2013-11-30
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    I've followed the script guide and Iv'e tried several scripts, all with no success. The only workaround I've found is maintaining an explicit map where 99% percent of the elements map to themselves and the other 1% map to "NA_Entity", not very maintenance friendly.
    Thank you very much for your help
    Santiago Ruiz.

    You do not mention what release of FDM you are working with, but there should be no need for scripting .
    Explicit mappings are the most efficient from a performance point of view, but in view of what you want to achieve then all you need are two 'Like' mapping entries.
    the first will be mapping PE* to PE*  and the second entry mapping * to 'NA_Entity' to pick up all the other codes.
    Alternatively if you are processing millions of records and have a performance issue, then an alternative might be to change the non 'PE' type records with a script on the import format, but i think the two records should be the easiest.

  • Script error: wdp_edit_on is Null, URL: ieframe.dll/dnserrordiagoff_webOC

    Hello,
    I like to train myself in ABAP webdynpro, so I have installed NW 7.02 SP6 EhP2 on a virtual machine (VMware) with Win2008R2.
    I have applied with SICF all services as mentioned in OSS note 1088717 describing a list of /default_host/sap/bc/webdynpro/... etc.. as well as some services specificly around view designer.
    Furthermore, the file "hosts" is set as follows:
    192.168.8.128    dummy.com
    192.168.8.128    PALATINVIRT1         PALATINVIRT1.dummy.com     
    10.10.0.10       PALATINVIRT1         PALATINVIRT1.dummy.com
    whereas PALATINVIRT1 is the name of my host installed with Win2008R2 and NW 7.02..
    Finally, ping tests are successfully for:
    palatinvirt1
    palatinvirt1.dummy.com
    dummy.com
    All of them are replying with 192.168.8.128.
    Instance parameter icm/host_name_full is set to "palatinvirt1.dummy.com" (checked via transaction RZ10).
    If I launch SE80, select "Web dynpro components" in order to check my view , I can open the view and click on tab "Layout" but I'm not able to see the generated HTML page as well as I don't see any UI element toolbar if I'm switching in edit mode. Instead, I will get a script error "The value of property " wdp_edit_on" is Null" and then "URL: res://iframe.dll/dnserrordiagoff_web_OC.htm".
    If I check some activated services, especially the tutorial webdynpro applications (I have activated them in SICF), I will get a typical error "Web page cannot be displayed". So, it looks like a generic error I have.
    Does anyone know which setting I have to check?

    Hello to All,
    I have found the reason for the error: resolution of my URL was not possible.
    If you get such errors, this does not have anything to do with service pack updates or so or ICF services.
    If you are driving a scenario virtual machine VMware with NW02 installed as well as SAPGUI installed on your physical PC (host PC) and you have no DNS server running on your host, then you have to define a mapping of your VM IP address to the FQDN.
    I also have installed the Microsoft Loopback adapter, assigned to IP address 10.10.0.10 on my VM.
    In my case, palatinvirt1.dummy.com is the FQDN.
    Therefore, on VM the file HOSTS in directory c:\windows\system32\drivers\etc should contain:
    192.168.8.128      dummy.com
    192.168.8.128      palatinvirt1      palatinvirt1.dummy.com
    10.10.0.10         dummy.com
    This will enable each kind of requests via WAS.
    On your host PC, it is also required to define a correct mapping for the palatinvirt1.dummy.com address, otherwise your host does not know where to look at.
    So, modify on your host PC the file HOSTS in directory c:\windows\system32\drivers\etc:
    192.168.8.128      palatinvirt1.dummy.com
    This solved my problem.
    I also recommend to fix the IP address on your VM and not to use DHCP service on top, otherwise you are risking of getting different IP addresses next time you are starting new your VM.
    Yours
    Stephan

  • OWB 904 doesn't use DB Links in mapping scripts

    I'm having trouble deploying mappings because they don't use the generated DB Links in the mapping scripts.
    Normally when deploying a mapping I get this warning that certainly is correct since it can't find the source table:
    VLD-2771: System privileges may not allow extraction from source ZIPCODE.
    Extract from the mapping script:
    CURSOR "ZIPCODE_c" IS
    SELECT
    "ZIPCODE_DWH"."ZIPCODE" "ZIPCODE",
    "ZIPCODE_DWH"."CITY" "CITY",
    ROWNUM "ROWNUM_ALIAS$$$"
    FROM "AXAPTA"."ZIPCODE" "ZIPCODE_DWH" ;
    Only when explicitly typing the name of the DB link in the configure options of the mapping will it work. But when I do this I get the following warning:
    VLD-1124: Schema and/or Database link physical configuration parameters should not be set for ZIPCODE.
    The version of the code that works:
    CURSOR "ZIPCODE_c" IS
    SELECT
    /*+ NO_MERGE */
    "ZIPCODE_dwh.business8123"."ZIPCODE" "ZIPCODE",
    "ZIPCODE_dwh.business8123"."CITY" "CITY",
    ROWNUM "ROWNUM_ALIAS$$$"
    FROM "ZIPCODE"@"dwh.business.auc.dk@dwh" "ZIPCODE_dwh.business8123" ;
    Shouldn't the mapping script use the DB Link normally or is there an option I have missed? I see in the Reviewers Guide that the target user is granted access to the source (through Public) but won't this only work if both source and target is in the same database?
    Regards
    Bent

    Hi guys,
    I am facing a strange problem. The code generated for my mapping has NOT used the dblinks. My OWB version is 10.1.0.4
    This is my problem in brief.
    I have installed OWB newly and started to do a sample task. I created a very simple one to one table population mapping from source to the target schema. Both are in the same database.
    When i generated the code for the mapping, it gave a warning 'VLD-2771: System privileges may not allow extraction from source EMP'.
    When i checked the code which was generated, i couldnot see any dblinks associated with my source table( which seems strange)
    CURSOR "INGRP_c" IS
    SELECT
    "EMP_SRC_TRG_CONN"."EMPNO" "EMPNO",
    "EMP_SRC_TRG_CONN"."ENAME" "ENAME",
    "EMP_SRC_TRG_CONN"."JOB" "JOB",
    "EMP_SRC_TRG_CONN"."MGR" "MGR",
    "EMP_SRC_TRG_CONN"."HIREDATE" "HIREDATE",
    "EMP_SRC_TRG_CONN"."SAL" "SAL",
    "EMP_SRC_TRG_CONN"."COMM" "COMM",
    "DEPT_SRC_TRG_CONN"."DEPTNO" "DEPTNO_1",
    "DEPT_SRC_TRG_CONN"."DNAME" "DNAME",
    "EMP_SRC_TRG_CONN"."DEPTNO" "DEPTNO",
    "DEPT_SRC_TRG_CONN"."LOC" "LOC"
    FROM "SCOTT"."EMP" "EMP_SRC_TRG_CONN" ;
    In brief this is the process i have done.
    Source schema : SCOTT & Target schema : TRG_SCHEMA
    1) I have created source (for SCOTT) and target(for TRG_SCHEMA) modules.
    2) I have also created DBLinks, Locations and Connector from source to the target locations.
    3) I registered both the source location and target locations.
    4) Validated, Generated and Deployed the Connector from source to the target.
    I was unable to trace the error. Did i miss anything in the configuration? or during the installation of OWB.
    Though it is a very old post, i hope someone can help me out here.
    Thanks in Advance,
    Sri

  • FDM Mapping script produces result #script

    Hello,
    I am trying to use the following mapping script and instead of getting the result defined in the script it is producing the result #script. It is as if it is taking that as the target rather than processing the script. Has anyone else seen this behavior in FDM?
    strTrgAcct = varValues(14)
    Select Case strTrgAcct
    Case "100900","100925","101310","201690","201700"
    Result = "010"
    Case "104200", "104300", "104500", "104700", "104800", "104900", _
    "105000", "105200", "105300", "105450"
    Result = "060"
    Case "107300"
    Result = "210"
    Case Else
    Result = "[None]"
    End Select

    Hello,
    If you are sure that all the columns are filled out correctly and there is nothing in your user error log; I would then suggest you create an SR to have an engineer review it.
    Thank you,

  • XML File Import: VB Script Error

    Hello
    I am getting a VB Script Error when trying to use the "Import Data Model from Single XML file". Here is the error.
    Any ideas on how to fix this?
    Thanks

    Hi,
    I would check the code line in the import extension (line 1350) you are using to get an idea what is working wrong. Maybe you are able to put some output to see what objects import is not working.
    Could be an object that is not mapped or unknown and can not be transfered into the PowerDesigner metamodel object.
    HTH
    Stefan

  • Why is Adobe crashing and giving me "script " error messages?

    Why is Adobe crashing and giving me "script" error messages?

    Let's see if we can get you the details you need here:
    I'm getting the same Action Script pop-up on WinXP Sp3 32-bit and Win7 Pro SP1 64-bit systems, both running Seamonkey 2.10.1 with the Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120615 Firefox/13.0.1 SeaMonkey/2.10.1, so this is the same browser as Firefox 13.0.1.
    The Action script pop-up has a Dismiss and Continue button and on WinXP clicking Dismiss seems to close the pop-up window and allow the Flash Player to work normally, at least for a while; clicking Continue results in repetitions of the Action Script pop-up - takes some time to come up again so not 100% sure on this behavior.  On Win7, the Action Script pop-up window does not respond to clicking either button, the browser appears to be hung and after a minute or so a message comes up in the Flash player box saying the Flash Player has crashed and to reload the page to retry.
    Here are the contents of the Action Script pop-up:
    I have experienced this on a couple of different sites, notably the Animated Map at weather.com which I get to through my Yahoo login.  Here's the URL, which may or may not work for you, since I get there through my Yahoo ID login:
    http://www.weather.com/weather/map/interactive/USNJ0523:1:US?animation=true&site=ca.yahoo. com&cm_ite=CityPage&par=yahooCA&cm_pla=WxPage&cm_cat=ca.yahoo.com&cm_ven=YahooCA&promo=0
    I am using Flash Player 11.3.300.262 downloaded from this URL:
    http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    I hope this provides the necessary info to pursue this. Please let me know if you need more.
    I tacked this on to this thread since it seems relevant but if you want a fresh thread, please specify.
    Thanks.

  • IE causing error script error on production server with cfform (flash)

    Not sure if this is better posted here or the Cold Fusion
    Flash Integration category. I have a site on a shared hosting
    environment that has a cfform using flash that has several cfinput
    date fields. The datefields display and function properly on my
    development environment in both firefox and IE but only work in
    firefox on my production server. In IE I get the following script
    error:
    Line: 5477
    Char: 1
    Error: Object Expected
    Code: 0
    Does this have to do with missing files in the CFIDE\Scripts
    directory? If so can I place the needed files in a local scripts
    directory and point to them in the source of the page getting the
    errors? Any help with this problem would be greatly
    appreciated.

    Sounds like the /cfide/ folder is not mapped on your site.
    Ask them to make a virtual folder called "CFIDE" pointing to the
    real CFIDE folder.
    If they wont do it, make a folder yourself and copy the
    /cfide/scripts folder to it. If you dont have the files, install CF
    locally and move them up to your site.

  • IE Script error when double clicking on a view in Abap Webdynpro component

    Hello experts,
    I am running mini SAP trial version 2004 with Internet explorer 7.0 and also installed gui patch 23.
    I am making a sample application in SE80 and when double clicking on a view in Abap Webdynpro component I get following error:
    <b>Internet Explorer Script Error</b>
    An error has occured in the script on this page.
    Line: 1
    Char: 1
    Error: 'wdp_show_menu' is undefined
    Code: 0
    URL: http://satellite5200:8000/sap/bc/wdvd/painting.html?_vdrespkey=EOJ6V1JQMX0VLTQ7AP6DQM64Y&_vdframe=painting&sap-client=000
    Do you want to continue running scripts on this page?
    Thanks in advance.
    Bhupendra

    Hi Bhupendra,
       If you are seeing this error in the Se 80 editor , i guess you can ignoire that ...While running the application it will not show any error.
    Thanks
    Anzy

  • When I try to use the print/save as pdf option, I get a scripting error and Firefox usually freezes.

    On my MacBook Pro running OS 10.5.8 and Firefox 3.6.13, I am trying to save documents as pdfs under the print window, I get a scripting error and Firefox usually freezes/becomes nonresponsive. This happens every time I tried to perform this task.

    This is a fresh install of Windows 7.  It is installed on virtual environment on my mac mini using the parallels virtualization application.
    I purchased the windows version of dream weaver CS 6 through an online website which I tried to install to my new windows instance.   This is the academic version of the Dreamweaver application with a perpetual license that I am trying to install.
    I verified my eligibility through adobe which gave me a link to download the CreateiveCloud Set-up program.  I downloaded the install program in my windows environment and program and the gave the above error message.  Below is a copy of my computers specs. 

  • Firefox is slow to open and close. I get a "script error" that says it may be caused by a recently opened tab. What do I do to correct this problem. It is wreaking havoc when trying to open/close or move around the internet.

    I am getting a "script error" when I close out the internet, specifically Firefox. My backup internet explorer does not do this. This is slowing down the process of opening/closing Firefox. When I open Mozilla, I get "restore session" even though I have closed everything down. I have "removed program" and re-downloaded Mozilla 3 times and still this problem persists. What is causing it and how do I fix it?

    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox
    Check and tell if its working.

  • Running reports in SCCM: ActiveX Script Error

    When I try to run some reports, I authenticate then it throws a Script Error.  Error:  ActiveX component can't create object:  'Microsoft.XMLDOM'.
    This only happens on some reports and it only happens remotely.  If I try to run the same reports on the local server, there aren't any issues. 

    Have enabled remote errors?
    http://be.enhansoft.com/post/2013/01/16/Enabling-Remote-Errors-in-SQL.aspx
    What exactly is the error that your are getting!
    http://www.enhansoft.com/

Maybe you are looking for