## visual web element – Duplicate items in the custom list

I have a custom list on my SharePoint site and there is a web part that inserts items in that list. This implementation was working fine until recently, when we observed that duplicate elements are being generated.

Precisely, I noted that webpart is inserting only 1 element. however, 1 more identical article was generated after a brief interval of ~ 5 minutes.

The following are some more details to identify the cause:

1. article count 172000

2. Users on the site: ~ 2000

3. Content database size: 200 GB

4: Environment: SP 2013 in Prem.

Thank you

## SharePoint Online – PowerShell – The CSOM ExecuteQuery exception is missing the root element

I'm used to working with local SharePoint environments, but now I'm trying to accelerate with SharePoint Online. I can connect with my tenant using Connect-SPOService and use the standard SharePoint Online cmdlets, so my credentials work and the path seems to be in good condition for me.

However, I will need to use the greatest CSOM utility for the work I need to do. Initially, I've just tried to set up a simple PowerShell procedure to start going through some of the basics using CSOM with SharePoint Online. But I still have a problem with ClientContext.ExecuteQuery. It always fails with the error "missing the root element". I'm not sure if this is because the query has not recovered any data or anything related to my environment.

I currently have my own SharePoint tenant with some initial sites and lists. I am the only user and administrator. Everything is still very simple. I have installed and imported (using PSGallery) the following modules to configure my PS environment (and sessions). I think I've identified everything I need, but I may be missing something important.

``````            Name of the ModuleType version
---------- ------- ----
Binary 16.0.90 ... Microsoft.Online.SharePoint.PowerShell
Manifest 3.1.0.0 Microsoft.PowerShell.Management
Manifest 3.0.0.0 Microsoft.PowerShell.Security
Manifest 3.1.0.0 Microsoft.PowerShell.Utility
Script 1.0.0 SharePointOnline.CSOM
Binary 3.11.19 ... SharePointPnPPowerShellOnline
Script 2.1.6 SharePointSDK

``````

I am working on Windows 10 with PowerShell 5.1 (running as Administrator). Everything is still very simple, but I can not pass the execution of the query to load the web context, so I can start trying to do additional things.

I have found many online examples of PowerShell / CSOM to connect to sites and establish context. I have tried them all (at least it seems that yes), but until now nothing has worked. I can not find anything else to try or additional diagnostic steps to take. So I would appreciate any suggestions at this point.

Here is a PS session record of one of my tests with the error message at the end …

``````PS C:> \$ LibPath = "C:  Program Files  WindowsPowerShell  Modules  SharePointOnline.CSOM  1.0.0"
PS C:>[System.Reflection.Assembly]:: LoadFile ("\$ LibPath  Microsoft.SharePoint.Client.dll")
Location of the GAC version
--- ------- --------
False v4.0.30319 C:  Program Files  WindowsPowerShell  Modules  SharePointOnline.CSOM  1.0.0  Microsoft.SharePoint.Cl ...

PS C:>[System.Reflection.Assembly]:: LoadFile ("\$ LibPath  Microsoft.SharePoint.Client.Runtime.dll")
Location of the GAC version
--- ------- --------
False v4.0.30319 C:  Program Files  WindowsPowerShell  Modules  SharePointOnline.CSOM  1.0.0  Microsoft.SharePoint.Cl ...

PS C:>[System.Reflection.Assembly]:: LoadFile ("\$ LibPath  Microsoft.SharePoint.Client.UserProfiles.dll")
Location of the GAC version
--- ------- --------
False v4.0.30319 C:  Program Files  WindowsPowerShell  Modules  SharePointOnline.CSOM  1.0.0  Microsoft.SharePoint.Cl ...

PS C:>
PS C:> # test simple connection test
PS C:> Write-Host "Start connection test ..."
Start connection test ...

PS C:>
PS C:> \$ UserName = "xxxxxxx@xxxxxx.onmicrosoft.com"
PS C:> \$ SiteUrl = "https://xxxxxx.sharepoint.com/sites/Testing"
PS C:> \$ ctx = New object Microsoft.SharePoint.Client.ClientContext (\$ SiteUrl)
PS C:>
PS C:> \$ securePwd = ConvertTo-SecureString \$ pwd -AsPlainText -Force
PS C:>
PS C:> \$ Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials (\$ UserName, \$ securePwd)
PS C:>
PS C:> \$ ctx.credentials = \$ Cred
PS C:> if (! \$ Ctx.ServerOjectIsNull.Value)
{
Write-Host "Connected to \$ SiteUrl" -ForegroundColor Green
}
Connected to https://xxxxxx.sharepoint.com/sites/Testing

