A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/umbraco/Umbraco.Deploy.Issues/issues/69 below:

Forms Umbraco Documents prevalue source doesn't save/deploy XPath root node · Issue #69 · umbraco/Umbraco.Deploy.Issues · GitHub

Skip to content Navigation Menu

Saved searches Use saved searches to filter your results more quickly

Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Additional navigation options

Forms Umbraco Documents prevalue source doesn't save/deploy XPath root node #69

Description

When Deploy is installed and you try to save a Forms Umbraco Documents prevalue source using an XPath query for the root node, the following error is shown: Prevaluesource failed to save. The prevalue source is saved though, but Deploy throws an exception when trying to refresh the artifact signature (using Forms as content):

System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Convert.ToInt32(String value)
   at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.Map(GuidUdi udi, IFieldPreValueSource preValue, ICollection`1 dependencies)
   at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(GuidUdi udi, IFieldPreValueSource preValue)
   at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(Object o)
   at Umbraco.Deploy.Connectors.ServiceConnectors.ServiceConnectorBase`3.Umbraco.Core.Deploy.IServiceConnector.GetArtifact(Object o)
   at Umbraco.Deploy.Forms.SignatureRefresherDbComponent.GetArtifact(IFieldPreValueSource entity)
   at Umbraco.Deploy.Forms.SignatureRefresherDbComponent.<Initialize>b__6_4(Object sender, FieldPreValueSourceEventArgs args)
...
Reproduction
  1. Create new prevalue source (/umbraco#/forms/prevaluesource/edit/-1?create)
  2. Enter a name, e.g. Persons
  3. Select type: Umbraco Documents
  4. Use XPath query (Query for root node with xpath) and enter: $root//person
  5. Save

Specifics

Umbraco 8.16.0
Umbraco Forms 8.7.6
Umbraco Deploy 4.2.0

Using <forms transferFormsAsContent="true" />, but the same happens when set to false, although the exception has a different stack trace (as it's trying to write the artifact to disk):

   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Convert.ToInt32(String value)
   at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.Map(GuidUdi udi, IFieldPreValueSource preValue, ICollection`1 dependencies)
   at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(GuidUdi udi, IFieldPreValueSource preValue)
   at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(Object o)
   at Umbraco.Deploy.Connectors.ServiceConnectors.ServiceConnectorBase`3.Umbraco.Core.Deploy.IServiceConnector.GetArtifact(Object o)
   at Umbraco.Deploy.Forms.FormsDiskServiceDbComponent.GetPreValueArtifactFromEvent(FieldPreValueSourceEventArgs e)
   at Umbraco.Deploy.Forms.FormsDiskServiceDbComponent.PrevalueSourceService_OnCreatedAndSaved(Object sender, FieldPreValueSourceEventArgs e)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4