This content has been marked as final. Show 6 replies
The Map Restore function gives you the ability to restore maps from a historical period/category for a given location. Is this what you want to do or do you you just want to delete the current mapping for the given location? What exactly are you trying to achieve?
I just want to delete the current mapping for the given location.
To do this take a look at clsSQLUpdateMgr, it has a method DataMapDelete which will do what you are looking for.1 person found this helpful
I wrote the following script:
Sub BefImportMap(strLoc, strType, strFile)
API.SQLUpdateMgr.fDataMapDelete "LC_Demo", "Account", False
But then I import the mapping file the error occurs:
Error: An error occurred importing the file .
Detail: Automation error
Via Workbench this script runs correctly. What's wrong with my script?
Remove your Dim strLoc statement.
SH, thank you!