PS C:>
PS C:> \$ web = \$ ctx.Web
PS C:> Write-Host "Context is \$ ctx"
The context is Microsoft.SharePoint.Client.ClientContext

PS C:> Write-Host "Web is \$ web"
Web is Microsoft.SharePoint.Client.Web

PS C:> \$ ctx.Load (\$ web)
PS C:> \$ ctx.ExecuteQuery ()

** Exception that calls "ExecuteQuery" with "0" argument (s): "The root element is missing".
Online: 1 char: 1
+ \$ ctx.ExecuteQuery ()
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId: XmlException **
``````

## Live streaming of http: Gstreamer with HLS and Kinesis Video Stream SDK: WARNING: Erroneous channeling: there is no source element for URI

I have this public stream from Apple:

http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8

It has the following content:

``````curl http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8
# EXTM3U
# EXT-X-STREAM-INF: program ID = 1, BANDWIDTH = 688301
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0640_vod.m3u8
# EXT-X-STREAM-INF: Program ID = 1, BANDWIDTH = 165135
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8
# EXT-X-STREAM-INF: Program ID = 1, BANDWIDTH = 262346
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0240_vod.m3u8
# EXT-X-STREAM-INF: program ID = 1, BANDWIDTH = 481677
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0440_vod.m3u8
# EXT-X-STREAM-INF: PROGRAM-ID = 1, BANDWIDTH = 1308077
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/1240_vod.m3u8
# EXT-X-STREAM-INF: program ID = 1, BANDWIDTH = 1927853
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/1840_vod.m3u8
# EXT-X-STREAM-INF: program ID = 1, BANDWIDTH = 2650941
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/2540_vod.m3u8
# EXT-X-STREAM-INF: Program ID = 1, BANDWIDTH = 3477293
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/3340_vod.m3u8
``````

Now I want to create a Kinesis Video Stream producer. I start by creating a new instance of AWS Linux 2 EC2. I am booting these instances with the following script:

https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/kinesis-video-native-build/install-script-ami

I had no luck with the `./install-script -a -d -j \$ MAX_NUM_PARALLEL` command specified in the `install-script-ami` case file. The elimination of `-a` in the following way I did it for myself: `./install-script -d -j \$ MAX_NUM_PARALLEL`. When I executed this, it stirred for 10 minutes and then failed. The repair here was to install c ++ with:

``````yum install gcc-c ++
``````

So I went back to execute the `installation script` and continued where he left off. After another 20 minutes or so, the installation is complete and I receive this message:

``````[100%]    Goal created kvs_producer_plugin_rtsp_demo
********************************************** * ********
Success in the construction of the Kinesis SDK Video Streams Producer!
********************************************** * ********
Now you can configure the environment variables before running the sample applications
running the font set_kvs_sdk_env.sh
In addition, you may want to add to the following environment variables to configure it permanently
in /root/.bashrc or /root/.bash_profile or /root/.zshrc
``````

Finally, I put the envars:

``````source set_kvs_sdk_env.sh
``````

Now I'm finally going to try to read the HLS Stream with …

``````gst-launch-1.0 http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8! hlsdemux! tsdemux! queue video / x-h264! h264parse! qtmux! the file
WARNING: erroneous pipeline: there is no source element for URI "http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8"
``````

This is when I receive the WARNING. At this point, I'm very close, but stuck. Ultimately I want to execute this command:

``````gst-launch-1.0 \$ STREAM_URL! hlsdemux! tsdemux! queue video / x-h264! kvssink stream-name = \$ STREAM_NAME storage-size = 512 access-key = \$ AWS_ACCESS_KEY_ID secret-key = \$ AWS_SECRET_ACCESS_KEY aws-region = "us-east-1"
``````

What am I doing wrong here? Because I'm getting `WARNING: erroneous pipeline: no source element for URI` Warnings for each HLS URL that I use?

## javascript – How to make an element wait to display its content after being updated with a query?

I encounter the following problem:
I have an element ``` that must show a list of comments that contains an item in the database. An event click performs a query in the database and updates the content of the element ```, but unfold the list before the content is updated and I must perform a second click so that it already shows the updated content.

What I would like is that the list be displayed updated from the first click.

I also have the problem that the content is updated in the click initial that displays the list as well as in the click which selects the option … and the latter is left over.

I have the following …

The element ``` within sight. Select menu comment ```

