on my SharePoint 2019 farm a had problem with RSI(Recently Shared Items). When upload or create any file with long filename and share it to other employee, it does not appear in the list for these employees. Files with short name all ok.
Some debugging:
w3wp.exe (0x04F4) 0x1898 SharePoint Foundation General boj18 Medium CITPList::SetValue failed with hr 0x81020018 for fieldid {31DE87B8-15D7-44EB-B43B-CD9BAD34CA40} 473263a0-d78c-0027-d85c-2a6886aea219
w3wp.exe (0x04F4) 0x1898 SharePoint Foundation General 8kh7 High Invalid text value. The text field contains invalid data. Check the field value and try again. 473263a0-d78c-0027-d85c-2a6886aea219
w3wp.exe (0x04F4) 0x1898 SharePoint Foundation Document Sharing awfk0 Unexpected Failed to cache recently shared item 'Documents/hiden long name file.pdf': Microsoft.SharePoint.SPException: Invalid text value. The text field contains invalid data. Check the field value and try again. ---> System.Runtime.InteropServices.COMException: Invalid text value. The text field contains invalid data. Check the field value and try again. in Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Boolean bNoDemote, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) в Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Boolean bNoDemote, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
Field id 31de87b8-15d7-44eb-b43b-cd9bad34ca40 is a Server Redirected Url they have MaxLength : 255. I think this is a problem, but currently i don't know what to do next and how to fix it
I tried find this field in ui, but nothing found
Related
I am trying to implement custom vision solution using C#, Azure custom vision, and ONNX Model. My API code is running perfect on windows OS, but when I am trying to run same code on Ubuntu 18.04, getting below error.
I have download trained ONNX model from Azure ml.
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.DllNotFoundException: Unable to load shared library 'api-ms-win-core-com-l1-1-0.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libapi-ms-win-core-com-l1-1-0.dll: cannot open shared object file: No such file or directory
at WinRT.Platform.CoIncrementMTAUsage(IntPtr* cookie)
at WinRT.WinrtModule..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor)
at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
at System.Activator.CreateInstance[T]()
at System.LazyHelper.CreateViaDefaultConstructor[T]()
at System.Lazy`1.CreateViaDefaultConstructor()
at System.Lazy`1.ViaConstructor()
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.Lazy`1.get_Value()
at WinRT.WinrtModule.get_Instance()
at WinRT.WinrtModule.GetActivationFactory(String runtimeClassId)
at WinRT.BaseActivationFactory..ctor(String typeNamespace, String typeFullName)
at Windows.Storage.StorageFile._IStorageFileStatics..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor)
at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
at System.Activator.CreateInstance[T]()
at WinRT.WeakLazy`1.get_Value()
at Windows.Storage.StorageFile._IStorageFileStatics.get_Instance()
at Windows.Storage.StorageFile.GetFileFromPathAsync(String path)
at CustomVisionAPI.Controllers.HomeController.Run() in /home/aaa/bbb/CutomVision/WebApplication1/Controllers/HomeController.cs:line 44
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
This doesn't look like an onnxruntime issue at all.
I added a custom field for vendorid on the SO Line. (Yes, I know there is one there, but we are building some new logic). I've added the integer field and it appears on the grid fine. I'm trying to get a lookup of vendors. I started with this
Where<AP.Vendor.type, NotEqual<BAccountType.employeeType>>>))]
and then tried
Where<BAccountR.type, Equal<BAccountType.companyType>,
Or<AP.Vendor.type, NotEqual<BAccountType.employeeType>>>>),
Visibility = PXUIVisibility.SelectorVisible, CacheGlobal = true, Filterable = true)]
It got me a lookup on new records, but then when I save and try to open any sales order, I get an error that says "Error: An error occurred during the processing of the field InventoryID: Specified cast is not valid.." which makes no sense to me. But if I remove the above it works, so seems like that must be the issue.
Stack Trace as requested:
Error: Error: An error occurred during processing of the field InventoryID: Specified cast is not valid..
Raised At: 2/24/2020 6:47:58 PM Screen: SO.30.10.00
Details:
2/24/2020 6:47:58 PM Error:
Error: An error occurred during processing of the field InventoryID: Specified cast is not valid..
System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlBuffer.get_Int32()
at PX.Data.PXDataRecord.GetInt32(Int32 i)
at PX.Data.PXDBIntAttribute.RowSelecting(PXCache sender, PXRowSelectingEventArgs e)
at PX.Data.PXCache.OnRowSelecting(Object item, PXDataRecord record, Int32& position, Boolean isReadOnly)
at PX.Data.PXCache.OnRowSelecting(Object item, PXDataRecord record, Int32& position, Boolean isReadOnly)
at PX.Data.PXCache`1.Select(PXDataRecord record, Int32& position, Boolean isReadOnly, Boolean& wasUpdated)
at PX.Data.PXView.GetResult(Object[] parameters, PXFilterRow[] filters, Boolean reverseOrder, Int32 topCount, PXSearchColumn[] sorts, Boolean& overrideSort, Boolean& extFilter)
at PX.Data.PXView.Select(Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows)
at PX.Objects.SO.SOOrderEntry.transactions()
at _CustomMethod(Object , Object[] )
at PX.Data.PXView.InvokeDelegate(Object[] parameters)
at PX.Data.PXView.Select(Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows)
at PX.Data.PXGraph.ExecuteSelect(String viewName, Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows)
Anyone have any thoughts?
TL;DR;
Remove PXDBInt attribute from the field.
The issue here is not with Where condition but with attributes definition for the field.
[PXDBInt]
[PXUIField(DisplayName="Vendor ID")]
[AP.Vendor(typeof(Search<BAccountR.bAccountID, Where<AP.Vendor.type,
NotEqual<BAccountType.employeeType>>>))]
Actually, here you have DBField attribute twice. You have PXDBIntAttribute and Vendor attribute that contains PXDBIntAttribute inside.
Because of that the framework has the wrong fields to db columns mapping resulting in that strange error.
If you use Visual studio, I recommend you to try Acuminator extension https://marketplace.visualstudio.com/items?itemName=Acumatica.Acuminator
It highlights that type of errors
Too long for a comment, but more of a suggestion than an "answer". Try building your own PXSelector. I have a custom DAC that needs to store two vendors, and I had to abandon the AP.Vendor attribute for a custom PXSelector for mine to work. This is one of mine. In my case, I need to be able to see which one is defined as the Preferred Vendor for the warehouse, and I only want to see vendors associated with my InventoryID. SSINItemBranch is a custom DAC that is also available in the scope of this DAC's usage. The point is, use this as an example if you need one to try creating your own from scratch. If this isn't how you want to accomplish the task, at least you might isolate if the problem is a use case of the AP.Vendor attribute or something else.
[PXSelector(
typeof(Search2<
Vendor.bAccountID,
InnerJoin<POVendorInventory,
On<POVendorInventory.vendorID, Equal<Vendor.bAccountID>,
And<POVendorInventory.inventoryID, Equal<Current<SSINItemBranch.inventoryID>>>>,
LeftJoin<INItemSite, On<INItemSite.inventoryID, Equal<POVendorInventory.inventoryID>,
And<INItemSite.preferredVendorID, Equal<POVendorInventory.vendorID>,
And<INItemSite.preferredVendorLocationID, Equal<POVendorInventory.vendorLocationID>,
And<INItemSite.preferredVendorOverride, Equal<True>>>>>>>,
Where<Vendor.type, Equal<BAccountType.vendorType>>>),
typeof(Vendor.acctCD),
typeof(Vendor.acctName),
typeof(POVendorInventory.vendorLocationID),
typeof(INItemSite.preferredVendorOverride),
typeof(POVendorInventory.vendorInventoryID),
typeof(POVendorInventory.vLeadTime),
SubstituteKey = typeof(Vendor.acctCD),
DescriptionField = typeof(Vendor.acctName),
Filterable = true
)]
I have a SharePoint 2010 document library in a publishing site (with workflow - standard approval) that does not have any custom code running in it. It is just configured with OOTB features - Metadata Service tagging, versioning (no checkout required, uploading to add as new versions for existing files, adds each version as a new major version), SharePoint Search etc. Only thing not OOTB is setting up of a PDF iFilter as the library stores PDFs.
Other users can upload new versions of documents with no issues, but one user (who has approver rights across the site collection) cannot. Each time he tries to upload a newer version of a document to the library he gets an error message:
The specified name is already in use. The document or folder name was not changed. To change the name to a different value, close this dialog and edit the properties of the document or folder.
Checking the SP log files with the correlation ID does not really show much, beyond this exception:
System.Runtime.InteropServices.COMException: The specified name is already in use. The document or folder name was not changed. To change the name to a different value, close this dialog and edit the properties of the document or folder.
at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
When I try and save something to my list in SharePoint I get the following error:
Unable to complete this operation. Please contact your administrator.
at Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
A quick google says it may be a problem with disk space on the Database. I have checked my server and the smallest amount of space left on any of the drives is ~4GB. The file size is 1MB. I have checked the database and the data file is on unrestricted growth.
Any ideas?
The problem was the transaction log was full preventing any changes. The data file was fine.
I have tried the import and export with and without file compression. Any ideas?
Here is the command I am using:
stsadm.exe -o export -url http://site.com/sites/legal/ -versions 4 -includeusersecurity -haltonfatalerror -filename c:\export\legalexport\ -nofilecompression
Here is the line in the export log:
[1/13/2010 8:33:21 AM]: Progress: Exporting File sites/legal/librarians.aspx.
Here is my import command:
stsadm.exe -o import -url http://site2.com/sites/legal/ -updateversions 2 -includeusersecurity -haltonfatalerror -filename c:\import\legalexport\ -nofilecompression
Here is the error on the import:
Progress: Importing File librarians.aspx.
Error: The system cannot find the file specified. (Exception from HRESULT: 0x800
70002)
at Microsoft.SharePoint.Library.SPRequestInternalClass.SetGhostedFile(String
setupPath, Byte setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguid
DocId, Int32 lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRel
ativeUrl, String targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration,
Object varProperties)
at Microsoft.SharePoint.Library.SPRequest.SetGhostedFile(String setupPath, By
te setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguidDocId, Int32
lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRelativeUrl, Str
ing targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration, Object varPro
perties)
at Microsoft.SharePoint.Deployment.FileSerializer.SetGhostedFile(Object fileO
rListItem, SPWeb web, Guid existId, String fileUrl, SerializationInfoHelper info
Helper, SerializationInfoHelper infoHelperListitem, SPImportSettings settings, B
oolean fileExistsInDb, StreamingContext context, ImportObjectManager importObjec
tManager)
FatalError: The system cannot find the file specified. (Exception from HRESULT:
0x80070002)
at Microsoft.SharePoint.Library.SPRequestInternalClass.SetGhostedFile(String
setupPath, Byte setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguid
DocId, Int32 lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRel
ativeUrl, String targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration,
Object varProperties)
at Microsoft.SharePoint.Library.SPRequest.SetGhostedFile(String setupPath, By
te setupPathVersion, Int32 iVersion, Guid& pguidListId, Guid& pguidDocId, Int32
lDoclibRowId, Int32 iAuthorId, String authorLogin, String serverRelativeUrl, Str
ing targetUrlWebRelative, Boolean isInDocLib, Boolean isMigration, Object varPro
perties)
at Microsoft.SharePoint.Deployment.FileSerializer.SetGhostedFile(Object fileO
rListItem, SPWeb web, Guid existId, String fileUrl, SerializationInfoHelper info
Helper, SerializationInfoHelper infoHelperListitem, SPImportSettings settings, B
oolean fileExistsInDb, StreamingContext context, ImportObjectManager importObjec
tManager)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFile(Object f
ileOrListItem, SPWeb web, Guid id, String& fileUrl, Boolean fileExistsInDb, Bool
ean isFirstVersion, SerializationInfoHelper infoHelper, SerializationInfoHelper
infoHelperListitem, StreamingContext context, ImportObjectManager importObjectMa
nager)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileAndAssocD
ata(Object fileOrListItem, SPWeb web, Guid id, String& fileUrl, Boolean fileExis
tsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperLi
stitem, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.FileSerializer.SetObjectData(Object obj, S
erializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType,
Boolean isChildObject)
at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type object
Type, Boolean isChildObject, DeploymentObject envelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializat
ionStream)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serial
izationStream)
at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReade
r xmlReader)
at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
at Microsoft.SharePoint.Deployment.SPImport.Run()
Progress: Import Completed.
Finish Time: 1/13/2010 6:49:19 AM.
Completed with 11 warnings.
Completed with 2 errors.
Log file generated:
c:\import\legalexport\import.log
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Instead of -filename c:\export\legalexport\ try -filename c:\export\legalexport\exported.dat
Try adding the -cabsize (with a value of 1024 (MB)) switch, the default max file size is only 25 MB i believe. If the total size of the site's content is more than the (specified or default) cabsize, it will cut off the backup.
Are you importing it on the same server? I've had problems with custom web parts not existing on target servers that would cause pages to not be created.
I have also seen the problem where the order of the export somehow seemed mixed up; it was trying to import a file with a dependancy on a master page that was not imported yet.
Where is that librarians.aspx? What type of page? It is obviously not a standard SharePoint page. Is there something not OOB on/about it?
If you are up for it you can open the export files (they are .cab's) and verify the file to exist. You can also check the manifest file.
I tend to do exports/imports with the SharePoint deployment wizard, it gives you more granular control of what you want to export; you could export this missing file only.
Deleted corrupt files, re-exported, re-imported.