Comments (6)
That's weird, because I just dealt with that same thing yesterday.
The Rainbow.SFS.SerializationFolderPathMaxLength
is what you're looking for (I'll make that clearer in the error message). Check /sitecore/admin/showconfig.aspx to make sure that your config change is active.
from unicorn.
Did you change it to 103 exactly or more than 103?
from unicorn.
I changed to 103 and more than but still error.
My web.config is active.
Thank for your feedbacks
Thuat Nguyen
from unicorn.
Hi,
I just tried to replicate your configuration exactly with the same setup:
Unicorn configuration XML (overriding the base path to the one you provided):
<configuration name="Sample Configuration" description="This is an example of a description that you can attach to a configuration in Unicorn 3 to explain what it's for.">
<targetDataStore type="Rainbow.Storage.SerializationFileSystemDataStore, Rainbow" physicalRootPath="D:\Projects\Sitecore\src\abcorp-site\abcorp.sitecore.abc\data\Unicorn\Default Configuration" useDataCache="false" singleInstance="true"/>
<predicate type="Unicorn.Predicates.SerializationPresetPredicate, Unicorn" singleInstance="true">
<include database="core" path="/sitecore/system/Field types"/>
</predicate>
</configuration>
Rainbow.config
:
<setting name="Rainbow.SFS.SerializationFolderPathMaxLength" value="90" />
This resulted in the error you received, as you'd expect:
So I altered my Rainbow.config
:
<setting name="Rainbow.SFS.SerializationFolderPathMaxLength" value="103" />
It worked fine as soon as I did that, or values > 103:
If I look at it in /sitecore/admin/showconfig.aspx
to see the merged config results, I see what's expected:
Are you using a build process where you deploy after a build to copy your configs? At this point I cannot reproduce your issue.
from unicorn.
The steps I reduce the config :
-
Change the value's SerializationFolderPathMaxLength 90 t0 190
-
Clean then Rebuild Solution.
-
Check my confign /showconfig.aspx. I saw that its normally and the values have changed.
Other case I change the values' Web.config belong steps above.
From : setting name="Serialization.SerializationFolderPathMaxLength" value="90" to value="190".
Now I got the errors :Exception Details: System.InvalidOperationException: The MaxItemNameLengthBeforeTruncation setting (100) is too long given the SerializationFolderPathMaxLength. Reduce the max name length to at or below 10.
Stack Trace: [InvalidOperationException: The MaxItemNameLengthBeforeTruncation setting (100) is too long given the SerializationFolderPathMaxLength. Reduce the max name length to at or below 10.]
Rainbow.Storage.SerializationFileSystemTree.get_MaxItemNameLengthBeforeTruncation() +291
Rainbow.Storage.SerializationFileSystemTree.PrepareItemNameForFileSystem(String name) +58
System.Linq.WhereSelectArrayIterator2.MoveNext() +84 System.Linq.Buffer
1..ctor(IEnumerable1 source) +176 System.Linq.Enumerable.ToArray(IEnumerable
1 source) +77
Rainbow.Storage.SerializationFileSystemTree.GetPhysicalFilePathsForVirtualPath(String virtualPath) +224
Rainbow.Storage.SerializationFileSystemTree.GetItemsByPath(String globalPath) +87
Rainbow.Storage.SerializationFileSystemDataStore.GetByPath(String path, String database) +48
Unicorn.Data.ConfigurationDataStore.GetByPath(String path, String database) +28
Unicorn.Predicates.PredicateRootPathResolver.GetRootSerializedItems() +78
Unicorn.ControlPanel.ControlPanelUtility.HasAnySerializedItems(IConfiguration configuration) +36
System.Linq.Enumerable.All(IEnumerable1 source, Func
2 predicate) +146
Unicorn.ControlPanel.d__0.MoveNext() +109
Unicorn.ControlPanel.UnicornControlPanelPipelineProcessor.ProcessRequest(HttpContext context) +473
Unicorn.ControlPanel.UnicornControlPanelPipelineProcessor.Process(HttpRequestArgs args) +74
(Object , Object[] ) +59
Sitecore.Pipelines.PipelineMethod.Invoke(Object[] parameters) +36
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +241
Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +158
Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +64
Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args) +50
Sitecore.Nexus.Web.HttpModule.��(Object ��, EventArgs ��) +450
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
If the Rainbow.SFS.MaxItemNameLengthBeforeTruncation change the default value 100 to more than. The error as below :
Exception Details: System.InvalidOperationException: The physical root path of this SFS tree, D:\Projects\Sitecore\src\abcorp-site\abcorp.sitecore.abc\data\Unicorn\Default Configuration\Core Settings, is longer than the configured max base path length 103. If the tree contains any loopback paths, unexpected behavior may occur. You should increase the Serialization.SerializationFolderPathMaxLength setting to greater than 105 and perform a reserialization from a master content database.
Continues with SerializationFolderPathMaxLength's value equal 105 and more than.
Exception Details: System.InvalidOperationException: The MaxItemNameLengthBeforeTruncation setting (100) is too long given the SerializationFolderPathMaxLength. Reduce the max name length to at or below 10.
Do you have any idea for this ?
Thank for your feedbacks
Thuat Nguyen
from unicorn.
After I changed name "Default Configuration" to another name. Example : New Configuration. Same you above is Sample Configuration. I worked fine. I dont know why this.
Unicorn.Configs.Default.config :
configuration name="Default Configuration" description="Write something here about why this configuration exists and what it's for. Or remove the attribute; it's optional."
Thank you !
Thuat Nguyen
from unicorn.
Related Issues (20)
- security Vulnerabilities in Unicorn.SharedSecret.config file HOT 1
- Dilithium + Unicorn.DataProvider.10.1 HOT 3
- Sitecore 10.1 uses Sitecore.Kernel 16.0.0.0 version which does not have attribute 'UsedImplicitlyAttribute' and unicorn uses this attribute HOT 3
- Syncing Unchecked Shared field checkbox is not performing the movement of data from SharedFields to VersionFields tables HOT 10
- Unicorn.aspx indicates Transparent Sync is enabled on configs but TS is not working and does not display in Content Editor warning HOT 4
- Unicorn.DataProvider.10.1.config role:require setting prevents the config from being loaded on XM0 HOT 2
- Error message during Unicorn Sync "The statement terminated. The maximum recursion 100 has been exhausted before statement completion." HOT 2
- Performing a sync on a configuration with Transparant Sync breaks stuff?? HOT 3
- Unicorn added <site> breaks Sitecore on ContentDelivery roles in 10.1.2 HOT 5
- DuplicateItemName exception HOT 2
- UnauthorizedAccessException with SyncSilent HOT 2
- When we are deploying the changes on the Sitecore DEV site by using Azure Paas we are getting this error HOT 1
- Unicorn RainbowCodeGeneration is not supporting Sitecore 10.2 for serializing model HOT 3
- Verb - Reserialize ERROR: The remote host closed the connection. The error code is 0x800704CD.
- Not possible to config patch the fieldFilter exclude list HOT 4
- Moved item can end up deleted on sync HOT 1
- Sync Challenge Issue
- Serialization issue in cloned items HOT 1
- *feature* Is Unicorn supporting Sitecore 10.3? HOT 3
- Moving items results in deleted items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unicorn.