App manifest Error while uploading webpart in SharePoint On Premise - sharepoint

Iam getting the below error while trying to deploy SPFX webpart in SharePoint .We are using SharePoint 2019 On-premise.
When generating the package it does not generate any errors but when I upload it to the App Catalog library it gives me the following errors.
There were errors when validating the App manifest.: Xml Validation Exception: 'The 'IsClientSideSolution' attribute is not declared.' on line '1', position '251'., Xml Validation Exception: 'The element 'Properties' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'
has incomplete content. List of possible elements expected: 'StartPage' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.'
on line '1', position '342'., Xml Validation Exception: 'The element 'App' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'
has incomplete content. List of possible elements expected: 'AppPrincipal' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.'
on line '1', position '355'.

Related

MS Power Automate Error when trying to input Site Address

I'm trying to utilize MS Power Automate to automatically create a New List Item on my Sharepoint 2019 List from responses in MS Forms. I'm using the template "Record form responses in SharePoint" and am stuck in the Create Item step.
The Sharepoint Subsite URL and List Name produces an error:
The dynamic operation request to API 'sharepointonline' operation
'GetTable' failed with status code 'Unauthorized'. This may indicate
invalid input parameters. Error response: { "message": "Access token
not found clientRequestId: 4162a960-da54-470d-90e7-fae4a4c404cb",
"fromPolicy": true }
I've also noticed some unusual characteristics on the URL format which is https://share.domain.com/teams/x/x/x/Subsite
Which is quite different from the common Sharepoint URL formats:
https://domain.sharepoint.com/sites/sitename
I would like to know how to get past this error.
Any help is appreciated.
Thanks!

Custom Connector for PowerBI issues connecting to Microsoft Graph

OData: The feed's metadata document appears to be invalid. Error: The metadata document could not be read from the message content.
unexpectedxmlelement : the schema element 'navigationproperty' was not expected in the given context. : (1, 4841)
I am getting the following error when running my code through Visual Studio 2019 Community.
This happens right after I log in with OAuth2 and set credentials in debug, then run the release... error.
Full Code: https://pastebin.com/raw/B8vXRmc1
MyGraphConnector.Feed()
I have tried searching for various different solutions online but nothing is working.

"Unable to Load Asset" for PDF's in Form Recognizer Labeling Tool

Form Recognizer shows 'unable to load asset' on PDFs. I have tried multiple PDF's from various sources and they all return this error. JPGs work as expected.
An additional error popped up
Uncaught NetworkError: Failed to execute 'importScripts' on
'WorkerGlobalScope': The script at
'http://fotts.azureedge.net/npm/pdfjs-dist/2.3.200/pdf.worker.js'
failed to load
What Form Recognizer sample tool version are you using ? Do you get this error also on the latest release - http://fott-2-1.azurewebsites.net/

Microsoft Flow - Block uploading Video files to a Sharepoint site

I am an owner of a Sharepoint site and want to make sure all members of the site don't upload video files. Since SP doesn't have the ability to filter out files by Type - I want to use Microsoft Flow to do this task.
So I have created this flow which triggers on creation of new file in Documents folder of my SP site. Then it runs a Condition, which checkes the property of "File content type" - if it starts with "video/" - then it should delete the file uploaded. It looks like this:
#startsWith(triggerOutputs()['headers']['Content-Type'], 'video/')
But when I run this Flow, I then get this error:
BadRequest. The request failed. Error code: 'InvalidRequestContent'. Error Message: 'The request content was invalid and could not be deserialized: 'Unexpected character encountered while parsing value: {. Path 'details', line 1, position 455.'.'.
What am I doing wrong?
Unfortunately there is no OOTB way to configure these settings yet. Your workaround to create a flow is just what I would have suggested. Ofcourse you can also still create a workflow that does that but why old fashioned if you already made your experience with flow.
This is a known issue and I would encourage you to vote for that feature here.
In OneDrive you can restrict certain file types from syncing using the poweshell:
Set-SPOTenantSyncClientRestriction -ExcludedFileExtensions "wmf;mp4;mkv"
For your flow I would suggest to make an extra step "get file content" and use the content type you get there for your filter instead of the one from your "triggerOutputs"

Microsoft sample WordCount does not work on Local Cluster

I am trying to learn the development process for Service Fabric
by using one of the popular samples from Microsoft, called WordCount.
I do not have Azure account yet, so I installed the Local Cluster
on my Windows 10. I went through the instructions on Microsoft
website and most of it works. I can see the Cluster Manager with:
http://localhost:19080/Explorer
where I can see the application:
fabric:/WordCount WordCount 1.0.0 OK Ready
From inside the Powershell I can connect to the Local Cluster
and run the cmdlets with output as expected
Get-ServiceFabricApplication
Get-ServiceFabricService -ApplicationName 'fabric:/WordCount'
Get-ServiceFabricPartition 'fabric:/WordCount/WordCountService'
The problem is when I run
http://localhost:8081/wordcount/index.html
the browser does not display anything. It is supposed to display
the counts of words generated by client-side JavaScript
and processed by ASP.NET Web API. My browser has JavaScript enabled.
I do not know yet enough about the code in the sample but I have its solution with 4 projects loaded in VS2017. I just want to make it work ASAP.
Below I attach a part of console output in my browser (FireFox). Apparently, the JS script is getting
[HTTP/1.1 404 Not Found 0ms]
in response to all requests.
POST
XHR
http://localhost:8081//wordcount/index.html/api/AddWord/WYVyl [HTTP/1.1 404 Not Found 0ms]
XML Parsing Error: no root element found
Location: http://localhost:8081//wordcount/index.html/api/AddWord/WYVyl
Line Number 1, Column 1: WYVyl:1:1
POST
XHR
http://localhost:8081//wordcount/index.html/api/AddWord/YcIMv [HTTP/1.1 404 Not Found 0ms]
XML Parsing Error: no root element found
Location: http://localhost:8081//wordcount/index.html/api/AddWord/YcIMv
Line Number 1, Column 1: YcIMv:1:1
GET
XHR
http://localhost:8081//wordcount/index.html/api/Count [HTTP/1.1 404 Not Found 0ms]
XML Parsing Error: no root element found
Location: http://localhost:8081//wordcount/index.html /api/Count?c=0.7465426272903215
Line Number 1, Column 1: Count:1:1
The problem is that you're trying to open up "http://localhost:8081/wordcount/index.html" while you should use "http://localhost:8081/wordcount/". Otherwise the javascript code builds incorrect url to access the services.

Resources