How to fix javascript error/bug on custom web part of SharePoint 2013

I have a custom web part with serveral business fields. This web part is installed on DispForm, EditForm an NewForm.
But, I click on Attach File button and a javascrit error is throw on my browser's status bar.
Line: 5279
Character: 5
Code: 0
URI: http://mysite:4000/_layouts/15/form.debug.js?rev=vyMg8qjZfJ8La1jn7bQ2cg%3D%3D
How to solve this problem? I think it is a javascript conflict
Tarcísio Corte [email protected]

Hi,
1. You can create a simple demo web part without your custom code firstly, then insert it into your form pages to see if the similar issue would occur. If it works, then add your
other code into it one after one. By doing this, it will be easier to find out the root cause of this issue.
2. What browser do you use? Please try to use IE 10(SharePoint 2013), IE8(SharePoint2010).
3. You can also debug your code using IE F12 Developer Tools.
http://blogs.msdn.com/b/kaevans/archive/2011/04/25/debugging-javascript-with-the-ie-developer-tools.aspx
If the issue still exists, I can suggest you provide more information for further research.
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • Custom web parts in SharePoint 2013 becomes inactive when the session is idle for long time.

    Hi,
    We have a search center site with custom web parts and custom master pages. When the session is inactive for long time all the custom web parts in the page doesn't work, unless we close the browser and open it. Where as this is not the case with the
    OOB web parts. We are not able to identify the root cause as it works with OOB web parts and not the custom web parts.We were able to find that by increasing the session timeout of the web application we can avoid this issue.We do not want to increase the
    session timeout as the OOB web part works perfectly even when the user session is idle for long time.Is there any other alternative where we can acheive the same for custom web parts when the session is idle for long time?
    Thanks,
    Saranya

    Hi Saranya,
    According to your descirption, my understanding is that when the session is long time idle ,then custom web part will not work.
    I suggest you check if you have enable the session in the Page Level in the web.config. By default SharePoint disable the session state.
    In the web.config, you will see <page enableSessionState> tag. You can modify like below and test if it works.
    <pages enableSessionState=”true” ….. />
    Here is a detailed thread for your reference:
    Use Session State in SharePoint
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Custom web part in SharePoint Online for "User segments"

    Hi Experts,
    I was refferd here from the SharePoine Online community. http://community.office365.com/en-us/f/148/p/278071/851153.aspx 
    I was following this article to implement user segment in SharePoint Online http://blogs.msdn.com/b/adaptive_experiences_in_sharepoint_2013/archive/2012/11/14/set-up-user-segmentation-to-drive-adaptive-experiences-in-a-product-catalog-in-sharepoint-2013.aspx 
    However, this seems to require a custom web part to be build and deployed in SharePoint Online.
    Anyone has made user segment work in SharePoint Online? Anyone has done this custom web part before?
    Thank you,
    Aswath NS

    By default the Site Users web part shows all the users and groups who have been give direct permission to the site.  That would not include anyone who was given permission by being added to a group.  You can modify the web part settings to show
    a list of people in the Members group of the site or any other specific group.  But there is no setting to show all the users who have access.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to code a custom content search web part in Sharepoint 2013?

    Hi,
    Do you have any idea on how to create a custom Content Search Web part? What I mean is, I will code it in Visual Studio 2012.
    Regards,
    Napster

    check this
    http://social.technet.microsoft.com/Forums/ie/en-US/13f1e581-4250-48c7-93a6-ef7ae2bb14c5/is-this-there-a-way-to-programmatically-set-the-query-text-or-append-additional-kql-filtering-to-a?forum=sharepointsearch
    http://onlinecoder.blogspot.in/2013/08/sharepoint-2013-content-search-web-part.html

  • HTTP Unauthorized 401 Error when calling custom code Workflow-Activity (SharePoint 2013)

    Hi,
    from one day to the other the custom code activity within a SP2013 workflow gives me the following error:
    Activity in progress  Retrying last request.
    Next attempt scheduled in less than one minute.
    Details of last request:
    HTTP Unauthorized to
    http://server/subsite/_vti_bin/client.svc/sp.utilities.utility.ResolvePrincipalInCurrentcontext(input=@ParamUser,scopes='15',sources='15',inputIsEmailOnly='false',addToUserInfoList='False')?%40ParamUser='i%3A0%23.w%7Csp2013-dev%5Cadministrator'
    Correlation Id: 9d507c00-1e24-af73-fcea-faa4a0a61ae1
    Instance Id: 5c91916e-918b-453a-bf48-e61649afa3d0
    After some time the workflow gets cancelled automatically. The custom code activity ran many times before without any errors.
    Thanks a lot in advance!

    Hello,
    this KB could help also:
    HTTP Unauthorized to /_vti_bin/client.svc/sp.utilities.utility.SendEmail
    Regards,
    Alex
    Alex Pitulice, MICROSOFT 
    Bitte haben Sie Verständnis dafür, dass im Rahmen dieses Forums, welches auf dem Community-Prinzip
    „IT-Pros helfen IT-Pros“ beruht, kein technischer Support geleistet werden kann
    oder sonst welche garantierten Maßnahmen seitens Microsoft zugesichert werden können.

  • How to create a Employee Directory Web part in Sharepoint 2013

    I am new to this Web part. So can anybody tell me where could i start to do this. What configuration i have to do? Which web part can i use?

    Hi,
    Please take a look at this article
    SharePoint 2013 MySites Organizational Chart
    Dmitry
    Lightning Tools Check
    out our SharePoint tools and web parts |
    Lightning Tools Blog | Мой Блог

  • How to fix this error "The error occurred while processing a command of type 'setState' in plug-in 'servermgr_netboot'."

    I received this alert while configurating the OS X Server. But i don't know how to fix the error.
    Thank's
    lzraeder

    Hope this helps.
    I have been messing around with Mt Lion Server last day or so. Different than Lion Server, more refined, more sreamlined.
    I got this same error message when trying to enable and setup NetRestore / NetInstall.
    Looks like when one is using Wi-Fi as the network interface, you get this error. I suspected this.
    Not sure if this is a bug or Apple wants people to use Ethernet only, if so why give a choice, probably a bug.
    I have succefully used NetRestotre Lion server on a 2011 Mac Mini, worked perfectly. Then I remembered, I was using wired Ethernet, as I suspect most servers would use a wired network connection.
    MT Lion Server NetRestore / NetInstall works if you use Ethernet, and turn off Wi-Fi. Ethernet will actually show up as a selectable option under Access > Settings > Enable NetInstall Setttings On.., and you click Edit, and can check enable Ethernet.
    Once I did that the error went away. Then you get another message, if you do not have a NetRestore (in my case) image in the proper path, which you can set. I always like to do this away from the the boot volume, saves space, etc.
    You have to manually copy the .nbi folder you created with System Image Util. It seems Apple could have gone the extra step and included that in the Server GUI.
    No more Workgroup Manager, Server Admin, and the other dozen apps it tooks to admin server. Some are complaining. I for one like it very much. Always thought it was somewhat stupid and lazy of Apple to have that functionality across several apps. It was always un Apple like. It should be One App. I like what the Server app is now.
    Managing users, groups, shares, services is so much better, and refined, consolidated. Makes so much more sense.
    (Local User, Local Network User), you actually know clearly what type of user you are loooking at. WGM was IMHO a nightmare to navigate, it was schizophrenic (left over from NeXT I surmise).
    And of course one can go to the CL for all sorts of deep things like dns, changeip, dscl, odutil, etc. It's all there.
    john

  • How to Fix TREX Errors

    I am using EP 7.0 SP15.  I have created an index to Search the WPC Content.  The properties for the index are as follows:
    ID:  wpcIndex_DEV
    Name: wpcIndex
    Group: none set
    Crawler Parameters: standard
    Active: checked
    Service:Trex Search
    Service Type: Search
    Items to Index: All
    fuzziness: 0.7
    Data Sources:  root>Web Content
    When I look at the Index Monitoring I see:
    Status: red (There are too many TREX Errors)
    Index: wpcIndex_DEV
    Status: Idle
    InProcess:0
    Indexed: 492
    Errors: 109
    All 109 Errors state the same Error Type: "Trex: Preparation failed: index operation"
    I have found alot of documentation on how to set up TREX Indexes or how to check them but nothing on how to fix the errors.  Can someone please point me in the right direction for getting this index to process correctly?

    Hi TA
    What version of WPC are you running?
    In the older versions of WPC the internal links are hardcoded (thus not using the correct URL from the URL generator service). Try to republish the WPC pages and see if that doesn't solve the problem.
    You also did not set up the index according to the documentation:
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/e58d6e146d5591e10000000a1553f7/frameset.htm
    Remember both the crawler, and the custom property.
    Best regards,
    Martin Søgaard

  • Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Questions on using a specific program should go in that program forum
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    You probably need to delete your preview cache.  See here  
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic
    Preference and other file locations in Lightroom 5

  • How to fix this error message The backup disk image "/Volumes/AirPort Disk/FARES DEL VALLE's iMac.sparsebundle" could not be accessed (error -1).

    how to fix this error message The backup disk image “/Volumes/AirPort Disk/FARES DEL VALLE’s iMac.sparsebundle” could not be accessed (error -1).

    The troubleshooting C17 is the specific article.
    http://pondini.org/TM/Troubleshooting.html
    This is generally a Lion error.. and you will need 5.6 utility to get access to the disk area.
    So download the real utility. Run it instead of v6 toy version.
    http://support.apple.com/kb/DL1482
    Go to the manual setup, disk page and click on disconnect all users.. that will unmount all users connected to the disk and allow it to start working. But there are a number of other issues that are possible cause. Pondini lists some of them.

  • How to fix connection error on facebook via iphone 4s

    How to fix connection error on facebook via iphone 4s?

    I had the same problem for days. I reset the phone bu holding down the home button and the on off switch together. Don't swipe to turn off. Just hold down the two buttons until phone switched off then wait a few seconds and switch it back on. I can't also use Facebook on safari which I was also having problems with. Hope it helps

  • How to fix itunes error 1611 while restoring ios 4.3.2 , and when i restore to 4.2.1 the can be ok.plz help me

    how to fix itunes error 1611 while restoring ios 4.3.2 , and when i restore to 4.2.1 the can be ok.plz help me

    have a look at this support article.

  • How to fix vecter error

    how to fix vecter error  

    WB, welcome to the forum.
    When requesting help, you should always include the make/model of the computer and/or monitor. This information is necessary for us to review the specifications of the them.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    Hi ashmanryan36,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are having trouble with iMessage. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    You did not mention what the error was but since you are running 8.1.2 and update is available and my help. 
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    Cheers,
    Mario

Maybe you are looking for