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
Similar Messages
-
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 -
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 = ScrapTry this instead
vaSplit = Split(varValues(20),"_")
Result = vaSplit(1) -
We have the following error while importing the data file on one location. The script is sitting on the Account Like mapping. It was working fine on 9.3.1 but not working on 11.1.2.1.
Even after I removed the Case statement (so just leave the Ifxxxxx,Thenxxxx,Elsexxx,End If), it still doesn't work.
Can anyone help please? Thank you !
Error: An error occurred running the script:
13 - Type mismatch: 'VarValues'
At Line: 12
Select Case VarValues(13) ‘Special Accounts
Case "46221000","40974000","46713300","46747000","47111900","47414010","46871200"
If VarValues(9)>0 Then
RESULT="12009000"
Else
RESULT="20023490"
End If
Case "41110120","40119160","47311200"
If VarValues(9)>0 Then
RESULT="12009000"
Else
RESULT="20023490"
End If
End SelectHave you tried converting the value of the amount to a double? I just went up to 11.1.2.2 and had a similar problem when referencing the amount and using a number.
Select Case VarValues(13) ‘Special Accounts
Case "46221000","40974000","46713300","46747000","47111900","47414010","46871200"
If CDBL(VarValues(9))>0 Then
RESULT="12009000"
Else
RESULT="20023490"
End If
Case "41110120","40119160","47311200"
If CDBL(VarValues(9))>0 Then
RESULT="12009000"
Else
RESULT="20023490"
End If
End Select
Regards
JTF -
FDM Conditional Map error - Invalid Procedure Call or arguments
Hi,
I am trying to add a script to my LIKE mapping to pick up the target Product based on the type of target account.
This is the script I have written -
If Mid(varValues(14),1,1) = "6" Then Result = varValues(37) Else Result = varValues(21) End If
When i try to import (using Integration script from a database table) I get the error - Invalid Procedure Call or arguments.
If I remove the 'Else' part, it imports successfully. Also I tried the same using Case statements - I get the same error, if I remove 'Case Else' it works fine.
Any hekp on this would be highly appreciated!
Thanks in advnace...This mapping is associated with Product dimension - UD10 (varValues(37)). UD10 is active and mappable, mapped to target Product dimension. UD2 (varValues(21)) is the lookup which is not mapped to a target dimension.
-
FDM Conditional mapping not working
I currently have the following #script as my map in FDM. The first part of the map is not working as all the 9* source accounts are mapping to "70111". The rule should be; with any source account of "9*", with a source profit center where the 3rd digit is "??1???", then account is "43905", else "70111".
If Left(varValues(23),3) = "1" Then
Result = "43905"
Else
Result = "70111"
End if
Not sure why the first result is not working...anyone have any suggestions?Hi
I think I may have seen this question answered previously but in case....
Your IF statement is comparing the first 3 characters to "1" so it will never match.
Assuming that you want to compare the 3rd character then you want If Mid(varValues(23),3,1) = "1" Then
Hope this helps
Stuart -
FDM 11.1.2.1 Mapping Issue Conditional Mapping Error
I am configuring the newly installed FDM 11.1.2.1 and have and issue with the conditional account mapping where I have "varValues(9)" and it comes with this error. I have taken the script from our current FDM 9.3 versionm where it did worked, but in FDM 11.1.2.1 it will no go through.
Is the script not correct ? Or is this new version different somewhere ?
Thanks,
Henri
Error message
** Begin FDM Runtime Error Log Entry [2011-10-05 16:25:41] **
ERROR:
Code............................................. 13
Description...................................... Conditional Map Script Error: Type mismatch at line(1)
Script:
If varValues(9) = 0 Then Result = "5821.11.060" Else Result = "5821.11.060" End If
Rule=w98x
Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 5000
IDENTIFICATION:
User............................................. <withheld>
Computer Name.................................... <withheld>
App Name......................................... <withheld>
Client App....................................... WebClient
CONNECTION:
Provider......................................... SQLOLEDB
Data Server...................................... <withheld>
Database Name.................................... <withheld>
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... <withheld>
Location ID...................................... 750
Location Seg..................................... 4
Category......................................... Actuals - PP
Category ID...................................... 13
Period........................................... Sep - 2011
Period ID........................................ 9/30/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... FalseCast the value of varValues(9) as a Double and do the same for the 0 i.e. CDbl(varValues(9)) = CDbl(0). Also verify that the value passed in varValues(9) is actually a number and does not contain non-numeric characters or is blank
-
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. -
Conditional Mapping with script using BlOCKPROC to access the HFM API
Hello,
following problem. During the mapping/validation I need to map certain custom1 members to None if the Top Member is None and let it be if not None. This allocation depends on the account. Reading through the documentation I stumbled across conditional mapping.
So in the Custom1 map type Like I defined following:
Rule Name: C1_Script
Rule Definition: CXXX*
TargetCustom1: #Script
In the script I try to achieve to get the Custom1 Top member for the account! The HFM API offers this function(fGetCustomTopMember) and with varValue(14) I get my TargetAccount. So everything I need seems to be there.
Only problem is I need to use the BlOCKPROC to access the HFM API provided through the adapter, but either way won't work.
Trying "Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = BlOCKPROC.ActConnect("LookUP")" throws an object required error.
Trying
Dim BLOCKPROC
Set BLOCKPROC = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
BLOCKPROC.Initialize API, SCRIPTENG
throws me a type mismatch for "BLOCKPROC.Initialize".
I am kinda at my wits end. Any help/clue is much appreciated.
Ahh, yes the different writing BlOCKPROC and BLOCKPROC is correct!
Thanks!Hello Tony,
Many thanks for your answer. Just one last question. The event AftProcMap(strLoc, strDim) gives me the Dimension? Just how do I get the account?
Can you point me to the right direction and I'll figure out the rest!
Thanks a lot! -
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 SelectHello,
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, -
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.
ThanksYou 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. -
Hi Guru's
When i want to pull the data from SQL table using below integration Script from admin guide, its showing <font color="red">-2147217865 Data access Error at line15 (Line 15:Set rsAppend = DW.DataAccess.farsTable(strWorkTableName) </font>
I tried with both web client and workbench. i got same error message.
(FYI: UDL test connection is succeeded)
Please help me.
SQL server name: DEV
Database name: FDM
Sql Table name: SDR
SDR Table contains Below Data Example:
Entity Account ICP Custom1 Custom2 Custom3 Custom4 Amount
India, Extsales, [Icp None], Nocc, No Cust, None, None, 50000
India, rent, [Icp None], Nocc, No Cust, None, None, 20000
Intigration Script:
Function SQLIntegration(strLoc, lngCatKey, dblPerKey, strWorkTableName)
'Hyperion FDM Integration Import Script:
'Created By: admin
'Date Created: 04/19/2012 2:18:39 PM
'Purpose: Pull data directly from SQL DB
Dim objSS 'ADODB.Connection
Dim strSQL 'SQL String
Dim rs 'Recordset
Dim rsAppend 'tTB table append rs Object
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
'Connect To SQL Server database
cnss.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=FDM;Data Source=DEV;"
'Create query String
strSQL = "Select * "
strSQL = strSQL & "FROM SDR "
'Get data
rs.Open strSQL, cnSS
'Check For data
If rs.bof And rs.eof Then
RES.PlngActionType = 2
RES.PstrActionValue = "No Records To load!"
Exit Function
End If
'Loop through records And append To tTB table In location’s DB
If Not rs.bof And Not rs.eof Then
Do While Not rs.eof
rsAppend.AddNew
rsAppend.Fields("PartitionKey") = RES.PlngLocKey
rsAppend.Fields("CatKey") = RES.PlngCatKey
rsAppend.Fields("PeriodKey") = RES.PdtePerKey
rsAppend.Fields("DataView") = "YTD"
rsAppend.Fields("CalcAcctType") = 9
rsAppend.Fields("Amount") = rs.fields("dblAmt").Value
rsAppend.Fields("Desc1") = rs.fields("txtAcctDes").Value
rsAppend.Fields("Account") = rs.fields("txtAcct").Value
rsAppend.Fields("Entity") = rs.fields("txtCenter").Value
rsAppend.Update
rs.movenext
Loop
End If
'Records loaded
RES.PlngActionType = 6
RES.PstrActionValue = "SQL Import successful!"
'Assign Return value
SQLIntegration = True
End Function
<font color="red"> BELOW IS THE ERROR LOG </font>
Error Log:
** Begin FDM Runtime Error Log Entry [2012-07-16-01:57:58] **
ERROR:
Code............................................. -2147217865
Description...................................... Table does not exist.
Procedure........................................ clsDataAccess.farsTable
Component........................................ upsWDataWindowDM
Version.......................................... 1111
Thread........................................... 8252
IDENTIFICATION:
User............................................. admin
Computer Name....................................xxxx
App Name......................................... xxxxx
Client App....................................... WorkBench
CONNECTION:
Provider......................................... SQLOLEDB
Data Server...................................... xxxxx
Database Name.................................... xxxxx
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... India
Location ID...................................... 751
Location Seg..................................... 4
Category......................................... actual
Category ID...................................... 13
Period........................................... Jan - 2012
Period ID........................................ 1/31/2012
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
regards
SarillaHi Sarilla
I assume you ran the script from the editor.
You HAVE TO run it from the normal FDM workflow "Import".
Otherwise "Data access error"
Hope this helps
BR -
Hi all, Im using FDM 11.1.2.1
I want to use a conditional Mapping for Custom 2 (UD2)
I tried to use the example on the manual, but on the field Rule Definition, which is empty on the example, FDM is forcing me to include some value, so basically the grid is as follows
Rule Name Rule Desc Rule Definition Targe Custom2 Script
NIT All All #Script ----
And the script goes like this
If Len (varValues(21)) > 9 Then
Result = Left(varValues(21),9)
Else
Result = varValues(21)
End If
Once I execute the import the follow error comes up
ERROR:
Code............................................. 4026
Description...................................... Invalid Between Clause: (All) For Dimension Map (UD2) and Rule (NIT)
Procedure........................................ clsCalcEngine.fFlagWildcard
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 11124
I can´t understand what's wrong with the rule, if it's on the script, or the grid.
Please any help will be highly apprecitedIf you want the map to apply to all Custom2s, then I think it is more appropriate to use Like mapping instead of Between mapping. In the Like mapping entry, the Rule Def ashould be set to * (asterisk) and the Target should be set to #SCRIPT.
Edited by: Larry R on Nov 23, 2011 12:30 PM -
Conditional Mapping issue - Need help Urgently
Hi Experts,
We have a requirement for conditional mapping for HFM. When the value of certain account is positive, it is mapped to one account, else, to a different account. We are able to achieve this in the conditional mapping.
Once the mapping is done, we need the amount to be positive one. How do we attain this?
Thanks
Kannan.Hi,
Lets say your two target accounts are called X & Y.
I assume in your account mapping you have something like
Source account xxxx1 ==> Target account X
Source account yyyy1 ==> Target account Y
Here is what you can do.
In the import script of Account you can check the amount value < 0 and assign to account X else to account Y and assign to the out variable.
In the import script of Amount you can check if the source account is xxxx1 or yyyy1 then always assign abs(amount value) and assign to the out variable.
In the account mapping,
If you wish you can retain the below (with the account script change as I suggested, you will never get xxxx1 or yyyy1 in the out variable anymore)
Source account xxxx1 ==> Target account X
Source account yyyy1 ==> Target account Y
And add the two additional entries (since out variable for the two conditions will be X & Y)
Source account X ==> Target account X
Source account Y ==> Target account Y
Hope this helps, we have plenty of these kinds of situtations.
Regards
Ajay -
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
Maybe you are looking for
-
Hi All, I am displaying the Document numbers ( belnr ) and its details like year , days etc... Now what I need to do is in my ALV output , 1). at the end of belnr column, I need to display the number of documents are there in that column and 2). und
-
Always reopen tabs from last session?
I'm excited to see the "Reopen all windows from last session" option in the History menu. Is there a way to make Safari automatically reopen all windows from last session every time I open the program (like in Firefox)?
-
Help with Applescript - filenames
Hi! I hope there is someone who can help me. I have very little experience with Applescript, and have spent a couple of days scouring these forums amongst others without any luck... I have a folder (titled XLS) with about 1000 excel files in it. They
-
What is Report Document Format?
Hi, I have seen "Report Document Format" in many Oracle Report Developer's job adverts. Following is an example. "Skills & Experience Required, Oracle Reports Developer - expert level, Report Document Format (RDF) - must have extensive knowledge in t
-
RMAN change archivelog all crosscheck
Hi DBA's I want to implement RMAN backup on a prod db for the first time. tha DB was running for more than 2 years and generated seveal archive logs. the previous dba was just taking a cold backup and move the archive logs to somwhere else. i want to