``````        // Events that control the selection and view of comments
const \$ UserCommentsSelectorTab = document.getElementById (
);
// Update list items to each click
// Shows selected content
}

``````

An event click on the element executes the following function that performs a search in the database and with the result enters the elements in ``` async function refreshCommentsList (event) {   const \$ commentList = event.currentTarget;   // Requesting data update to the server.   const r = await fetch (`/ user / comments / \$ {\$ commentList.dataset.userid}`, {     headers: new Headers (),     method: 'POST',   });   if (r.ok) {     const resp = await r.json ();     let template = 'Select menu comment';     // Generating updated template for the comment selector     resp.forEach ((element) => {       template + = ` \$ {pretiffyDate (element.date)} - \$ {element.user}}`;     });     // Add the updated items     \$ commentList.innerHTML = template;   } else {     swal ('Error', 'Error updating comments', 'error');   } } The event change about the element ``` Update other elements of the view showing the information.

``````/ ** Shows the selected comment * /
function viewComment (event) {
const \$ title_box = document.getElementById ('comment-title');
const \$ text_box = document.getElementById ('text-comment-box');
const \$ tags_box = document.getElementById ('tags-comment-box');

const comment = JSON.parse (event.currentTarget.value);

// Title
\$ title_box.innerText = `\$ {comment.date} - \$ {comment.user}`;

// Text
\$ text_box.innerText = comment.text;

// Tags
const tags = comment.tags.split (',');
let tagsTemplate = '';
tags.forEach ((element) => {
tagsTemplate + = `\$ {element}  `;
});
\$ tags_box.innerHTML = tagsTemplate;
}

``````

## algorithms: if the insertion / removal of a binary tree is efficient, while maintaining the ability to obtain an element by index

I can not understand this. Let's say you have a binary tree where the nodes on the left or right correspond to 0 or 1 and a group of levels forms a string that is the index of the node. So you have 10010, which is 18 in decimal, so index 18 (let's say we count from 1 instead of 0).

``````                        one
0 1
0 1 0 1
0 1
...
``````

We build a binary tree / trie. I'm trying to figure out if you can delete and add nodes to the list without having to rewrite the full subbranch to the right of where it inserts or deletes, or if there is a simple operation of a few steps to somehow rotate the branch type of insert / delete tree in such a way that it does not to have To rewrite a large part of the tree. The reason is that you want to maintain the position of the nodes, so if you have nodes in positions 6, 7 and 8, if you delete node 4, they will become positions 5, 6, 7. Do you get this for free? somehow, or do you have to rewrite all the positions in the tree? I can not see what it would look like, wondering if one could explain how it would work.

## sharepoint enterprise: the web element Script Editor does not allow me to insert code (or cancel)

Every time I paste the following code into the script editor, instead of allowing me to click "insert", the entire window changes to the output of my script. There is no way to circumnavigate this without leaving the page; see the following error:

For clarity, I have posted my code below (it's a countdown clock, until a specific date).

``````

APRA countdown

body {
background: # f6f6f6
}

.countdownContainer {
position: absolute ;;
superior: 50%;
left: 50%;
transform: translateX (-50%) translateY (-50%);
text-align: center;
background: #ddd;
edge: solid 1px # 999;
filling: 10px;
shadow box: 0 0 5px 3px #ccc;
}

.info {
font size: 80 px;
}

APRA countdown

two
3
5
7

Days
Hours
Minutes
Seconds

countdown function () {
var now = new date ();
var eventDate = new Date (now.getFullYear (), 7, 19);

var currentTime = now.getTime ();
var eventTime = eventDate.getTime ();

var remTime = eventTime - currentTime;

var s = Math.floor (remTime / 1000);
var m = Math.floor (s / 60);
var h = Math.floor (m / 60);
var d = Math.floor (h / 24);

h% = 24;
m% = 60;
s% = 60;

h = (h &lt;10)? &quot;0&quot; + h: h;
m = (m &lt;10)? &quot;0&quot; + m: m;
s = (s &lt;10)? &quot;0&quot; + s: s;

document.getElementById (&quot;days&quot;). textContent = d;
document.getElementById (&quot;hours&quot;). textContent = h;
document.getElementById (&quot;minutes&quot;). textContent = m;
document.getElementById (&quot;seconds&quot;). textContent = s;

setTimeout (countdown, 1000);

}

Countdown();

</body>
</html>
</code></pre>
</p></div>
<div data-id="RFR2P93218" class="rating_form_wrap rating_form_2" itemscope="itemscope" itemtype="http://schema.org/Article">
<script type="text/javascript">jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":2,"post_id":93218,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1\$s\/%2\$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR2P93218\"]").html(data); }});});

