SAP HANA D3 Library errors - "queue" is not a function

Hello all,
i have a question regarding D3 Integration into SAP HANA and hope one can help me.
The last days i developed a D3 Choropleth (spatial data) with hover effects, tooltips and a legend. I have an existing SAPUI5 and HANA XS application running and now i wanted to integrate my D3 Choropleth.
1 ) First of all, i added the following tags into the head section of the index.html file of my SAPUI5 project as i need those libaries.
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="http://d3js.org/queue.v1.min.js"></script>
<script type="text/javascript" src="http://d3js.org/topojson.v1.min.js"></script>
2) Then, i added the program code of my D3 Choropleth into the view.js of my SAPUI5 project:
var html2 = new sap.ui.core.HTML("d3choropleth", {
                content: "<div class='D3Choropleth'>" + "</div>",
                preferDOM: false,
                afterRendering: function() {
                              .... here is my code ...
I have a SAPUI5 shell with different NavigationItems (tabs) and for this D3 Choropleth tab i am writing:
case "WI_choropleth":
oShell.setContent(html2);
break;
When i start my SAPUI5 project and klick on the tab where the D3 Choropleth should be rendered, i get the following errors:
d3.scale.threshold is not a function
d3.geo.albers center is not a function
queue is not a function
Moreover, i have to say that my D3 Choropleth works standalone outside HANA very well, that is why i assume it is a library integration issue.
In my browsers (firefox) developer console i can see that there is a D3 library loaded by default (as it is one of SAPUI5s components) with the path: sap/ui5/1/resources/sap/ui/thirdparty/D3.js.
BUT this is a really old version of D3 (2.9), the current release is D3 (3.4), so maybe the problem is that the D3 libary that is loaded by default overwrites my integration of D3 (script tag above)?
Does anyone have the same issues and knows how to solve that? Furthermore it seems that the d3 queue library is also not integrated as the error "queue is not a function" occurs and i also ask me how to solve that error.
We have SAP HANA Developer Edition Revision 80 (by AWS), HANA Studio and Client are on revision 73 (64bit).
It would be great if anyone could help me with my issue.
Further question: Is the current release of D3 going to be integrated into the next HANA revision?
Thanks a lot & regards,
Andreas

Hi Andreas,
You are right. The way you integrate the libraries in your code is not the way that will work for HANA XS projects. This is why it doesn't accept the queue function (library is not loaded) and also why the 3.x only D3JS funcitons are not accepted (only the internal D3JS library is loading and these functions were not a part of 2.9 yet).
To integrate third party libraries, you need to add XSJSLIB files to your project. These need to pass the server-side JSLint checks before accepted by the XS engine. (Client-side checks that fail might not count though).
Please see this post from David Brookler for more information.
http://scn.sap.com/community/developer-center/hana/blog/2013/12/23/db001-using-libraries-in-xs
Best regards,
Tobias

Similar Messages

  • SAP HANA CEI Segmentation error

    Hi All,
    in ADT-> Segmentation-> define aliases for SAP HANA DATA source , i am getting following error .
    my HANA schema name is HANADEMO and table name is  ZTAB
    i am specifying the path as HANADEMO/ZTAB and getting following error .
    please guide me to trouble shoot the same.
    error : Alias ZAT_CUST: data source view hanademo/ZTAB does not exist
    Thanks ,
    SWAPNIL GHARAT

    In HANA Studio, is your package named in lower case? Please check.

  • SAP HANA studio plugin errors

    Hello,
    I am facing an plugin error in my Hana studio.
    In the SAP HANA DEVELOPMENT perspective under the Repository tab, I am getting an error as,
    "Plug-in com.sap.ndb.studio.dwb.team.ui was unable to load class com.sap.ndb.studio.dwb.team.ui.views.RepositoryBrowserView."
    Please find the attached image and please help me to resolve this issue.
    Thanks and Regards,
    Vicky.

    Hi Bhupender,
    Its working fine now. But I don't know how it happens.  I have just uninstalled Hana Studio server and client completely from my system including all the cache files.
    1. Freshly installed the client and then server.
    2. Then click Help->install new software->added the link->"https://tools.hana.ondemand.com/kepler"
    3. Installed the plugins one by one and restarted the studio, accordingly. eg. first select the package  "UI development Toolkit for HTML5" and download the plugins and restart the studio. next "SAP HANA Cloud Integration Tools", next "SAP HANA Cloud Platform Tools" and finally "SAP HANA Tools". Install "Modeling Tools for SAP BW powered by SAP HANA", if required.
    Note:  install "ABAP Development Tools for SAP Netweaver" only if it is necessary. Because I faced some plugin errors in Hana studio. Do not install eclipse plugins in Hana studio unnecessarily, because some plugins are vulnerable and it makes the studio, heavy.
    The above procedures are working fine for me, till now. Now my studio is healthy and working as expected, without any plugin errors.
    Thanks and Regards,
    Vicky.

  • Delete document button in ribbon gives javascript error: g is not a function

    Hello,
    We have a default SharePoint 2010 installation. So an out of the box site template, out of the box document libraries/lists etc, out of the box theme (default one) etc.
    When we check the checkbox next to a document in the shared documents library, the tab in the ribbon automatically switches to the document tab. In this tab there is a button "delete document". When I click that I get a confirmation request, I click OK,
    and then I get a little yellow box in the upper right corner that tells me SharePoint is deleting the document, and then nothing happens.
    The document stays where it is, no refresh of the page as SharePoint should do...
    I have a javascript error, and in FireFox it tells me "g is not a function" on line 2 of the file inplview.js?rev=AohvE9XEf%2FI78tuaw1TGAA
    Line 2 contains like 100 javascript functions on the same line, so it's impossible to find out which function or command throws the error.
    This is not a file created by me, so I guess it comes with SharePoint and that I should not touch it.
    So what do I do now?
    I have another server that we use for SharePoint testing, and there the button works as it should, so it's not SharePoint either...
    Problem is that we use this server to give basic SharePoint trainings to our employees, so it's not a very good start when we have to say the delete button is broken but will work in the actual production environment...

    Hi Stefan,
    In our case the problem was caused because initially we had set the authentication to basic authentication, and then changed the setting to claims based authentication. Somehow this causes SharePoint to give errors.
    I don't know if the same error occurs when you choose claims based authentication from the beginning (so without changing it after creating the web application).
    In our case we had the same behavior, in the ribbon the button didn't work, but in the context menu it did work.
    I don't have any other info, as I said in my previous post, I couldn't find any info on this issue on the net. We figured this one out ourselves. I don't know how to keep the claims based authentication, for us it was just a test to try out that type of
    authentication. Since we were running into problems and we didn't really need it we reverted it back to basic authentication.

  • SAP HANA Model validation error - Index out of range

    Hi,
    Creating a simple Attribute View using the SYSTEM user.
    1. Log on with SYSTEM
    2. CREATE SCHEMA EFASHION
    3. CREATE THE TABLES UNDER EFASHION
    4. LOAD DATA INTO TABLES
    5. GRANT SELECT ON SCHEMA EFASHION TO _SYS_REPO WITH GRANT OPTION
    Whilst activating/validating the Attribute View, face the following error:
    Repository: Activation failed for atleast one object; atleast one runtime reported an error during activation. Please see CheckResults for details
    Repository: Encountered an error in repository run time extension : Index $IDX$out of range  [$BEG$, $END$]
    Please help me to resolve this issue.
    Thanks & Regards,
    Ramana.

    Hi,
    I too have the exact same issue and error.
    The tables are created under the efashion schema using the SYSTEM user. The tables are created as "column" tables.
    Regards,
    Asif.

  • Get a script error when openning firefox onload error:debug is not a function

    How do I get rid of the debug script?

    Hi there,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • HFM Application Library error Null while deploying the validated app

    Hello,
    I am trying to deploy a HFM application on EPM 11.1.3 and when I right click on the application in Application library of EPMA, I am getting a pop-up with the following error:
    Application Library Error
    null
    Please note:
    1. This is a EPMA managed HFM application.
    2. The validation of the application is successful.
    3. Deployement errors with the above error.
    4. It is on Windows 2003 server with MSServer as the RDBMS.
    Please help me resolve this issue.
    thanks,
    Ankit

    Hi Ankit,
    This would be normally resolved by Restarting the EPM Services and also remember to restart the Calculation manager services as well.
    Once the services are restarted try deploying the application again to see if it deploys successfully.
    Hope this helps,
    Thank you,
    Charles Babu J

  • Presales Asset of the Week: Predictive Analytics with SAP HANA

    To our SAP Partners: watch this demo http://bit.ly/UhJOok showcasing how business analysts and data scientists can take advantage of predictive analytics in big data scenarios. It also highlights how developers can embed the predictive analytics capabilities of SAP HANA into custom business solutions.
    Predictive Analytics with SAP HANA allows customers and partners to:
    - Make smarter & faster decisions with real-time insights
    - Accelerate key business processes with rapid analysis and reporting
    - Invent new business models and processes by leveraging innovative solutions

    To get enabled on SAP HANA, please access the SAP HANA Resource Library in the SAP PartnerEdge Portal (need S-User).

  • Undefined is not a function - sap.ui.core.js issue

    I am trying to build an sap ui5 app, with phonegap, but I always get this message from a debugger:
    And my emulator looks like this:
    For the 1000000th time, always the same error in sap.ui.core.js file: Undefined is not a function.
    Any ideas?

    This app has an interesting behaviour. I had to comment almost whole code. If I leave only this:
    (just a Page element with it's title), then app "works" and there are no errors in the console.
    But if I only try to put some other content into the page (for example, if I leave the button) --> mentioned error shows up, and all I have is bluecrystal page...
    No idea.
    By the way, code was written some time ago, and the app is working.

  • SAP Hana Rules Framework 1.0 Documentation

    Hi All,
    SAP Hana Rules Framework 1.0 documentation is here:
         2014934 - SAP HANA Rules Framework 1.0 Release Note
        SAP Market Place documentation
    Good weekend,
    Andy.

    Thanks

  • Need help in finding the root cause the error 'Could not find function:'

    Hi fokls,
    In my workflow notification , when I click on the notification to process it , it says ' 'Could not find function:' error.
    I found the this message is coming out from the Fnd_new_messages table from the message_name 'FND_FUNCTION_NOT_FOUND'.
    Here are my questions ...
    1. FND_FUNCTION_NOT_FOUND - Is it a oracle Seeded message ?
    2. If so the error I am getting is a oracle product Bug ?
    And In between , I am getting this error for few transaction only. ( out of 100 , i am getting this error at the rate of 5 per 100 ... or less)
    3 .If its a oracle product bug then , how is 95 out of 100 transaction are succssfully wokring ?
    4. If is a custom bug , how it os not though for some other 95 transaction ?
    5. Can I expect it as Data issue ? If so what kind of data issue.
    Folks , any kind of info will be really , realy helpful for me ... please let me know your inputs for me.
    Thansk to all in advance
    Raghu

    In the error message 'Could not find function:' after colon what function name it is giving.
    'FND_FUNCTION_NOT_FOUND' is a seeded message only.
    As you are saying the error was throwing only for 5% or less notifications, is the error throwing for same kind of notifications? I mean the item type and message are same for these erroneous notifications?
    It can be that some function in particular type of workflow is error-ed out does not exists, when responding to those kind of notifications it might be throwing error.
    Please check that.
    Edited by: sarojak on Nov 12, 2010 6:16 AM

  • Object is not a function(error)

    hello,
    I got "Uncaught error: object is not a function in ...../../animat_edgePreload.js in line 37.
    in line 37 i see there is a function with the name isDocLoaded.
    how to solve this problem? it's somethimes cause another problems with the animation and somthines not. so need to solve it.
    Thanks,
    Niv.

    Please try recreating the preferences of edge animate.
    Restore preferences | Edge Animate

  • EHP4 installed but "DSD is not active - function not possible"

    Dear Gurus,
            In IDES ERP6 EHP4, it have "SAP Menu -> Logistics -> Logistics Execution -> Direct Store Delivery" menu.
            But DEV ERP6 EHP4, it don't have above menu.
            When I run t-code "/n/DSD/VC_VP", it error "DSD is not active - function not possible"
                       Note Message no. /DSD/VC_MESSAGE001
            How to activate DSD on ERP6 EHP4?
            Please advice.
    Best regards,
    Choosak B.

    Hi,
           Thank you for your response.
           Now, I can activate DSD with SPRO -> Activate Business Functions -> ENTERPRISE_BUSINESS_FUNCTIONS -> /DSD/BF
    Best regards,
    Choosak B.

  • Installation Error - SAP Unicode RFC Library Not Found

    Out of approxoimately two dozen successful client installations of the BObj Integration Kit for SAP Solutions (SP2), I have one user who gets this error:  "The SAP Unicode RFC Library could not be found.  This library is available as a part of the SAP Frontend, which is a pre-requisite for the installation of this software.  Please install 'Unicode RFC Libraries' feature in SAP GUI Installer 710 installer, then re-run this setup."
    The problem is that this user is running the exact same Integration Kit installation on top of the the exact same SAPGUI installation that has generated successful results for all other client installs on our team.  Why would this probelm be happening for one particular user?  (Problem is happening on a Windows XP client system, but as I've mentioned, all other installs on a Windows XP client have been fine.)
    I've reviewed OSS Note 1372466, but it indicates that the problem resides on the SAPGUI server side.  Regardless, I have only one client generating this error out of many what appeared to be identical clients that installed successfully.
    Any ideas would be much appreciated.
    Thanks,
    Josh

    Thanks, Ingo.  A missing librfc32u.dll file seemed to be the problem.  Interestingly, the problematic client had this dll in a couple of places, but not in the c:\WINDOWS\System32 directory.  Why that dll wasn't in the right place for one particular client is a question for a different forum.
    Thanks,
    Josh

  • RDP Error: Your credentials did not work. SAP AS ABAP 7.4 SP5 incl. BW on SAP HANA 1.0 SP7

    Hi Experts,
    I have created instances from the SAP Application Server ABAP 7.4 SP5 incl. Business Warehouse on SAP HANA 1.0 SP7 [Developer Edition] free trial solution, as it is described in documentation. But I cannot connect to the Frontend Server instance (Windows 2008) via Remote Desktop Connection, I got a message: Your credentials did not work. User: Administrator, with the master password (pwd not mistyped, while it works on PUTTY, via Saplogon, etc.). I have a 64-bit Windows 7.
    I have done the following so far:
    First I have created an instance with the Public option, but the same RDP error. Then I have created a new instance as a Corporate Network. The result is: I can connect to VPN service, I can ping the Windows server, but I cannot log on to it with RDC. On AWS I have opened all ports for this instance. Then I updated my RDP, JAVA, enabled RDP on Firewall. Just for a test, I have also switched off Firewall and the AntiVirus program, still nothing. I have tried a Remote Desktop Connection to my Windows Instance from another laptop with Windows 32 bit system (from home and work too), and still facing the same problem: Your credentials did not work. Then I have also tried a tip from windows site (enablecredsspsupport:i:0 into .rdp). When I start the RDC, I get a certification error: The server name on the certificate is incorrect, but I can proceed.  Now the windows logon screen on the remote system appears, but still the same result: The user name or password is incorrect.
    I would really appreciate some help.
    Thanks,
    Andrea

    Hi Yogesh,
    Unfortunately this problem is not solved, I still cannot use the Frontend Instance. I use another solution:  I manage to access the SAP Backend instance ( SAP HANA and AS ABAP ) from my local client (laptop). The disadvantage of this solution is that I had to install myself the client part ,but at least  it works.
    Regards,
    Andrea

Maybe you are looking for