``````
``` ```
``` Posted on July 17, 2019Author Proxies123Tags Cancel, code, editor, element, Enterprise, insert, script, SharePoint, web ```
``` It is no longer possible to access the Data Source Details when creating an empty data view web element with Sharepoint Designer Using SharePoint Designer 2013 I can no longer access a list data source in SharePoint Online when building a DVWP Steps to reproduce. In SPD create a new page of web elements. Edit the new page in advanced mode. Place the cursor on the ZoneTemplate tag. Click Insert -> Data View -> View empty data. Place the cursor on the new created DataSources tag. Click Insert -> Data Source -> and select a list. In the data source panel, click update link Data source error The server returned a non-specific error when trying to get data of the data source. Check the format and content of your consult and try again. If the problem persists, contact the server. administrator He ran a violinist session. get 500 answer in. /_vti_bin/webpartpages.asmx. soap: ServerException of type & # 39; Microsoft.SharePoint.SoapServer.SoapServerException & # 39; was launched. There was an error. He also tried to update a data source in an existing DVWP with the same result. Is anyone experiencing this problem? It started within the past week jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":2,"post_id":93165,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1\$s\/%2\$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR2P93165\"]").html(data); }});}); Posted on July 17, 2019Author Proxies123Tags access, creating, data, designer, details, element, empty, longer, SharePoint, source, view, web animated: new in animate.css, when trying that the element has two animations, it will not work nevertheless :( & # 39; & # 39; & # 39; HTML WACK and mdash; Canvas BIZARRE & # 39; & # 39; & # 39; css html * { Height: 100%; margin: 0; filling: 0; } .envase { width: 100%; height: 100vh; screen: bending; alignment elements: center; justify-content: center; animation: colchange 5s; animation timing function: ease of exit; animation-delay: 0; animation-direction: alternate; animation-iteration-count: infinite; animation fill mode: none; animation-play-state: run; } @keyframes colchange { 0% { background color: rgb (216, 121, 77); } fifty% { background color: rgb (0, 255, 217); } 100% { background color: rgb (66, 68, 113); } } P { Font family: OpenSans; Font size: 3rem; beige; } .animated.fadeOutDownBig { animation-duration: 10s; animation-delay: 6s; animation-iteration-count: infinite; }.animated.swing { animation-duration: 10s; animation-delay: 3s; animation-iteration-count: infinite; } jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":2,"post_id":92938,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1\$s\/%2\$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR2P92938\"]").html(data); }});}); Posted on July 16, 2019Author Proxies123Tags animatecss, Animated, animations, element, work Geometry ag.algebraica – Annihilator of an element and radical of Jacobson. Leave $$R$$ be a commutative ring with 1. Is there any characterization for an element? $$a$$ of $$R$$ such that $$ann (1-a) subseteq J (R)$$, where $$ann (x): = {r in R mid rx = 0 }$$ for $$x in R$$ Y $$J (R)$$ is Jacobson's radical of $$R$$ (the intersection of all the maximum ideals of $$R$$). I would appreciate any comments you may have. jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":2,"post_id":92824,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1\$s\/%2\$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR2P92824\"]").html(data); }});}); Posted on July 16, 2019Author Proxies123Tags agalgebraica, Annihilator, element, Geometry, Jacobson, radical hide element in json with ajax, javascript I have the next part of an array of more values {   "name": "karl",   "age": 50,   "Numbers": [],   "references": [ { "fullname": "john W" }, { "fullname": "chris b" }, {} ] } I need to obtain or show the numbers and references when they exist, they do not exist at all, some have both the number and the references, since they are several. Thank you. jQuery(document).ready(function() {jQuery.ajax({type: "POST",url : rating_form_script.ajaxurl,data : { action : "display_rating_form_ajax", args : {"id":2,"post_id":92285,"comment_id":0,"custom_id":"0","user_id":0,"term_id":0,"title":false,"score":true,"total":true,"stats":true,"user_stats":false,"tooltip":true,"result":true,"rich_snippet":true,"is_widget":false,"state":"","before_content":"","after_content":"","rates":"rating,ratings","txt_score":"%1\$s\/%2\$s"} }, success : function(data) { jQuery("body").find("[data-id=\"RFR2P92285\"]").html(data); }});}); Posted on July 15, 2019Author Proxies123Tags AJAX, element, Hide, javascript, JSON Posts navigation Page 1 Page 2 … Page 29 Next page ```